com.sdm.quasar.client.swing.embedding.features
Class WindowFeature

java.lang.Object
  extended bycom.sdm.quasar.client.core.dialog.AbstractFeature
      extended bycom.sdm.quasar.client.swing.embedding.features.WindowFeature
All Implemented Interfaces:
Feature, SystemInfoProvider

public class WindowFeature
extends AbstractFeature

A feature for use in dialogs that offer a top level window. This feature works with all dialogs that can provide an adapter implementation of WindowResource.

The feature hanldes the following services, that operate on the given WindowResource:

Version:
1.0
Author:
Martin Haft, sd&m AG, Thomas Wolf, sd&m AG, Bernd Olleck, sd&m AG

Constructor Summary
WindowFeature()
          Creates a new WindowFeature.
 
Method Summary
protected  void dispose()
          Called when the feature or dialog is disposed.
 WindowResource getWindowResource()
          Returns the WindowResource.
protected  void init()
          Called when the feature is initializing.
protected  void prepare()
          Registers the services
protected  void release()
          Unregisters the services
 void setWindowResource(WindowResource windowResource)
          Sets the WindowResource to the given value.
 
Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature
activate, attachDialogControl, collectSystemInfo, deactivate, disposeFeature, getDialogControl, isInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowFeature

public WindowFeature()
Creates a new WindowFeature.

Method Detail

init

protected void init()
Description copied from class: AbstractFeature
Called when the feature is initializing. This is normally done, when the feature is connected to the lifecycle of the DialogControl installed to. To access the DialogControl use the AbstractFeature.getDialogControl() method.

Override this method to perform some action on initialization e.g. register public services.

Specified by:
init in class AbstractFeature
See Also:
AbstractFeature.init()

setWindowResource

public void setWindowResource(WindowResource windowResource)
Sets the WindowResource to the given value.

Parameters:
windowResource - the WindowResource to set.

getWindowResource

public WindowResource getWindowResource()
Returns the WindowResource.


prepare

protected void prepare()
Registers the services

Overrides:
prepare in class AbstractFeature
See Also:
AbstractFeature.prepare()

release

protected void release()
Unregisters the services

Overrides:
release in class AbstractFeature
See Also:
AbstractFeature.release()

dispose

protected void dispose()
                throws DisposeException
Description copied from class: AbstractFeature
Called when the feature or dialog is disposed. Override this method to clean up resources and free memory when disposing.

Specified by:
dispose in class AbstractFeature
Throws:
DisposeException
See Also:
com.sdm.quasar.client.core.dialog.features.AbstractFeature#dispose()