|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.dialog.AbstractFeature
com.sdm.quasar.client.showcase.swing.navigation.NavigationDialog
The navigation dialog that displays a tree menu used to select various dialogs in the portal.
The dialog uses a NavigationPanel
as visual representation.
The dialog requires that a
PortalControlService
is available in the hierarchy.
The dialog requires a creation context of type
NavigationDialogConfig.
The dialog uses a DataManagerComponent}
to store the navigation tree and the currently selected node.
| Field Summary | |
protected static java.lang.String |
DATA_NAVIGATION_TREE
The key of the navigation menu in the data manager, the value is of type NavigationMenuNode. |
protected static java.lang.String |
DATA_SELECTED_NODE
The key of the currently selected menu item in the data manager, the value is of type NavigationMenuNode. |
| Constructor Summary | |
NavigationDialog()
|
|
| Method Summary | |
protected boolean |
canRemoveOldDialog()
Tests if the current content dialog can be removed (calls PortalControlService.canReleaseContent()). |
protected void |
changeToNewDialog(NavigationMenuNode navigationMenuNode)
Updates the value of DATA_SELECTED_NODE
and calls PortalControlService.createContentDialog(String, Object)
with the parameters defined in the given node. |
protected void |
dispose()
Called when the feature or dialog is disposed. |
protected void |
init()
Called when the feature is initializing. |
protected void |
prepare()
Called when the dialog is prepared. |
void |
selectNode(NavigationMenuNode navigationMenuNode)
Closes the current content dialog if possible ( canRemoveOldDialog()) and
creates the new content dialog (changeToNewDialog(NavigationMenuNode). |
| 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 |
protected static final java.lang.String DATA_NAVIGATION_TREE
NavigationMenuNode.
protected static final java.lang.String DATA_SELECTED_NODE
NavigationMenuNode.
| Constructor Detail |
public NavigationDialog()
| Method Detail |
protected void init()
AbstractFeatureDialogControl 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.
init in class AbstractFeaturecom.sdm.quasar.client.core.dialog.features.AbstractFeature#init()
protected void dispose()
throws DisposeException
AbstractFeature
dispose in class AbstractFeatureDisposeExceptioncom.sdm.quasar.client.core.dialog.features.AbstractFeature#dispose()protected void prepare()
AbstractFeatureLifeCycle.prepare(),
e.g. gain resource and provide services for childs.
The default implementation in AbstractFeature does nothing.
prepare in class AbstractFeatureAbstractFeature.prepare()public void selectNode(NavigationMenuNode navigationMenuNode)
canRemoveOldDialog()) and
creates the new content dialog (changeToNewDialog(NavigationMenuNode).
selectNode in interface NavigationDialogActionsnavigationMenuNode - the menu entry to select or null, if no entry should be selectedprotected boolean canRemoveOldDialog()
PortalControlService.canReleaseContent()).
protected void changeToNewDialog(NavigationMenuNode navigationMenuNode)
DATA_SELECTED_NODE
and calls PortalControlService.createContentDialog(String, Object)
with the parameters defined in the given node.
navigationMenuNode - the menu entry with its dialog information
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||