com.sdm.quasar.client.core.dialog.impl
Class DefaultDialogInstance

java.lang.Object
  extended bycom.sdm.quasar.client.core.dialog.impl.DefaultDialogInstance
All Implemented Interfaces:
DialogInstance, LifeCycleControl, SystemInfoProvider

public class DefaultDialogInstance
extends java.lang.Object
implements DialogInstance, LifeCycleControl, SystemInfoProvider

A default implementation of LifeCycleControl.

Version:
1.$Revision$
Author:
Thomas Wolf

Constructor Summary
DefaultDialogInstance(DialogInstanceId diid, LifeCycleStateProvider lifeCycleStateProvider, DialogLifeCycleController dialogLifeCycleController, HierarchyManager hierarchyManager, DialogManager dialogManager, DialogServiceManager dialogServiceManager)
          Creates a new DefaultDialogInstance.
 
Method Summary
 void attachToLifeCycle(LifeCycle lifeCycle)
          Attaches a component that is interested in the life cycle of this dialog to the notification chain.
 void collectSystemInfo(SystemInfoNode root, SystemInfoOptions options)
          Builds the system information tree upon local information of the implementor.
 void detachFromLifeCycle(LifeCycle lifeCycle)
          Detaches a component from the life cycle notification.
 java.lang.Object getCreationContext()
          Returns the creation context passed by the dialog instance creation of this dialog instance.
 DialogInstanceId getDialogInstanceId()
           
 DialogLifeCycleController getDialogLifeCycleController()
           
 DialogManager getDialogManager()
           
 DialogServiceManager getDialogServiceManager()
           
 FeatureManager getFeatureManager()
           
 HierarchyManager getHierarchyManager()
           
 LifeCycleControl getLifeCycleControl()
           
 LifeCycleStateProvider getLifeCycleStateProvider()
           
 void prepare()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDialogInstance

public DefaultDialogInstance(DialogInstanceId diid,
                             LifeCycleStateProvider lifeCycleStateProvider,
                             DialogLifeCycleController dialogLifeCycleController,
                             HierarchyManager hierarchyManager,
                             DialogManager dialogManager,
                             DialogServiceManager dialogServiceManager)
Creates a new DefaultDialogInstance.

Method Detail

prepare

public void prepare()

attachToLifeCycle

public void attachToLifeCycle(LifeCycle lifeCycle)
Description copied from interface: LifeCycleControl
Attaches a component that is interested in the life cycle of this dialog to the notification chain. All registered LifeCycle implementations will be notified of lifecycle changes in the order they have been registered for calls to LifeCycle.prepare() and LifeCycle.activate() and in reverse order for LifeCycle.deactivate() and LifeCycle.release().

Specified by:
attachToLifeCycle in interface LifeCycleControl
Parameters:
lifeCycle - the life cycle to be notified
See Also:
LifeCycleControl.attachToLifeCycle(LifeCycle)

detachFromLifeCycle

public void detachFromLifeCycle(LifeCycle lifeCycle)
Description copied from interface: LifeCycleControl
Detaches a component from the life cycle notification.

Specified by:
detachFromLifeCycle in interface LifeCycleControl
Parameters:
lifeCycle - the life cycle that should not be notified any more
See Also:
LifeCycleControl.detachFromLifeCycle(LifeCycle)

getDialogInstanceId

public DialogInstanceId getDialogInstanceId()
Specified by:
getDialogInstanceId in interface DialogInstance
Returns:
the instance id of the dialog.
See Also:
DialogInstance.getDialogInstanceId()

getCreationContext

public java.lang.Object getCreationContext()
Description copied from interface: DialogInstance
Returns the creation context passed by the dialog instance creation of this dialog instance.

Specified by:
getCreationContext in interface DialogInstance
See Also:
DialogInstance.getCreationContext()

getLifeCycleControl

public LifeCycleControl getLifeCycleControl()
Specified by:
getLifeCycleControl in interface DialogInstance
Returns:
the LifeCycleControl used.
See Also:
DialogInstance.getLifeCycleControl()

getLifeCycleStateProvider

public LifeCycleStateProvider getLifeCycleStateProvider()
Specified by:
getLifeCycleStateProvider in interface DialogInstance
Returns:
the LifeCycleStateProvider providing the lifecycle state.
See Also:
DialogInstance.getLifeCycleStateProvider()

getDialogLifeCycleController

public DialogLifeCycleController getDialogLifeCycleController()
Specified by:
getDialogLifeCycleController in interface DialogInstance
Returns:
the DialogLifeCycleController used.
See Also:
DialogInstance.getDialogLifeCycleController()

getDialogManager

public DialogManager getDialogManager()
Specified by:
getDialogManager in interface DialogInstance
Returns:
the DialogManager used.
See Also:
DialogInstance.getDialogManager()

getDialogServiceManager

public DialogServiceManager getDialogServiceManager()
Specified by:
getDialogServiceManager in interface DialogInstance
Returns:
the DialogServiceManager used.
See Also:
DialogInstance.getDialogServiceManager()

getFeatureManager

public FeatureManager getFeatureManager()
Specified by:
getFeatureManager in interface DialogInstance
Returns:
the FeatureManager to use.
See Also:
DialogInstance.getFeatureManager()

getHierarchyManager

public HierarchyManager getHierarchyManager()
Specified by:
getHierarchyManager in interface DialogInstance
Returns:
the HierarchyManager to use.
See Also:
DialogInstance.getHierarchyManager()

collectSystemInfo

public void collectSystemInfo(SystemInfoNode root,
                              SystemInfoOptions options)
Description copied from interface: SystemInfoProvider
Builds the system information tree upon local information of the implementor. The system information tree can be used within development by inspecting the system; so implementors should append their internal state (depending on the details settings within SystemInfoOptions). 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.

Specified by:
collectSystemInfo in interface SystemInfoProvider
Parameters:
root - 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)
See Also:
SystemInfoProvider.collectSystemInfo(com.sdm.quasar.client.core.common.sysinfo.SystemInfoNode, com.sdm.quasar.client.core.common.sysinfo.SystemInfoOptions)