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

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

public class VisualRepresentationFeature
extends AbstractFeature
implements VisualRepresentationService

This feature uses a VisualRepresentationService given by the parent to let a dialog set it's visual representation easily.

Just use the setVisualRepresentation(JComponent) in a dialog to provide the visual representation for the parent.

Note: The parent dialog must provide a VisualRepresentationService. This is usually the case, if the parent uses some concrete AbstractCompositeFeature.

Version:
1.$Revision$
Author:
Thomas Wolf

Constructor Summary
VisualRepresentationFeature()
           
 
Method Summary
 void clearVisualRepresentation()
           
 void collectSystemInfo(SystemInfoNode root, SystemInfoOptions options)
          Builds the system information tree upon local information of the implementor. The system information tree can be used within development by inspecting the system; so implementors should append their internal state (depending on the details settings within SystemInfoOptions). The information can be appended to the tree by adding new child SystemInformationNodes to the root node given using the SystemInfoNode.createChild(String) method and by setting information attributes the these nodes or the given root node. Subclasses should overwrite this method to append system informations Subclasses should overwrite this method to append system informations
protected  void dispose()
          Called when the feature or dialog is disposed.
 javax.swing.JComponent getParentVisualRepresentation()
           
 javax.swing.JComponent getVisualRepresentation()
           
protected  void init()
          Called when the feature is initializing.
protected  void prepare()
          Called when the dialog is prepared.
 void setVisualRepresentation(javax.swing.JComponent jcomponent)
           
 
Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature
activate, attachDialogControl, deactivate, disposeFeature, getDialogControl, isInitialized, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisualRepresentationFeature

public VisualRepresentationFeature()
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:
com.sdm.quasar.client.core.dialog.features.AbstractFeature#init()

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()

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
See Also:
AbstractFeature.prepare()

getParentVisualRepresentation

public javax.swing.JComponent getParentVisualRepresentation()
Specified by:
getParentVisualRepresentation in interface VisualRepresentationService
See Also:
com.sdm.quasar.client.core.embedding.services.VisualRepresentationService#getParentVisualRepresentation()

getVisualRepresentation

public javax.swing.JComponent getVisualRepresentation()
Specified by:
getVisualRepresentation in interface VisualRepresentationService
See Also:
com.sdm.quasar.client.core.embedding.services.VisualRepresentationService#getVisualRepresentation()

setVisualRepresentation

public void setVisualRepresentation(javax.swing.JComponent jcomponent)
Specified by:
setVisualRepresentation in interface VisualRepresentationService
See Also:
com.sdm.quasar.client.core.embedding.services.VisualRepresentationService#setVisualRepresentation(javax.swing.JComponent)

clearVisualRepresentation

public void clearVisualRepresentation()
Specified by:
clearVisualRepresentation in interface VisualRepresentationService
See Also:
com.sdm.quasar.client.core.embedding.services.VisualRepresentationService#clearVisualRepresentation()

collectSystemInfo

public void collectSystemInfo(SystemInfoNode root,
                              SystemInfoOptions options)
Description copied from class: AbstractFeature
Builds the system information tree upon local information of the implementor. The system information tree can be used within development by inspecting the system; so implementors should append their internal state (depending on the details settings within SystemInfoOptions). The information can be appended to the tree by adding new child SystemInformationNodes to the root node given using the SystemInfoNode.createChild(String) method and by setting information attributes the these nodes or the given root node. Subclasses should overwrite this method to append system informations

Specified by:
collectSystemInfo in interface SystemInfoProvider
Overrides:
collectSystemInfo in class AbstractFeature
See Also:
AbstractFeature.collectSystemInfo(com.sdm.quasar.client.core.common.sysinfo.SystemInfoNode, com.sdm.quasar.client.core.common.sysinfo.SystemInfoOptions)