net.sf.freecol.client.gui.action
Class DisplayTileTextAction
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.SelectableAction
net.sf.freecol.client.gui.action.DisplayTileTextAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, Option<FreeColAction>
public class DisplayTileTextAction
- extends SelectableAction
Display text over tiles.
- See Also:
- Serialized Form
| Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
|
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
Applies this action. |
protected boolean |
shouldBeEnabled()
Checks if this action should be enabled. |
boolean |
shouldBeSelected()
Returns true if this action should be selected. |
| Methods inherited from class net.sf.freecol.client.gui.action.FreeColAction |
addImageIcons, clone, getAccelerator, getFreeColClient, getId, getKeyStrokeText, getMenuKeyListener, getMnemonic, getName, getShortDescription, getValue, getXMLElementTagName, hasOrderButtons, readFromXML, readFromXMLImpl, setAccelerator, setMnemonic, setValue, toString, toXML, toXMLImpl |
| Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
id
public static final java.lang.String id
- See Also:
- Constant Field Values
accelerators
public static final int[] accelerators
display
private DisplayTileTextAction.DisplayText display
DisplayTileTextAction
DisplayTileTextAction(FreeColClient freeColClient,
GUI gui,
DisplayTileTextAction.DisplayText type)
- Creates this action
- Parameters:
freeColClient - The main controller object for the client.type - a DisplayText value
shouldBeEnabled
protected boolean shouldBeEnabled()
- Checks if this action should be enabled.
- Overrides:
shouldBeEnabled in class MapboardAction
- Returns:
- true if this action should be enabled.
shouldBeSelected
public boolean shouldBeSelected()
- Returns true if this action should be selected.
- Overrides:
shouldBeSelected in class SelectableAction
- Returns:
- a
boolean value
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Applies this action.
- Parameters:
e - The ActionEvent.