|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.dialog.impl.DefaultSubDialogControl
Default implementation of SubDialogControl.
| Method Summary | |
void |
collectSystemInfo(SystemInfoNode root,
SystemInfoOptions options)
Builds the system information tree upon local information of the implementor. |
SubDialogLifeCycleController |
createAndActivateSubDialogLifeCycleController()
Creates a new SubDialogLifeCycleController and sets it as current one for
this DialogControl. |
void |
disposeDialog()
Disposes the dialog and its children, independently of the current state. |
DialogInstanceId |
getDialogInstanceId()
|
LifeCycleState |
getLifeCycleState()
|
ID |
getParentId()
|
Service |
getService(java.lang.Class service)
Returns the implementation of a desired service registered at the controlled dialog. |
boolean |
hasService(java.lang.Class service)
Tests if a service is registered at the controlled dialog. |
void |
registerService(java.lang.Class service,
Service implementation)
Registers a service for this node. |
void |
registerService(java.lang.Class service,
Service implementation,
java.lang.String registrationContext)
Registers a service for this node. |
void |
unregisterService(java.lang.Class service,
Service implementation)
Unregisters a service for this node. |
void |
unregisterServices(java.lang.String registrationContext)
Unregisters all services registered with the same registration context |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public DialogInstanceId getDialogInstanceId()
getDialogInstanceId in interface SubDialogControlSubDialogControl.SubDialogControl.getDialogInstanceId()public ID getParentId()
public LifeCycleState getLifeCycleState()
getLifeCycleState in interface LifeCycleStateProviderLifeCycleStateProvider.getLifeCycleState()
public void disposeDialog()
throws DisposeException
SubDialogControlThe call to this method is irrevokable. If you want to allow for user interaction or server calls before the dialog or its children are disposed, you should do so before calling this method.
disposeDialog in interface SubDialogControlDisposeException - if the dialog could not be disposed
due to an error in the dialog implementation.SubDialogControl.disposeDialog()public SubDialogLifeCycleController createAndActivateSubDialogLifeCycleController()
SubDialogControlSubDialogLifeCycleController and sets it as current one for
this DialogControl. The SubDialogLifeCycleController is used to
control the lifecycle state (prepared, active...) of the controlled subdialog.
Note: A SubDialogControl has only a single active
SubDialogLifeCycleController. This is the last one created by this method.
So calling this method grabs the control of the child's lifecycles completely!
Use with caution; normally calls to this method are made only by technical
helper classes, that are managing the lifecycle states together with the
visual representations to get them in sync.
createAndActivateSubDialogLifeCycleController in interface SubDialogControlSubDialogLifeCycleController.com.sdm.quasar.client.core.dialog.DialogControl#createAndActivateSubDialogLifeCycleController()public boolean hasService(java.lang.Class service)
SubDialogServiceAccess
hasService in interface SubDialogServiceAccessservice - the class of the service interface that is searched for
SubDialogServiceAccess.hasService(java.lang.Class)public Service getService(java.lang.Class service)
SubDialogServiceAccess
getService in interface SubDialogServiceAccessservice - the class of the service interface that is requested
SubDialogServiceAccess.getService(java.lang.Class)
public void registerService(java.lang.Class service,
Service implementation,
java.lang.String registrationContext)
SubDialogServiceAccessService,
and the implementation implement that interface.
If there is already an implementation registered for that service, that implementation is replaced by the passed as a parameter.
Please note that a a registered service should be unregistered when the life cycle of the provider ends.
registerService in interface SubDialogServiceAccessservice - the interface that defines the serviceimplementation - the implementation of the serviceregistrationContext - an optional registration context (may be null);
may be used for easy unregistration of services to an context (see #unregisterServices(Object))SubDialogServiceAccess.registerService(java.lang.Class, com.sdm.quasar.client.core.common.services.Service, java.lang.String)
public void registerService(java.lang.Class service,
Service implementation)
SubDialogServiceAccessService,
and the implementation implement that interface.
If there is already an implementation registered for that service, that implementation is replaced by the passed as a parameter.
Please note that a a registered service should be unregistered when the life cycle of the provider ends.
registerService in interface SubDialogServiceAccessservice - the interface that defines the serviceimplementation - the implementation of the serviceSubDialogServiceAccess.registerService(java.lang.Class, com.sdm.quasar.client.core.common.services.Service)
public void unregisterService(java.lang.Class service,
Service implementation)
SubDialogServiceAccessIf the service is not registered for this node or the given implementation is not the one that is registered, nothing happens.
Therefore, if a service implementation is replaced by another implementation, the unregistering of the first implementation is harmless since the second implementation will stay registered. However, if the second implementation is unregistered first, then no service will be available, even though the first service implementation hasn't been unregistered yet.
unregisterService in interface SubDialogServiceAccessservice - the interface that defines the serviceimplementation - the registered implementation of the serviceSubDialogServiceAccess.unregisterService(java.lang.Class, com.sdm.quasar.client.core.common.services.Service)public void unregisterServices(java.lang.String registrationContext)
SubDialogServiceAccess
unregisterServices in interface SubDialogServiceAccessregistrationContext - the registration context object that mark the
services to unregisterSubDialogServiceAccess.unregisterServices(java.lang.String)
public void collectSystemInfo(SystemInfoNode root,
SystemInfoOptions options)
SystemInfoProviderSystemInfoOptions).
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.
collectSystemInfo in interface SystemInfoProviderroot - the SystemInfoNode to add information to (guaranteed to be not null)options - contains additional options, that might influence the amount of
information added to the tree (guaranteed to be not null)SystemInfoProvider.collectSystemInfo(com.sdm.quasar.client.core.common.sysinfo.SystemInfoNode, com.sdm.quasar.client.core.common.sysinfo.SystemInfoOptions)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||