|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.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 actionMethod Detail |
---|
public boolean isEnabled()
isEnabled
in interface Action
public void setEnabled(boolean inBoolean)
setEnabled
in interface Action
inBoolean
- true or false does not change the resultpublic void addPropertyChangeListener(PropertyChangeListener inPCL)
addPropertyChangeListener
in interface Action
inPCL
- not usedpublic void removePropertyChangeListener(PropertyChangeListener inPCL)
removePropertyChangeListener
in interface Action
inPCL
- not usedpublic Object getValue(String inStr)
getValue
in interface Action
inStr
- not used
public void putValue(String inStr, Object inObject)
putValue
in interface Action
inStr
- not usedinObject
- not usedpublic abstract void actionPerformed(ActionEvent inAction)
actionPerformed
in interface ActionListener
inAction
- the action event to processpublic final MapMultiCellPanel getPanel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |