© 2006-2007 ETH Zurich

org.ximtec.igesture.tool.core
Interface Controller

All Superinterfaces:
EventListener, PropertyChangeListener
All Known Implementing Classes:
AdminController, BatchController, CompositeController, DefaultController, DeviceManagerController, DeviceManagerService, ExplorerTreeController, MainController, TestbenchController, TestSetController, WelcomeController

public interface Controller
extends PropertyChangeListener

The controller interface to be implemented by any controller component.

Version:
1.0 23.03.2008
Author:
Ueli Kurmann, igesture@uelikurmann.ch, Beat Signer, bsigner@vub.ac.be

Method Summary
 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.
 TabbedView getView()
          Returns the view component for this specific controller.
 void removeAllControllers()
          Removes all controllers.
 void removeController(Controller controller)
          Removes a controller from this controller.
 void setParent(Controller controller)
          Sets the parent controller.
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Method Detail

addController

void addController(Controller controller)
Adds a controller to this controller.

Parameters:
controller - the controller to be added.

removeController

void removeController(Controller controller)
Removes a controller from this controller.

Parameters:
controller - the controller to be removed.

removeAllControllers

void removeAllControllers()
Removes all controllers.


getControllers

List<Controller> getControllers()
Returns a list of all controllers.


getView

TabbedView getView()
Returns the view component for this specific controller.

Returns:
the view component for this specific controller.

execute

void execute(Command command)
Executes a given command.

Parameters:
command - the command to be executed.

getParent

Controller getParent()
Returns the parent controller. Each controller has at most one parent controller. If the controller does not have a parent, it is the root controller of the application.

Returns:
the parent controller.

setParent

void setParent(Controller controller)
Sets the parent controller. See getParent().

Parameters:
controller - the parent controller to be set.

getAction

LocateableAction getAction(String actionName)
Returns the action instance for the given class.

Parameters:
actionName -
Returns:
the action instance for the given class.

getLocator

Locator getLocator()
Returns the applications locator

Returns:
the applications locator

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.