com.sdm.quasar.client.showcase.swing.portal
Class PortalDialog

java.lang.Object
  extended bycom.sdm.quasar.client.core.dialog.AbstractFeature
      extended bycom.sdm.quasar.client.showcase.swing.portal.PortalDialog
All Implemented Interfaces:
Feature, SystemInfoProvider

public class PortalDialog
extends AbstractFeature

Portal dialog for the showcase.

The dialog has a left area which is reserved for a navigation dialog and a right area which displays a content dialog. The navigation dialog is created according to the PortalDialogConfiguration and gets the ability to control the content area by using the PortalControlService.

The sub dialogs' life cycles are managed by a MultipleActivationControllerFeature. The presentation is managed by PortalPresentation.

The dialog requires a creation context of type PortalDialogConfiguration.

Version:
1.0
Author:
Thomas Wolf, sd&m AG, Martin Haft, sd&m AG, Bernd Olleck, sd&m AG

Field Summary
protected static java.lang.String RESOURCE_ID_CONTENT
          the id used to identify the slot where the content dialog is placed
protected static java.lang.String RESOURCE_ID_NAVIGATION
          the id used to identify the slot where the navigation dialog is placed
 
Constructor Summary
PortalDialog()
           
 
Method Summary
protected  void createNavigationDialog(java.lang.String dialogId, java.lang.Object context)
          Creates the navigation dialog and adds it to the activation controller.
protected  void dispose()
          Called when the feature or dialog is disposed.
protected  void init()
          Called when the feature is initializing.
protected  void prepare()
          Creates the navigation dialog as configured in the PortalDialogConfiguration by calling createNavigationDialog(String, Object).
 
Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature
activate, attachDialogControl, collectSystemInfo, deactivate, disposeFeature, getDialogControl, isInitialized, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_ID_CONTENT

protected static final java.lang.String RESOURCE_ID_CONTENT
the id used to identify the slot where the content dialog is placed

See Also:
Constant Field Values

RESOURCE_ID_NAVIGATION

protected static final java.lang.String RESOURCE_ID_NAVIGATION
the id used to identify the slot where the navigation dialog is placed

See Also:
Constant Field Values
Constructor Detail

PortalDialog

public PortalDialog()
Method Detail

init

protected void init()
Description copied from class: AbstractFeature
Called when the feature is initializing. This is normally done, when the feature is connected to the lifecycle of the DialogControl installed to. To access the DialogControl use the AbstractFeature.getDialogControl() method.

Override this method to perform some action on initialization e.g. register public services.

Specified by:
init in class AbstractFeature
See Also:
com.sdm.quasar.client.core.dialog.features.AbstractFeature#init()

dispose

protected void dispose()
                throws DisposeException
Description copied from class: AbstractFeature
Called when the feature or dialog is disposed. Override this method to clean up resources and free memory when disposing.

Specified by:
dispose in class AbstractFeature
Throws:
DisposeException
See Also:
com.sdm.quasar.client.core.dialog.features.AbstractFeature#dispose()

prepare

protected void prepare()
Creates the navigation dialog as configured in the PortalDialogConfiguration by calling createNavigationDialog(String, Object).

Overrides:
prepare in class AbstractFeature

createNavigationDialog

protected void createNavigationDialog(java.lang.String dialogId,
                                      java.lang.Object context)
Creates the navigation dialog and adds it to the activation controller.

Parameters:
dialogId - the dialog id of the navigation dialog
context - the creation context of the navigation dialog