com.sdm.quasar.client.core.embedding
Interface MultipleActivationController

All Superinterfaces:
ActivationController
All Known Implementing Classes:
MultipleActivationControllerFeature

public interface MultipleActivationController
extends ActivationController

An ActivationController, that manages a set of sub dialogs with a local name. Any of the sub dialogs can be activated or deactivated. Per default an added sub dialog will be activated.

Version:
1.0
Author:
Thomas Wolf

Method Summary
 void addSubDialog(java.lang.String localName, SubDialogControl subDialogControl)
          Adds a new subdialog to get controlled by this controller.
 SubDialogControl getSubDialogControl(java.lang.String localName)
          Returns the SubDialogControl of an controlled subdialog which was registered under the local name given.
 boolean hasSubDialogControl(java.lang.String localName)
          Checks if a SubDialogControl has been registered under the given local name.
 void removeSubDialog(java.lang.String localName)
          Removes the specified previously added subdialog from this controller.
 void removeSubDialog(SubDialogControl subDialogControl)
          Removes the specified previously added subdialog from this controller.
 void setSubDialogActive(java.lang.String localName, boolean active)
          Sets the controlled sub dialog with the given local name to active or inactive.
 
Methods inherited from interface com.sdm.quasar.client.core.embedding.ActivationController
addActivationControllerListener, removeActivationControllerListener
 

Method Detail

addSubDialog

public void addSubDialog(java.lang.String localName,
                         SubDialogControl subDialogControl)
Adds a new subdialog to get controlled by this controller.

Parameters:
localName - a local name to choose (must be unique for this controller)
subDialogControl - the SubDialogControl for the controlled subdialog

removeSubDialog

public void removeSubDialog(SubDialogControl subDialogControl)
Removes the specified previously added subdialog from this controller.

Parameters:
subDialogControl - the SubDialogControl specifying the subdialog to remove

removeSubDialog

public void removeSubDialog(java.lang.String localName)
Removes the specified previously added subdialog from this controller.

Parameters:
localName - the local name specifying the subdialog to remove

getSubDialogControl

public SubDialogControl getSubDialogControl(java.lang.String localName)
Returns the SubDialogControl of an controlled subdialog which was registered under the local name given.

Parameters:
localName - the local name, where the subdialog was registered under
Returns:
the SubDialogControl of the controlled subdialog

hasSubDialogControl

public boolean hasSubDialogControl(java.lang.String localName)
Checks if a SubDialogControl has been registered under the given local name.

Parameters:
localName - the local name, where the subdialog was registered under
Returns:
true if a subdialog has been registered, false if not

setSubDialogActive

public void setSubDialogActive(java.lang.String localName,
                               boolean active)
Sets the controlled sub dialog with the given local name to active or inactive.

Parameters:
localName - the local name of the subdialog to activate