@AlfrescoPublicApi public interface ActionList<A extends Action> extends Serializable
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.
|
boolean hasActions()
void addAction(A action)
action
- the actionvoid addAction(int index, A action)
index
- the indexaction
- the actionvoid setAction(int index, A action)
index
- the indexaction
- the actionint indexOfAction(A action)
action
- the actionList<A> getActions()
A getAction(int index)
index
- the indexvoid removeAction(A action)
action
- the actionvoid removeAllActions()
Copyright © 2005–2017 Alfresco Software. All rights reserved.