org.opensubsystems.core.application.swt
Class SWTExitModule

java.lang.Object
  extended by org.opensubsystems.core.application.ThickClientModuleImpl
      extended by org.opensubsystems.core.application.ExitModule
          extended by org.opensubsystems.core.application.swt.SWTExitModule
All Implemented Interfaces:
SWTThickClientModule, ThickClientModule

public class SWTExitModule
extends ExitModule
implements SWTThickClientModule

SWT specific implementation of ExitModule.

Version:
$Id: SWTExitModule.java,v 1.3 2007/01/07 06:14:22 bastafidli Exp $
Author:
Miro Halas
Code reviewer:
Miro Halas
Code reviewed:
1.1 2006/02/16 14:39:37 bastafidli

Field Summary
 
Fields inherited from class org.opensubsystems.core.application.ThickClientModuleImpl
m_bInitialized, m_client
 
Constructor Summary
SWTExitModule()
           
 
Method Summary
protected  void closeMainWindow()
          Close the main window since it is no longer necessary.
 org.eclipse.swt.widgets.Composite getClientArea()
          Get composite widget representing the client area of the module on the screen.
 org.eclipse.swt.graphics.Image[] getToolbarImages(SWTThickClientGui gui)
          Get images which represent this module on the toolbar.
 
Methods inherited from class org.opensubsystems.core.application.ExitModule
activate, getName, pasivate
 
Methods inherited from class org.opensubsystems.core.application.ThickClientModuleImpl
destroy, displayMessage, getClient, init, refresh
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensubsystems.core.application.ThickClientModule
activate, destroy, displayMessage, getClient, getName, init, pasivate, refresh
 

Constructor Detail

SWTExitModule

public SWTExitModule()
Method Detail

getClientArea

public org.eclipse.swt.widgets.Composite getClientArea()
Get composite widget representing the client area of the module on the screen.

Specified by:
getClientArea in interface SWTThickClientModule
Returns:
Composite

getToolbarImages

public org.eclipse.swt.graphics.Image[] getToolbarImages(SWTThickClientGui gui)
Get images which represent this module on the toolbar.

Specified by:
getToolbarImages in interface SWTThickClientModule
Parameters:
gui - - gui requesting the images
Returns:
Image[] - index 0 - normal image - index 1 - disabled image - index 2 - active module image - if null is returned then standard images will be used

closeMainWindow

protected void closeMainWindow()
Close the main window since it is no longer necessary. Since this depends on GUI implementation technology, delegate this to child clas.

Specified by:
closeMainWindow in class ExitModule


Copyright © 2003 - 2006 OpenSubsystems s.r.o.