Package org.alfresco.repo.action
Class ActionListImpl<A extends Action>
java.lang.Object
org.alfresco.repo.action.ActionListImpl<A>
- All Implemented Interfaces:
Serializable,ActionList<A>
- Author:
- Nick Smith
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an action to the list at the index specifiedvoidAdd an action to the end of the listgetAction(int index) Get an action at a given indexGet list containing the actions in their current orderbooleanIndicates whether there are any actionsintindexOfAction(A action) Gets the index of an actionvoidremoveAction(A action) Remove an action from the listvoidRemove all actions from the listvoidReplace the action at the specfied index with the passed action.
-
Constructor Details
-
ActionListImpl
public ActionListImpl()
-
-
Method Details
-
hasActions
public boolean hasActions()Description copied from interface:ActionListIndicates whether there are any actions- Specified by:
hasActionsin interfaceActionList<A extends Action>- Returns:
- true if there are actions, false otherwise
- See Also:
-
addAction
Description copied from interface:ActionListAdd an action to the end of the list- Specified by:
addActionin interfaceActionList<A extends Action>- Parameters:
action- the action- See Also:
-
addAction
Description copied from interface:ActionListAdd an action to the list at the index specified- Specified by:
addActionin interfaceActionList<A extends Action>- Parameters:
index- the indexaction- the action- See Also:
-
setAction
Description copied from interface:ActionListReplace the action at the specfied index with the passed action.- Specified by:
setActionin interfaceActionList<A extends Action>- Parameters:
index- the indexaction- the action- See Also:
-
indexOfAction
Description copied from interface:ActionListGets the index of an action- Specified by:
indexOfActionin interfaceActionList<A extends Action>- Parameters:
action- the action- Returns:
- the index
- See Also:
-
getActions
Description copied from interface:ActionListGet list containing the actions in their current order- Specified by:
getActionsin interfaceActionList<A extends Action>- Returns:
- the list of actions
- See Also:
-
getAction
Description copied from interface:ActionListGet an action at a given index- Specified by:
getActionin interfaceActionList<A extends Action>- Parameters:
index- the index- Returns:
- the action
- See Also:
-
removeAction
Description copied from interface:ActionListRemove an action from the list- Specified by:
removeActionin interfaceActionList<A extends Action>- Parameters:
action- the action- See Also:
-
removeAllActions
public void removeAllActions()Description copied from interface:ActionListRemove all actions from the list- Specified by:
removeAllActionsin interfaceActionList<A extends Action>- See Also:
-