public abstract class DefaultController extends Object implements Controller
| Constructor and Description |
|---|
DefaultController(Controller parentController) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(String actionName,
LocateableAction action) |
void |
addController(Controller controller)
Adds a controller to this controller.
|
void |
execute(Command command)
Executes a given command.
|
LocateableAction |
getAction(String actionName)
Returns the action instance for the given class.
|
List<Controller> |
getControllers()
Returns a list of all controllers.
|
Locator |
getLocator()
Returns the applications locator
|
Controller |
getParent()
Returns the parent controller.
|
boolean |
isRoot()
Returns true if this is the root controller.
|
void |
propertyChange(PropertyChangeEvent event) |
void |
removeAllControllers()
Removes all controllers.
|
void |
removeController(Controller controller)
Removes a controller from this controller.
|
void |
setLocator(Locator locator) |
void |
setParent(Controller controller)
Sets the parent controller.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetViewpublic DefaultController(Controller parentController)
public void addController(Controller controller)
ControlleraddController in interface Controllercontroller - the controller to be added.public List<Controller> getControllers()
ControllergetControllers in interface Controllerpublic void removeAllControllers()
ControllerremoveAllControllers in interface Controllerpublic void removeController(Controller controller)
ControllerremoveController in interface Controllercontroller - the controller to be removed.public final void execute(Command command)
Controllerexecute in interface Controllercommand - the command to be executed.public void propertyChange(PropertyChangeEvent event)
propertyChange in interface PropertyChangeListenerpublic Controller getParent()
ControllergetParent in interface Controllerpublic void setParent(Controller controller)
ControllersetParent in interface Controllercontroller - the parent controller to be set.public LocateableAction getAction(String actionName)
ControllergetAction in interface Controllerpublic void addAction(String actionName, LocateableAction action)
public Locator getLocator()
ControllergetLocator in interface Controllerpublic void setLocator(Locator locator)
public boolean isRoot()
Copyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.