com.sdm.quasar.client.swing.dialogbase.features
Class FrameCompositeFeature

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

public class FrameCompositeFeature
extends AbstractFeature

This Feature handles a JFrame. The treatement is like this:

You have to set the frame tu handle before prepare() is called. If you re-prepare this feature, set the frame again before.

Author:
Martin Haft

Field Summary
protected  javax.swing.JFrame frame
           
 
Constructor Summary
FrameCompositeFeature()
           
 
Method Summary
protected  void activate()
          Called when the dialog is activated.
protected  void deactivate()
          Called when the dialog is deactivated.
protected  void dispose()
          Called when the feature or dialog is disposed.
 javax.swing.JFrame getFrame()
          getter for the set JFrame
protected  void init()
          Called when the feature is initializing.
protected  void prepare()
          Called when the dialog is prepared.
protected  void prepareFrame()
           
protected  void release()
          Called when the dialog is released.
 void setFrame(javax.swing.JFrame frame)
          Set the frame to be handled.
 
Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature
attachDialogControl, collectSystemInfo, disposeFeature, getDialogControl, isInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frame

protected javax.swing.JFrame frame
Constructor Detail

FrameCompositeFeature

public FrameCompositeFeature()
Method Detail

getFrame

public javax.swing.JFrame getFrame()
getter for the set JFrame

Returns:

setFrame

public void setFrame(javax.swing.JFrame frame)
Set the frame to be handled. This frame ahs to be installed before the Feature will be prepared.

Parameters:
frame - the frame to be handled

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

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

prepare

protected void prepare()
Description copied from class: AbstractFeature
Called when the dialog is prepared. Override this method if you want to perform some action on LifeCycle.prepare(), e.g. gain resource and provide services for childs.

The default implementation in AbstractFeature does nothing.

Overrides:
prepare in class AbstractFeature

release

protected void release()
Description copied from class: AbstractFeature
Called when the dialog is released. Override this method if you want to perform some action on LifeCycle.release()(), e.g. unregister services.

The default implementation in AbstractFeature does nothing.

Overrides:
release in class AbstractFeature

activate

protected void activate()
Description copied from class: AbstractFeature
Called when the dialog is activated. Override this method if you want to perform some action on LifeCycle.activate().

The default implementation in AbstractFeature does nothing.

Overrides:
activate in class AbstractFeature

deactivate

protected void deactivate()
Description copied from class: AbstractFeature
Called when the dialog is deactivated. Override this method if you want to perform some action on LifeCycle.deactivate()().

The default implementation in AbstractFeature does nothing.

Overrides:
deactivate in class AbstractFeature

prepareFrame

protected void prepareFrame()