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()
ActionList
hasActions
in interface ActionList<A extends Action>
ActionList.hasActions()
public void addAction(A action)
ActionList
addAction
in interface ActionList<A extends Action>
action
- the actionActionList.addAction(org.alfresco.service.cmr.action.Action)
public void addAction(int index, A action)
ActionList
addAction
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)
ActionList
setAction
in interface ActionList<A extends Action>
index
- the indexaction
- the actionActionList.setAction(int,
org.alfresco.service.cmr.action.Action)
public int indexOfAction(A action)
ActionList
indexOfAction
in interface ActionList<A extends Action>
action
- the actionActionList.indexOfAction(org.alfresco.service.cmr.action.Action)
public List<A> getActions()
ActionList
getActions
in interface ActionList<A extends Action>
ActionList.getActions()
public A getAction(int index)
ActionList
getAction
in interface ActionList<A extends Action>
index
- the indexActionList.getAction(int)
public void removeAction(A action)
ActionList
removeAction
in interface ActionList<A extends Action>
action
- the actionActionList.removeAction(org.alfresco.service.cmr.action.Action)
public void removeAllActions()
ActionList
removeAllActions
in interface ActionList<A extends Action>
ActionList.removeAllActions()
Copyright © 2005–2017 Alfresco Software. All rights reserved.