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

java.lang.Object
  extended bycom.sdm.quasar.client.core.dialog.impl.DefaultDialogInstanceController
All Implemented Interfaces:
DialogInstanceController, DialogLifeCycleController, LifeCycleStateProvider, SystemInfoProvider

public final class DefaultDialogInstanceController
extends java.lang.Object
implements LifeCycleStateProvider, DialogInstanceController

Version:
1.$Revision$
Author:
Thomas Wolf

Method Summary
 void activateDialog()
          Activates the dialog.
 void collectSystemInfo(SystemInfoNode root, SystemInfoOptions options)
          Builds the system information tree upon local information of the implementor.
 void createDialog(java.lang.Object context)
          Initially creates and configures the dialog controlled.
 void deactivateDialog()
          Deactivates the dialog
 void disposeDialog()
          Disposes the dialog
 DialogInstance getDialogInstance()
           
 LifeCycleCompletionLevel getLifeCycleCompletionLevel()
           
 LifeCycleState getLifeCycleState()
           
 boolean isDisposed()
           
 boolean isDisposedOrDisposing()
           
 boolean isMarkedForActivation()
          Returns true if the dialog has been marked for activation.
 boolean isMarkedForPreparation()
          Returns true if the dialog has been marked for preparation.
 void prepareDialog()
          Prepeares the dialog.
 void releaseDialog()
          Releases the dialog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLifeCycleState

public LifeCycleState getLifeCycleState()
Specified by:
getLifeCycleState in interface LifeCycleStateProvider
Returns:
the life cycle state of this dialog
See Also:
LifeCycleStateProvider.getLifeCycleState()

getDialogInstance

public DialogInstance getDialogInstance()
Specified by:
getDialogInstance in interface DialogInstanceController
Returns:
the DialogInstance of the dialog controlled.
See Also:
DialogInstanceController.getDialogInstance()

getLifeCycleCompletionLevel

public LifeCycleCompletionLevel getLifeCycleCompletionLevel()
Specified by:
getLifeCycleCompletionLevel in interface DialogInstanceController
Returns:
the LifeCycleCompletionLevel.
See Also:
DialogInstanceController.getLifeCycleCompletionLevel()

isDisposed

public boolean isDisposed()
Specified by:
isDisposed in interface DialogInstanceController
See Also:
DialogInstanceController.isDisposed()

isDisposedOrDisposing

public boolean isDisposedOrDisposing()
Specified by:
isDisposedOrDisposing in interface DialogInstanceController
See Also:
DialogInstanceController.isDisposedOrDisposing()

isMarkedForActivation

public boolean isMarkedForActivation()
Description copied from interface: DialogInstanceController
Returns true if the dialog has been marked for activation. That is the case when activate has been called for the dialog before its parent has been activated.

Specified by:
isMarkedForActivation in interface DialogInstanceController
Returns:
true if the dialog has been marked for activation.
See Also:
DialogInstanceController.isMarkedForActivation()

isMarkedForPreparation

public boolean isMarkedForPreparation()
Description copied from interface: DialogInstanceController
Returns true if the dialog has been marked for preparation. That is the case when prepare has been called for the dialog before its parent has been prepared.

Specified by:
isMarkedForPreparation in interface DialogInstanceController
Returns:
true if the dialog has been marked for preparation.
See Also:
DialogInstanceController.isMarkedForPreparation()

createDialog

public void createDialog(java.lang.Object context)
                  throws java.lang.RuntimeException
Description copied from interface: DialogLifeCycleController
Initially creates and configures the dialog controlled.

Specified by:
createDialog in interface DialogLifeCycleController
Parameters:
context - a creation context object
Throws:
java.lang.RuntimeException
See Also:
DialogLifeCycleController.createDialog(java.lang.Object)

prepareDialog

public void prepareDialog()
Description copied from interface: DialogLifeCycleController
Prepeares the dialog.

Specified by:
prepareDialog in interface DialogLifeCycleController
See Also:
DialogLifeCycleController.prepareDialog()

activateDialog

public void activateDialog()
Description copied from interface: DialogLifeCycleController
Activates the dialog.

Specified by:
activateDialog in interface DialogLifeCycleController
See Also:
DialogLifeCycleController.activateDialog()

deactivateDialog

public void deactivateDialog()
Description copied from interface: DialogLifeCycleController
Deactivates the dialog

Specified by:
deactivateDialog in interface DialogLifeCycleController
See Also:
DialogLifeCycleController.deactivateDialog()

releaseDialog

public void releaseDialog()
Description copied from interface: DialogLifeCycleController
Releases the dialog

Specified by:
releaseDialog in interface DialogLifeCycleController
See Also:
DialogLifeCycleController.releaseDialog()

disposeDialog

public void disposeDialog()
Description copied from interface: DialogLifeCycleController
Disposes the dialog

Specified by:
disposeDialog in interface DialogLifeCycleController
See Also:
DialogLifeCycleController.disposeDialog()

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)