com.sdm.quasar.client.core.dialogbase.features
Class AbstractControllerFeature.SubDialogController

java.lang.Object
  extended bycom.sdm.quasar.client.core.dialogbase.features.AbstractControllerFeature.SubDialogController
Enclosing class:
AbstractControllerFeature

protected final class AbstractControllerFeature.SubDialogController
extends java.lang.Object

The internal class to access informations of a controlled subdialog


Constructor Summary
AbstractControllerFeature.SubDialogController(java.lang.String localName, SubDialogControl subDialogControl)
          Creates a new SubDialogController.
 
Method Summary
 boolean canActivate()
           
 boolean canDeactivate()
           
 DialogInstanceId getDialogInstanceId()
           
 java.lang.String getLocalName()
          Returns the local name String.
 SubDialogControl getSubDialogControl()
          Returns the SubDialogControl.
 boolean isCurrentlyActive()
           
 boolean isMarkedActive()
          Returns true, if the subdialog controlled is active or marked as active.
 void registerService(java.lang.Class service, Service implementation)
          Registers a service on the given SubDialogControl; see SubDialogServiceAccess.registerService(Class, Service).
 void setMarkActive(boolean active)
           
 void unregisterServices()
          Unregisters all service for the given SubDialogControl, that were installed using this helper instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractControllerFeature.SubDialogController

public AbstractControllerFeature.SubDialogController(java.lang.String localName,
                                                     SubDialogControl subDialogControl)
Creates a new SubDialogController.

Method Detail

getLocalName

public java.lang.String getLocalName()
Returns the local name String.


getSubDialogControl

public SubDialogControl getSubDialogControl()
Returns the SubDialogControl.


getDialogInstanceId

public DialogInstanceId getDialogInstanceId()
Returns:
the instance id of the dialog that is controlled by this SubDialogControl.

isMarkedActive

public boolean isMarkedActive()
Returns true, if the subdialog controlled is active or marked as active.


isCurrentlyActive

public boolean isCurrentlyActive()

canActivate

public boolean canActivate()

canDeactivate

public boolean canDeactivate()

setMarkActive

public void setMarkActive(boolean active)

registerService

public void registerService(java.lang.Class service,
                            Service implementation)
Registers a service on the given SubDialogControl; see SubDialogServiceAccess.registerService(Class, Service).

Parameters:
service - the interface that defines the service
implementation - the implementation of the service
Throws:
java.lang.IllegalArgumentException - if the providerId is unknown, service is not an interface or does not extend Service, or the implementation does not implement the interface that defines the service.

unregisterServices

public void unregisterServices()
Unregisters all service for the given SubDialogControl, that were installed using this helper instance.