|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.ximtec.igesture.tool.core.DefaultController
public abstract class DefaultController
Default implementation of the controller interface.
| Constructor Summary | |
|---|---|
DefaultController(Controller parentController)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.ximtec.igesture.tool.core.Controller |
|---|
getView |
| Constructor Detail |
|---|
public DefaultController(Controller parentController)
| Method Detail |
|---|
public void addController(Controller controller)
Controller
addController in interface Controllercontroller - the controller to be added.public List<Controller> getControllers()
Controller
getControllers in interface Controllerpublic void removeAllControllers()
Controller
removeAllControllers in interface Controllerpublic void removeController(Controller controller)
Controller
removeController in interface Controllercontroller - the controller to be removed.public final void execute(Command command)
Controller
execute in interface Controllercommand - the command to be executed.public void propertyChange(PropertyChangeEvent event)
propertyChange in interface PropertyChangeListenerpublic Controller getParent()
Controller
getParent in interface Controllerpublic void setParent(Controller controller)
Controller
setParent in interface Controllercontroller - the parent controller to be set.public LocateableAction getAction(String actionName)
Controller
getAction in interface Controller
public void addAction(String actionName,
LocateableAction action)
public Locator getLocator()
Controller
getLocator in interface Controllerpublic void setLocator(Locator locator)
public boolean isRoot()
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||