© 2006-2007 ETH Zurich

org.ximtec.igesture.tool.view
Class MainController

java.lang.Object
  extended by org.ximtec.igesture.tool.core.DefaultController
      extended by org.ximtec.igesture.tool.view.MainController
All Implemented Interfaces:
PropertyChangeListener, EventListener, Controller, Service

public class MainController
extends DefaultController
implements Service

The main controller class.

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

Field Summary
static String CMD_CHANGE_TAB
           
static String CMD_CLOSE_WS
           
static String CMD_EXIT
           
static String CMD_LOAD
           
static String CMD_SAVE
           
static String CMD_SAVE_AS
           
static String CMD_SHOW_ABOUT_DIALOG
           
static String CMD_SHOW_DEVICE_MANAGER
           
static String CMD_START_WAITING
           
static String CMD_STOP_WAITING
           
static String IDENTIFIER
           
 
Constructor Summary
MainController()
          Default Constructor.
 
Method Summary
protected  void execChangeTab()
          Command is executed after changing a tab.
protected  void execCloseWsCommand()
          Command to close a project.
protected  void execExitCommand()
          Command to exit the application.
protected  void execLoadCommand()
          Command to load a project.
protected  void execSaveAsCommand()
          Command to save as a project.
protected  void execSaveCommand()
          Command to save the project
protected  void execShowAboutDialog()
          Command to show the about dialog
protected  void execShowDeviceManager()
          Command to show the device manager.
 String getIdentifier()
          Returns the identifier of the service.
 TabbedView getView()
          Returns the view component for this specific controller.
 void propertyChange(PropertyChangeEvent event)
           
 
Methods inherited from class org.ximtec.igesture.tool.core.DefaultController
addAction, addController, execute, getAction, getControllers, getLocator, getParent, isRoot, removeAllControllers, removeController, setLocator, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CMD_LOAD

public static final String CMD_LOAD
See Also:
Constant Field Values

CMD_EXIT

public static final String CMD_EXIT
See Also:
Constant Field Values

CMD_SAVE

public static final String CMD_SAVE
See Also:
Constant Field Values

CMD_SAVE_AS

public static final String CMD_SAVE_AS
See Also:
Constant Field Values

CMD_START_WAITING

public static final String CMD_START_WAITING
See Also:
Constant Field Values

CMD_STOP_WAITING

public static final String CMD_STOP_WAITING
See Also:
Constant Field Values

CMD_SHOW_ABOUT_DIALOG

public static final String CMD_SHOW_ABOUT_DIALOG
See Also:
Constant Field Values

CMD_CLOSE_WS

public static final String CMD_CLOSE_WS
See Also:
Constant Field Values

CMD_CHANGE_TAB

public static final String CMD_CHANGE_TAB
See Also:
Constant Field Values

CMD_SHOW_DEVICE_MANAGER

public static final String CMD_SHOW_DEVICE_MANAGER
See Also:
Constant Field Values

IDENTIFIER

public static final String IDENTIFIER
See Also:
Constant Field Values
Constructor Detail

MainController

public MainController()
Default Constructor. Initialises the application.

Method Detail

execChangeTab

protected void execChangeTab()
Command is executed after changing a tab.


execCloseWsCommand

protected void execCloseWsCommand()
Command to close a project.


execExitCommand

protected void execExitCommand()
Command to exit the application.


execLoadCommand

protected void execLoadCommand()
Command to load a project.


execSaveAsCommand

protected void execSaveAsCommand()
Command to save as a project.


execSaveCommand

protected void execSaveCommand()
Command to save the project


execShowAboutDialog

protected void execShowAboutDialog()
Command to show the about dialog


execShowDeviceManager

protected void execShowDeviceManager()
Command to show the device manager.


getIdentifier

public String getIdentifier()
Description copied from interface: Service
Returns the identifier of the service.

Specified by:
getIdentifier in interface Service
Returns:
the service's identifier.

getView

public TabbedView getView()
Description copied from interface: Controller
Returns the view component for this specific controller.

Specified by:
getView in interface Controller
Returns:
the view component for this specific controller.

propertyChange

public void propertyChange(PropertyChangeEvent event)
Specified by:
propertyChange in interface PropertyChangeListener
Overrides:
propertyChange in class DefaultController

© 2006-2007 ETH Zurich

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