|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdip.gui.AbstractCFPListener
An Abstract ClientFrame PropertyChangeListener.
The advantage of using this class is cleaner code, and easier subclassing. Errors are reduced, because only appropriate and type-correct arguments are passed to the handler methods.
The propertyChange() method is final; it dispatches property change events to the handler methods; there should be no need to override this method in subclasses.
All handler methods do nothing by default.
Constructor Summary | |
AbstractCFPListener()
|
Method Summary | |
void |
actionDisplayablePowersChanged(Power[] oldPowers,
Power[] newPowers)
Invoked when the displayable Powers have changed |
void |
actionMMDReady(MapMetadata mmd)
Invoked when MapMetadata information is ready |
void |
actionModeChanged(java.lang.String mode)
Invoked when the Mode has changed (see ClientFrame) |
void |
actionOrderablePowersChanged(Power[] oldPowers,
Power[] newPowers)
Invoked when the orderable Powers have changed |
void |
actionOrderCreated(Orderable order)
Invoked when an Order is created |
void |
actionOrderDeleted(Orderable order)
Invoked when an Order is deleted |
void |
actionOrdersCreated(Orderable[] orders)
Invoked when multiple Orders are created |
void |
actionOrdersDeleted(Orderable[] orders)
Invoked when multiple Orders are deleted |
void |
actionStateModified()
Invoked when state changes from saved state |
void |
actionTurnstateAdded(TurnState ts)
Invoked when a TurnState is added to the World |
void |
actionTurnstateChanged(TurnState ts)
Invoked when a TurnState changes |
void |
actionTurnstateRemoved()
Invoked when a TurnState is removed from the World |
void |
actionTurnstateResolved(TurnState ts)
Invoked when a TurnState has been resolved |
void |
actionValOptsChanged(ValidationOptions options)
Invoked when Validation Options have changed |
void |
actionWorldCreated(World w)
Invoked when a World is created |
void |
actionWorldDestroyed(World w)
Invoked when a World is destroyed |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Process PropertyChangeEvents into appropriate sub-methods. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractCFPListener()
Method Detail |
public final void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
public void actionWorldCreated(World w)
public void actionWorldDestroyed(World w)
public void actionStateModified()
public void actionTurnstateChanged(TurnState ts)
public void actionTurnstateAdded(TurnState ts)
public void actionTurnstateRemoved()
public void actionTurnstateResolved(TurnState ts)
public void actionValOptsChanged(ValidationOptions options)
public void actionModeChanged(java.lang.String mode)
public void actionMMDReady(MapMetadata mmd)
public void actionOrderCreated(Orderable order)
public void actionOrderDeleted(Orderable order)
public void actionOrdersCreated(Orderable[] orders)
public void actionOrdersDeleted(Orderable[] orders)
public void actionOrderablePowersChanged(Power[] oldPowers, Power[] newPowers)
public void actionDisplayablePowersChanged(Power[] oldPowers, Power[] newPowers)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |