Package 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
,ObjectWithId
,Option<FreeColAction>
public final class DisplayTileTextAction extends SelectableAction
Display text over tiles.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DisplayTileTextAction.DisplayText
-
Nested classes/interfaces inherited from class net.sf.freecol.client.gui.action.FreeColAction
FreeColAction.InnerMenuKeyListener
-
-
Field Summary
Fields Modifier and Type Field Description private static int[]
accelerators
private DisplayTileTextAction.DisplayText
display
static java.lang.String
id
-
Fields inherited from class net.sf.freecol.client.gui.action.SelectableAction
selected
-
Fields inherited from class net.sf.freecol.client.gui.action.FreeColAction
ACTION_ID, BUTTON_DISABLED_IMAGE, BUTTON_IMAGE, BUTTON_PRESSED_IMAGE, BUTTON_ROLLOVER_IMAGE, freeColClient, logger, TAG
-
-
Constructor Summary
Constructors Constructor Description DisplayTileTextAction(FreeColClient freeColClient, DisplayTileTextAction.DisplayText type)
Creates this action
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent ae)
boolean
shouldBeSelected()
Should this action be selected? Override this in subclasses.-
Methods inherited from class net.sf.freecol.client.gui.action.SelectableAction
getOption, isSelected, setOption, setSelected, update
-
Methods inherited from class net.sf.freecol.client.gui.action.MapboardAction
shouldBeEnabled
-
Methods inherited from class net.sf.freecol.client.gui.action.FreeColAction
addImageIcons, cloneOption, getAccelerator, getActionManager, getClientOptions, getConnectController, getEnabledBy, getFreeColClient, getGame, getGroup, getGUI, getId, getMap, getMenuKeyListener, getMnemonic, getName, getShortDescription, getValue, getXMLTagName, hasOrderButtons, igc, readFromXML, setAccelerator, setGroup, setMnemonic, setValue, toString, toXML, updateRegisteredImageIcons
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
id
public static final java.lang.String id
- See Also:
- Constant Field Values
-
accelerators
private static final int[] accelerators
-
display
private DisplayTileTextAction.DisplayText display
-
-
Constructor Detail
-
DisplayTileTextAction
public DisplayTileTextAction(FreeColClient freeColClient, DisplayTileTextAction.DisplayText type)
Creates this action- Parameters:
freeColClient
- TheFreeColClient
for the game.type
- aDisplayText
value
-
-
Method Detail
-
shouldBeSelected
public boolean shouldBeSelected()
Should this action be selected? Override this in subclasses.- Overrides:
shouldBeSelected
in classSelectableAction
- Returns:
- True of this action should be selected.
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent ae)
-
-