Package net.sf.freecol.client.gui.action
Class MapboardAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- net.sf.freecol.client.gui.action.FreeColAction
-
- net.sf.freecol.client.gui.action.MapboardAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
,ObjectWithId
,Option<FreeColAction>
- Direct Known Subclasses:
DeclareIndependenceAction
,EndTurnAction
,EuropeAction
,ExecuteGotoOrdersAction
,FindSettlementAction
,LoadAction
,MiniMapToggleFogOfWarAction
,MiniMapToggleViewAction
,MiniMapZoomInAction
,MiniMapZoomOutAction
,MoveAction
,NewEmptyMapAction
,SelectableAction
,TilePopupAction
,ToggleViewModeAction
,TradeRouteAction
,UnitAction
,UnloadAction
,ZoomInAction
,ZoomOutAction
public abstract class MapboardAction extends FreeColAction
Super class for all actions that should be disabled when the mapboard is not selected.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sf.freecol.client.gui.action.FreeColAction
FreeColAction.InnerMenuKeyListener
-
-
Field Summary
-
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 Modifier Constructor Description protected
MapboardAction(FreeColClient freeColClient, java.lang.String id)
Creates a newMapboardAction
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
shouldBeEnabled()
Checks if this action should be enabled.-
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, update, updateRegisteredImageIcons
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
MapboardAction
protected MapboardAction(FreeColClient freeColClient, java.lang.String id)
Creates a newMapboardAction
.- Parameters:
freeColClient
- TheFreeColClient
for the game.id
- The action identifier.
-
-
Method Detail
-
shouldBeEnabled
protected boolean shouldBeEnabled()
Checks if this action should be enabled.- Overrides:
shouldBeEnabled
in classFreeColAction
- Returns:
- True if the
ClientOptionsDialog
is not visible.
-
-