com.sdm.quasar.client.core.dialogbase.features
Class RootControllerFeature

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.dialogbase.features.RootControllerFeature
All Implemented Interfaces:
Feature, SystemInfoProvider

public class RootControllerFeature
extends AbstractControllerFeature

A simple activation controller, that simply activates all subdialogs that where added to it (when itself is activated).

Version:
1.0
Author:
Thomas Wolf

Nested Class Summary
 
Nested classes inherited from class com.sdm.quasar.client.core.dialogbase.features.AbstractControllerFeature
AbstractControllerFeature.SubDialogController
 
Constructor Summary
RootControllerFeature()
          Creates a new RootControllerFeature.
 
Method Summary
 void addDialog(SubDialogControl subDialogControl)
          Adds a new dialog to this RootControllerFeature.
 void addDialog(SubDialogControl subDialogControl, DeactivationCallback deactivationCallback)
          Adds a new dialog to this RootControllerFeature.
protected  void dispose()
          Called when the feature or dialog is disposed.
protected  void init()
          Called when the feature is initializing.
 void removeDialog(SubDialogControl subDialogControl)
          Removes a previously added dialog from this controller
 
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, onChildActivated, onChildAdded, onChildDeactivated, onChildRemoved, prepare, removeSubDialogController, removeSubDialogController, requestActivate, requestDeactivate
 
Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature
attachDialogControl, disposeFeature, getDialogControl, isInitialized, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RootControllerFeature

public RootControllerFeature()
Creates a new RootControllerFeature.

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

addDialog

public void addDialog(SubDialogControl subDialogControl)
Adds a new dialog to this RootControllerFeature. The given dialog will become active when the current dialog (where this feature is installed) becomes active.

Parameters:
subDialogControl - the SubDialogControl for the root dialog

addDialog

public void addDialog(SubDialogControl subDialogControl,
                      DeactivationCallback deactivationCallback)
Adds a new dialog to this RootControllerFeature. The given dialog will become active when the current dialog (where this feature is installed) becomes active.

Parameters:
subDialogControl - the SubDialogControl for the root dialog
deactivationCallback - a DeactivationCallback, that will be called back, whenever the SubDialogControl was deactivated

removeDialog

public void removeDialog(SubDialogControl subDialogControl)
Removes a previously added dialog from this controller

Parameters:
subDialogControl - the SubDialogControl specifying the dialog to remove