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

java.lang.Object
  extended bycom.sdm.quasar.client.core.dialog.AbstractFeature
      extended bycom.sdm.quasar.client.core.dialogbase.features.AbstractControllerFeature
          extended bycom.sdm.quasar.client.core.embedding.features.AbstractActivationControllerFeature
All Implemented Interfaces:
ActivationController, Feature, SystemInfoProvider
Direct Known Subclasses:
FullActivationControllerFeature, MultipleActivationControllerFeature, SingleActivationControllerFeature

public abstract class AbstractActivationControllerFeature
extends AbstractControllerFeature
implements ActivationController

An abstract implementation of an ActivationController as a Feature.

Version:
1.$Revision$
Author:
Thomas Wolf

Nested Class Summary
 
Nested classes inherited from class com.sdm.quasar.client.core.dialogbase.features.AbstractControllerFeature
AbstractControllerFeature.SubDialogController
 
Constructor Summary
AbstractActivationControllerFeature(java.lang.String serviceRegistrationContext)
          Creates a new AbstractActivationControllerFeature.
 
Method Summary
 void addActivationControllerListener(ActivationControllerListener listener)
          Adds an ActivationControllerListener to get informed about changes of the controlled set of subdialogs and their activation.
protected  void onChildActivated(java.lang.String localName, SubDialogControl subDialogControl)
          Called whenever a child was activated.
protected  void onChildAdded(java.lang.String localName, SubDialogControl subDialogControl)
          Called whenever a child was added (before lifecycle methods will be called).
protected  void onChildDeactivated(java.lang.String localName, SubDialogControl subDialogControl)
          Called whenever a child was deactivated.
protected  void onChildRemoved(java.lang.String localName, SubDialogControl subDialogControl)
          Called whenever a child was removed.
 void removeActivationControllerListener(ActivationControllerListener listener)
          Removes a previously registered ActivationControllerListener.
 
Methods inherited from class com.sdm.quasar.client.core.dialogbase.features.AbstractControllerFeature
activate, addSubDialogController, collectSystemInfo, deactivate, getLifeCycleState, getSubDialogController, getSubDialogController, getSubDialogController, getSubDialogControllerCount, hasSubDialogController, hasSubDialogController, hasSubDialogController, iterateSubDialogControllers, prepare, removeSubDialogController, removeSubDialogController, requestActivate, requestDeactivate
 
Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature
attachDialogControl, dispose, disposeFeature, getDialogControl, init, isInitialized, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractActivationControllerFeature

public AbstractActivationControllerFeature(java.lang.String serviceRegistrationContext)
Creates a new AbstractActivationControllerFeature.

Method Detail

addActivationControllerListener

public void addActivationControllerListener(ActivationControllerListener listener)
Description copied from interface: ActivationController
Adds an ActivationControllerListener to get informed about changes of the controlled set of subdialogs and their activation.

Note: The listener gets immediately events for already added subdialogs and for already active subdialogs!

Specified by:
addActivationControllerListener in interface ActivationController
Parameters:
listener - the listener to add (not null).
See Also:
ActivationController.addActivationControllerListener(com.sdm.quasar.client.core.embedding.ActivationControllerListener)

removeActivationControllerListener

public void removeActivationControllerListener(ActivationControllerListener listener)
Description copied from interface: ActivationController
Removes a previously registered ActivationControllerListener.

Specified by:
removeActivationControllerListener in interface ActivationController
Parameters:
listener - the listener to remove (not null).
See Also:
ActivationController.removeActivationControllerListener(com.sdm.quasar.client.core.embedding.ActivationControllerListener)

onChildAdded

protected final void onChildAdded(java.lang.String localName,
                                  SubDialogControl subDialogControl)
Description copied from class: AbstractControllerFeature
Called whenever a child was added (before lifecycle methods will be called).

Overrides:
onChildAdded in class AbstractControllerFeature
Parameters:
localName - the local name of the child dialog
subDialogControl - the SubDialogControl of the child dialog
See Also:
com.sdm.quasar.client.core.dialog.features.AbstractControllerFeature#onChildAdded(java.lang.String, com.sdm.quasar.client.core.dialog.SubDialogControl)

onChildRemoved

protected final void onChildRemoved(java.lang.String localName,
                                    SubDialogControl subDialogControl)
Description copied from class: AbstractControllerFeature
Called whenever a child was removed.

Overrides:
onChildRemoved in class AbstractControllerFeature
Parameters:
localName - the local name of the child dialog
subDialogControl - the SubDialogControl of the child dialog
See Also:
com.sdm.quasar.client.core.dialog.features.AbstractControllerFeature#onChildRemoved(java.lang.String, com.sdm.quasar.client.core.dialog.SubDialogControl)

onChildActivated

protected final void onChildActivated(java.lang.String localName,
                                      SubDialogControl subDialogControl)
Description copied from class: AbstractControllerFeature
Called whenever a child was activated.

Overrides:
onChildActivated in class AbstractControllerFeature
Parameters:
localName - the local name of the child dialog
subDialogControl - the SubDialogControl of the child dialog
See Also:
com.sdm.quasar.client.core.dialog.features.AbstractControllerFeature#onChildActivated(java.lang.String, com.sdm.quasar.client.core.dialog.SubDialogControl)

onChildDeactivated

protected final void onChildDeactivated(java.lang.String localName,
                                        SubDialogControl subDialogControl)
Description copied from class: AbstractControllerFeature
Called whenever a child was deactivated.

Overrides:
onChildDeactivated in class AbstractControllerFeature
Parameters:
localName - the local name of the child dialog
subDialogControl - the SubDialogControl of the child dialog
See Also:
com.sdm.quasar.client.core.dialog.features.AbstractControllerFeature#onChildDeactivated(java.lang.String, com.sdm.quasar.client.core.dialog.SubDialogControl)