public class ActionListImpl<A extends Action> extends Object implements ActionList<A>
| Constructor and Description |
|---|
ActionListImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(A action)
Add an action to the end of the list
|
void |
addAction(int index,
A action)
Add an action to the list at the index specified
|
A |
getAction(int index)
Get an action at a given index
|
List<A> |
getActions()
Get list containing the actions in their current order
|
boolean |
hasActions()
Indicates whether there are any actions
|
int |
indexOfAction(A action)
Gets the index of an action
|
void |
removeAction(A action)
Remove an action from the list
|
void |
removeAllActions()
Remove all actions from the list
|
void |
setAction(int index,
A action)
Replace the action at the specfied index with the passed action.
|
public boolean hasActions()
ActionListhasActions in interface ActionList<A extends Action>ActionList.hasActions()public void addAction(A action)
ActionListaddAction in interface ActionList<A extends Action>action - the actionActionList.addAction(org.alfresco.service.cmr.action.Action)public void addAction(int index,
A action)
ActionListaddAction in interface ActionList<A extends Action>index - the indexaction - the actionActionList.addAction(int,
org.alfresco.service.cmr.action.Action)public void setAction(int index,
A action)
ActionListsetAction in interface ActionList<A extends Action>index - the indexaction - the actionActionList.setAction(int,
org.alfresco.service.cmr.action.Action)public int indexOfAction(A action)
ActionListindexOfAction in interface ActionList<A extends Action>action - the actionActionList.indexOfAction(org.alfresco.service.cmr.action.Action)public List<A> getActions()
ActionListgetActions in interface ActionList<A extends Action>ActionList.getActions()public A getAction(int index)
ActionListgetAction in interface ActionList<A extends Action>index - the indexActionList.getAction(int)public void removeAction(A action)
ActionListremoveAction in interface ActionList<A extends Action>action - the actionActionList.removeAction(org.alfresco.service.cmr.action.Action)public void removeAllActions()
ActionListremoveAllActions in interface ActionList<A extends Action>ActionList.removeAllActions()Copyright © 2005–2018 Alfresco Software. All rights reserved.