|
|||||||||
| 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.LoadAction
public class LoadAction
An action for filling the holds of the currently selected unit.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sf.freecol.client.gui.action.FreeColAction |
|---|
FreeColAction.InnerMenuKeyListener |
| Field Summary | |
|---|---|
static java.lang.String |
id
|
| 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, gui, NO_MNEMONIC |
| 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 |
| Constructor Summary | |
|---|---|
LoadAction(FreeColClient freeColClient,
GUI gui)
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.FreeColAction |
|---|
addImageIcons, clone, getAccelerator, getFreeColClient, getId, getKeyStrokeText, getMenuKeyListener, getMnemonic, getName, getShortDescription, getValue, getXMLElementTagName, hasOrderButtons, readFromXML, readFromXMLImpl, setAccelerator, setMnemonic, setValue, toString, toXML, toXMLImpl, update |
| 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 |
| Field Detail |
|---|
public static final java.lang.String id
| Constructor Detail |
|---|
public LoadAction(FreeColClient freeColClient,
GUI gui)
freeColClient - The main controller object for the client.gui - | Method Detail |
|---|
protected boolean shouldBeEnabled()
shouldBeEnabled in class MapboardActiontrue if there is a carrier activepublic 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 | ||||||||