|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.lip6.sma.simulacion.app.map.MapAction
public abstract class MapAction
The MapAction class reduces the Action AWT interface to only one method to be implemented: ActionPerformed. In Simulacion, GUI can use this class to react to actions without need to implement all the methods of the Action interface.
MapMultiCellPanel,
MapCell| Field Summary | |
|---|---|
private MapMultiCellPanel |
mPanel
The panel where the action occurs. |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
MapAction(MapMultiCellPanel inPanel)
Constructor. |
|
| Method Summary | |
|---|---|
abstract void |
actionPerformed(ActionEvent inAction)
Action performed by the class on attached event occurence. |
void |
addPropertyChangeListener(PropertyChangeListener inPCL)
Not implemented. |
MapMultiCellPanel |
getPanel()
Get the panel where the action occurs. |
Object |
getValue(String inStr)
Not implemented. |
boolean |
isEnabled()
MapAction are always enabled. |
void |
putValue(String inStr,
Object inObject)
Not implemented. |
void |
removePropertyChangeListener(PropertyChangeListener inPCL)
Not implemented. |
void |
setEnabled(boolean inBoolean)
MapAction are always enabled. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final MapMultiCellPanel mPanel
| Constructor Detail |
|---|
public MapAction(MapMultiCellPanel inPanel)
inPanel - the panel that will react to the action| Method Detail |
|---|
public boolean isEnabled()
isEnabled in interface Actionpublic void setEnabled(boolean inBoolean)
setEnabled in interface ActioninBoolean - true or false does not change the resultpublic void addPropertyChangeListener(PropertyChangeListener inPCL)
addPropertyChangeListener in interface ActioninPCL - not usedpublic void removePropertyChangeListener(PropertyChangeListener inPCL)
removePropertyChangeListener in interface ActioninPCL - not usedpublic Object getValue(String inStr)
getValue in interface ActioninStr - not used
public void putValue(String inStr,
Object inObject)
putValue in interface ActioninStr - not usedinObject - not usedpublic abstract void actionPerformed(ActionEvent inAction)
actionPerformed in interface ActionListenerinAction - the action event to processpublic final MapMultiCellPanel getPanel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||