net.sf.freecol.client.gui.action
Class ActionManager

java.lang.Object
  extended by net.sf.freecol.common.model.FreeColObject
      extended by net.sf.freecol.common.option.AbstractOption
          extended by net.sf.freecol.common.option.OptionGroup
              extended by net.sf.freecol.client.gui.action.ActionManager
All Implemented Interfaces:
Option

public class ActionManager
extends OptionGroup

Stores the actions.


Field Summary
 
Fields inherited from class net.sf.freecol.common.option.AbstractOption
NO_ID
 
Fields inherited from class net.sf.freecol.common.model.FreeColObject
ID_ATTRIBUTE_TAG
 
Constructor Summary
ActionManager(FreeColClient freeColClient)
          Creates a new ActionManager.
 
Method Summary
 void add(FreeColAction freeColAction)
          Adds the given FreeColAction.
 FreeColAction getFreeColAction(java.lang.String id)
          Gets the FreeColAction specified by the given id.
 void initializeActions()
           
 void update()
          Updates every FreeColAction this object keeps.
 
Methods inherited from class net.sf.freecol.common.option.OptionGroup
add, getName, getShortDescription, getXMLElementTagName, iterator, removeAll
 
Methods inherited from class net.sf.freecol.common.option.AbstractOption
getGroup, isPreviewEnabled, setGroup, setPreviewEnabled, toString
 
Methods inherited from class net.sf.freecol.common.model.FreeColObject
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAttribute, getAttribute, getAttribute, getAttribute, getId, getPropertyChangeListeners, getPropertyChangeListeners, hasAbility, hasAttribute, hasListeners, readFromXML, readFromXMLElement, removePropertyChangeListener, removePropertyChangeListener, toXML, toXML, toXML, toXMLElement, toXMLElement, toXMLElement, toXMLElement, toXMLElementPartial, writeAttribute, writeFreeColGameObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.freecol.common.option.Option
addPropertyChangeListener, getId, readFromXML, readFromXMLElement, removePropertyChangeListener, toXML, toXMLElement
 

Constructor Detail

ActionManager

public ActionManager(FreeColClient freeColClient)
Creates a new ActionManager.

Parameters:
freeColClient - The main client controller.
Method Detail

initializeActions

public void initializeActions()

add

public void add(FreeColAction freeColAction)
Adds the given FreeColAction.

Parameters:
freeColAction - The FreeColAction that should be added to this ActionManager.

getFreeColAction

public FreeColAction getFreeColAction(java.lang.String id)
Gets the FreeColAction specified by the given id.

Parameters:
id - The string identifying the action.
Returns:
The FreeColAction.

update

public void update()
Updates every FreeColAction this object keeps.

See Also:
FreeColAction