|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.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
public class DisplayTileTextAction
Display text over tiles.
| Nested Class Summary | |
|---|---|
static class |
DisplayTileTextAction.DisplayText
|
| Nested classes/interfaces inherited from class net.sf.freecol.client.gui.action.FreeColAction |
|---|
FreeColAction.InnerMenuKeyListener |
| Field Summary | |
|---|---|
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, NO_MNEMONIC |
| 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, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
DisplayTileTextAction(FreeColClient freeColClient,
DisplayTileTextAction.DisplayText type)
Creates this action |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Applies this action. |
protected boolean |
shouldBeEnabled()
Checks if this action should be enabled. |
| Methods inherited from class net.sf.freecol.client.gui.action.SelectableAction |
|---|
isSelected, setSelected, update |
| Methods inherited from class net.sf.freecol.client.gui.action.FreeColAction |
|---|
addImageIcons, getAccelerator, getFreeColClient, getId, getKeyStrokeText, getMenuKeyListener, getMnemonic, getName, getShortDescription, getXMLElementTagName, isPreviewEnabled, readFromXML, readFromXMLElement, readFromXMLImpl, setAccelerator, setMnemonic, toString, toXML, toXMLElement, toXMLImpl |
| 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 |
| Methods inherited from interface net.sf.freecol.common.option.Option |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
public static final java.lang.String id
public static final int[] accelerators
private DisplayTileTextAction.DisplayText display
| Constructor Detail |
|---|
DisplayTileTextAction(FreeColClient freeColClient,
DisplayTileTextAction.DisplayText type)
freeColClient - The main controller object for the client.type - a DisplayText value| Method Detail |
|---|
protected boolean shouldBeEnabled()
shouldBeEnabled in class MapboardActionpublic void actionPerformed(java.awt.event.ActionEvent e)
e - The ActionEvent.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||