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

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

public class PortalPresentation
extends AbstractFeature

Presentation feature for the PortalDialog.

This presentation uses PortalPanel as visual representation. The embedding of sub dialogs is managed using a PanelCompositeFeature, the two positions PortalDialog.RESOURCE_ID_NAVIGATION and PortalDialog.RESOURCE_ID_CONTENT are supported.

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

Constructor Summary
PortalPresentation()
           
 
Method Summary
protected  void activate()
          Shows our window.
protected  void deactivate()
          Hides our window.
 void dispose()
          Hides and disposes our window.
protected  void init()
          Called when the feature is initializing.
protected  void initPresentation()
          Creates our visual representation (the #frame and its content, the #portalPanel).
 
Methods inherited from class com.sdm.quasar.client.core.dialog.AbstractFeature
attachDialogControl, collectSystemInfo, disposeFeature, getDialogControl, isInitialized, prepare, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortalPresentation

public PortalPresentation()
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

activate

protected void activate()
Shows our window.

Overrides:
activate in class AbstractFeature

deactivate

protected void deactivate()
Hides our window.

Overrides:
deactivate in class AbstractFeature

dispose

public void dispose()
             throws DisposeException
Hides and disposes our window.

Specified by:
dispose in class AbstractFeature
Throws:
DisposeException

initPresentation

protected void initPresentation()
Creates our visual representation (the #frame and its content, the #portalPanel). Adds the menu bar (#createJMenuBar()) and connects the closing event to PortalDialogActionFeature.requestCloseDialog().