etomica.action
Class ControllerActionAdapter

java.lang.Object
  extended by etomica.action.ControllerActionAdapter
All Implemented Interfaces:
ControllerAction, IAction, Serializable
Direct Known Subclasses:
ControllerToggle

public abstract class ControllerActionAdapter
extends Object
implements ControllerAction, Serializable

Convenience class used to define a ControllerAction. Implements all methods of ControllerAction interface, except for actionPerformed.

See Also:
Serialized Form

Field Summary
protected  IController controller
           
 
Constructor Summary
ControllerActionAdapter()
           
 
Method Summary
 IController getController()
           
 void setController(IController controller)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface etomica.action.IAction
actionPerformed
 

Field Detail

controller

protected IController controller
Constructor Detail

ControllerActionAdapter

public ControllerActionAdapter()
Method Detail

getController

public IController getController()
Specified by:
getController in interface ControllerAction
Returns:
Returns the controller on which this action will be performed.

setController

public void setController(IController controller)
Specified by:
setController in interface ControllerAction
Parameters:
controller - The controller on which this action will be performed.