com.sdm.quasar.client.core.embedding.features
Class AbstractCompositeFeature

java.lang.Object
  extended bycom.sdm.quasar.client.core.dialog.AbstractFeature
      extended bycom.sdm.quasar.client.core.embedding.features.AbstractCompositeFeature
All Implemented Interfaces:
Feature, SystemInfoProvider
Direct Known Subclasses:
PanelCompositeFeature, TabCompositeFeature

public abstract class AbstractCompositeFeature
extends AbstractFeature

A base feature for all visual features.

Version:
1.$Revision$
Author:
Thomas Wolf

Constructor Summary
AbstractCompositeFeature()
           
 
Method Summary
protected abstract  void activate()
          Called when the dialog is activated.
protected abstract  void childActivated(java.lang.String localName, SubDialogControl subDialogControl)
           
protected abstract  void childAdded(java.lang.String localName, SubDialogControl subDialogControl)
           
protected abstract  void childDeactivated(java.lang.String localName, SubDialogControl subDialogControl)
           
protected abstract  void childRemoved(java.lang.String localName, SubDialogControl subDialogControl)
           
 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 abstract  void deactivate()
          Called when the dialog is deactivated.
protected  ActivationController getActivationControllerInt()
          Returns the current ActivationController set (may be null if not set).
protected abstract  void prepare()
          Called when the dialog is prepared.
protected abstract  void release()
          Called when the dialog is released.
protected  ActivationController requireActivationController()
          Return the current ActivationController.
protected  void setActivationControllerInt(ActivationController controller)
          Sets the current ActivationController.
 
Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature
attachDialogControl, dispose, disposeFeature, getDialogControl, init, isInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCompositeFeature

public AbstractCompositeFeature()
Method Detail

requireActivationController

protected ActivationController requireActivationController()
Return the current ActivationController. If no ActivationController was set, an IllegalStateException will be thrown.


getActivationControllerInt

protected ActivationController getActivationControllerInt()
Returns the current ActivationController set (may be null if not set).


setActivationControllerInt

protected void setActivationControllerInt(ActivationController controller)
Sets the current ActivationController. This method connects this AbstractCompositeFeature to the given ActivationController

Parameters:
controller - the ActivationController to set

childActivated

protected abstract void childActivated(java.lang.String localName,
                                       SubDialogControl subDialogControl)
See Also:
ActivationControllerListener.childActivated(java.lang.String, com.sdm.quasar.client.core.dialog.SubDialogControl)

childAdded

protected abstract void childAdded(java.lang.String localName,
                                   SubDialogControl subDialogControl)
See Also:
ActivationControllerListener.childAdded(java.lang.String, com.sdm.quasar.client.core.dialog.SubDialogControl)

childDeactivated

protected abstract void childDeactivated(java.lang.String localName,
                                         SubDialogControl subDialogControl)
See Also:
ActivationControllerListener.childDeactivated(java.lang.String, com.sdm.quasar.client.core.dialog.SubDialogControl)

childRemoved

protected abstract void childRemoved(java.lang.String localName,
                                     SubDialogControl subDialogControl)
See Also:
ActivationControllerListener.childRemoved(java.lang.String, com.sdm.quasar.client.core.dialog.SubDialogControl)

prepare

protected abstract 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:
com.sdm.quasar.client.core.dialog.features.AbstractFeature#prepare()

activate

protected abstract 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
See Also:
com.sdm.quasar.client.core.dialog.features.AbstractFeature#activate()

deactivate

protected abstract 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
See Also:
com.sdm.quasar.client.core.dialog.features.AbstractFeature#deactivate()

release

protected abstract 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
See Also:
com.sdm.quasar.client.core.dialog.features.AbstractFeature#release()

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)