cvm.uci.ui.gui.creator
Class CVMShell

java.lang.Object
  extended by cvm.uci.ui.gui.creator.CVMShell

public class CVMShell
extends java.lang.Object

This class is the main controller of all the GUIs inside CVM. It is in charge of creating all the GUI composites such as Login and the DashBoard. It also handles the switch between such views. Date: January 30, 2010

Author:
Frank Hernandez, The Fallen of CVM

Nested Class Summary
static class CVMShell.CVM_GU_INTERFACES
           
 
Method Summary
 void close()
          This method closes the entire CVM GUI.
 void expandView()
          This method returns the GUI from the collapsed view to the previously open GUI.
 org.eclipse.swt.widgets.Composite getCurrentGUI()
           
 org.eclipse.swt.widgets.Display getDisplay()
           
static CVMShell getInstance()
          Regular Singleton implementation.
 org.eclipse.swt.widgets.Shell getShell()
           
 void handleEvent(int eventID, java.util.Properties props)
           
 void hideView()
          This method hides the currently active GUI and displays the Collapsed GUI.
 void init()
          This method initializes the CVM GUI.
 void openDashBoard()
          This method deallocates any existing GUIs and opens the DashBoard.
 void openLogin()
          This method disposes of any axisting GUIs and opens the Login GUI.
 void refreshDashBoard()
           
 void toggleDashBoard()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CVMShell getInstance()
Regular Singleton implementation.

Returns:
Singleton instance

init

public void init()
This method initializes the CVM GUI. It must be called in order to open the the CVM GUI.


hideView

public void hideView()
This method hides the currently active GUI and displays the Collapsed GUI.


handleEvent

public void handleEvent(int eventID,
                        java.util.Properties props)

openDashBoard

public void openDashBoard()
This method deallocates any existing GUIs and opens the DashBoard.


openLogin

public void openLogin()
This method disposes of any axisting GUIs and opens the Login GUI.


refreshDashBoard

public void refreshDashBoard()

toggleDashBoard

public void toggleDashBoard()

close

public void close()
This method closes the entire CVM GUI.


expandView

public void expandView()
This method returns the GUI from the collapsed view to the previously open GUI.


getShell

public org.eclipse.swt.widgets.Shell getShell()

getCurrentGUI

public org.eclipse.swt.widgets.Composite getCurrentGUI()

getDisplay

public org.eclipse.swt.widgets.Display getDisplay()