net.sf.freecol.client.gui.action
Class ColopediaBuildingAction
java.lang.Object
javax.swing.AbstractAction
net.sf.freecol.client.gui.action.FreeColAction
net.sf.freecol.client.gui.action.MapboardAction
net.sf.freecol.client.gui.action.ColopediaBuildingAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, Option
public class ColopediaBuildingAction
- extends MapboardAction
- See Also:
- Serialized Form
|
Field Summary |
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
ID
|
static java.lang.String |
LICENSE
|
static java.lang.String |
REVISION
|
| Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
| Fields inherited from interface net.sf.freecol.common.option.Option |
NO_ID |
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
|
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
Applies this action. |
java.lang.String |
getId()
Returns the id of this Option. |
protected boolean |
shouldBeEnabled()
Checks if this action should be enabled. |
| Methods inherited from class net.sf.freecol.client.gui.action.FreeColAction |
getAccelerator, getFreeColClient, getKeyStrokeText, getMenuKeyListener, getMnemonic, getName, getShortDescription, readFromXML, readFromXMLElement, readFromXMLImpl, setAccelerator, toString, toXML, toXMLElement, toXMLImpl, update |
| Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
shouldBeEnabled
protected boolean shouldBeEnabled()
- Checks if this action should be enabled.
- Overrides:
shouldBeEnabled in class MapboardAction
- Returns:
- true if this action should be enabled.
getId
public java.lang.String getId()
- Returns the id of this
Option.
- Specified by:
getId in interface Option- Specified by:
getId in class FreeColAction
- Returns:
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Applies this action.
- Parameters:
e - The ActionEvent.