org.alfresco.repo.action
Class ActionListImpl

java.lang.Object
  extended by org.alfresco.repo.action.ActionListImpl
All Implemented Interfaces:
java.io.Serializable, ActionList

public class ActionListImpl
extends java.lang.Object
implements ActionList

See Also:
Serialized Form

Constructor Summary
ActionListImpl()
           
 
Method Summary
 void addAction(Action action)
          Add an action to the end of the list
 void addAction(int index, Action action)
          Add an action to the list at the index specified
 Action getAction(int index)
          Get an action at a given index
 java.util.List getActions()
          Get list containing the actions in their current order
 boolean hasActions()
          Indicates whether there are any actions
 int indexOfAction(Action action)
          Gets the index of an action
 void removeAction(Action action)
          Remove an action from the list
 void removeAllActions()
          Remove all actions from the list
 void setAction(int index, Action action)
          Replace the action at the specfied index with the passed action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionListImpl

public ActionListImpl()
Method Detail

hasActions

public boolean hasActions()
Description copied from interface: ActionList
Indicates whether there are any actions

Specified by:
hasActions in interface ActionList
Returns:
true if there are actions, false otherwise
See Also:
ActionList.hasActions()

addAction

public void addAction(Action action)
Description copied from interface: ActionList
Add an action to the end of the list

Specified by:
addAction in interface ActionList
Parameters:
action - the action
See Also:
ActionList.addAction(org.alfresco.service.cmr.action.Action)

addAction

public void addAction(int index,
                      Action action)
Description copied from interface: ActionList
Add an action to the list at the index specified

Specified by:
addAction in interface ActionList
Parameters:
index - the index
action - the action
See Also:
ActionList.addAction(int, org.alfresco.service.cmr.action.Action)

setAction

public void setAction(int index,
                      Action action)
Description copied from interface: ActionList
Replace the action at the specfied index with the passed action.

Specified by:
setAction in interface ActionList
Parameters:
index - the index
action - the action
See Also:
ActionList.setAction(int, org.alfresco.service.cmr.action.Action)

indexOfAction

public int indexOfAction(Action action)
Description copied from interface: ActionList
Gets the index of an action

Specified by:
indexOfAction in interface ActionList
Parameters:
action - the action
Returns:
the index
See Also:
ActionList.indexOfAction(org.alfresco.service.cmr.action.Action)

getActions

public java.util.List getActions()
Description copied from interface: ActionList
Get list containing the actions in their current order

Specified by:
getActions in interface ActionList
Returns:
the list of actions
See Also:
ActionList.getActions()

getAction

public Action getAction(int index)
Description copied from interface: ActionList
Get an action at a given index

Specified by:
getAction in interface ActionList
Parameters:
index - the index
Returns:
the action
See Also:
ActionList.getAction(int)

removeAction

public void removeAction(Action action)
Description copied from interface: ActionList
Remove an action from the list

Specified by:
removeAction in interface ActionList
Parameters:
action - the action
See Also:
ActionList.removeAction(org.alfresco.service.cmr.action.Action)

removeAllActions

public void removeAllActions()
Description copied from interface: ActionList
Remove all actions from the list

Specified by:
removeAllActions in interface ActionList
See Also:
ActionList.removeAllActions()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.