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

java.lang.Object
  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
static java.lang.String COPYRIGHT
           
static java.lang.String LICENSE
           
static java.lang.String REVISION
           
 
Fields inherited from class net.sf.freecol.common.option.AbstractOption
NO_ID
 
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 update()
          Updates every FreeColAction this object keeps.
 
Methods inherited from class net.sf.freecol.common.option.OptionGroup
add, getXMLElementTagName, iterator, readFromXMLImpl, removeAll, toXMLImpl
 
Methods inherited from class net.sf.freecol.common.option.AbstractOption
addPropertyChangeListener, firePropertyChange, getId, getName, getShortDescription, readFromXML, readFromXMLElement, removePropertyChangeListener, toString, toXML, toXMLElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

LICENSE

public static final java.lang.String LICENSE
See Also:
Constant Field Values

REVISION

public static final java.lang.String REVISION
See Also:
Constant Field Values
Constructor Detail

ActionManager

public ActionManager(FreeColClient freeColClient)
Creates a new ActionManager.

Parameters:
freeColClient - The main client controller.
Method Detail

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