com.cra.bnet.engine
Class StateAdapter

java.lang.Object
  |
  +--com.cra.bnet.engine.StateAdapter
All Implemented Interfaces:
EventListener, StateListener

public abstract class StateAdapter
extends Object
implements StateListener

An abstract adapter class for receiving state events. Subclasses can override whichever StateListener methods they wish and ignore the rest.


Constructor Summary
StateAdapter()
           
 
Method Summary
 void stateAdded(StateEvent event)
          Invoked when a new state has beed added to the node.
 void stateNameChanged(StateEvent event)
          Invoked when the name of one of the node's states has been changed.
 void stateRemoved(StateEvent event)
          Invoked when a state has been removed from the node.
 void stateReordered(StateEvent event)
          Invoked when one of the node's states has been reordered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateAdapter

public StateAdapter()
Method Detail

stateAdded

public void stateAdded(StateEvent event)
Description copied from interface: StateListener
Invoked when a new state has beed added to the node.

Specified by:
stateAdded in interface StateListener
Parameters:
event - state event.

stateRemoved

public void stateRemoved(StateEvent event)
Description copied from interface: StateListener
Invoked when a state has been removed from the node.

Specified by:
stateRemoved in interface StateListener
Parameters:
event - state event.

stateNameChanged

public void stateNameChanged(StateEvent event)
Description copied from interface: StateListener
Invoked when the name of one of the node's states has been changed.

Specified by:
stateNameChanged in interface StateListener
Parameters:
event - state event.

stateReordered

public void stateReordered(StateEvent event)
Description copied from interface: StateListener
Invoked when one of the node's states has been reordered.

Specified by:
stateReordered in interface StateListener
Parameters:
event - state event.