|
|||||||||
| 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.UnitAction
net.sf.freecol.client.gui.action.BuildColonyAction
public class BuildColonyAction
An action for using the active unit to build a colony.
| 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, 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 | |
|---|---|
BuildColonyAction(FreeColClient freeColClient)
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, getAccelerator, getFreeColClient, getId, getKeyStrokeText, getMenuKeyListener, getMnemonic, getName, getShortDescription, getXMLElementTagName, hasOrderButtons, isPreviewEnabled, readFromXML, readFromXMLElement, readFromXMLImpl, setAccelerator, setMnemonic, toString, toXML, toXMLElement, toXMLImpl, update |
| 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
| Constructor Detail |
|---|
BuildColonyAction(FreeColClient freeColClient)
freeColClient - The main controller object for the client.| Method Detail |
|---|
protected boolean shouldBeEnabled()
shouldBeEnabled in class UnitActionfalse if there is no active unit or the active
unit cannot build a colony, and true otherwise.public 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 | ||||||||