com.sdm.quasar.client.showcase.swing.navigation
Class NavigationDialogConfig

java.lang.Object
  extended bycom.sdm.quasar.client.showcase.swing.navigation.NavigationDialogConfig

public class NavigationDialogConfig
extends java.lang.Object

Context configuration object for the NavigationDialog. This class defines the structure of the navigation menu and which dialog should be displayed, when no node is selected.

The value for the menu definition is an array of entries, one for each entry in the navigation menu. Each entry is an array of four values:

  1. The depth of the menu entry as a String parsable into an Integer. The highest level is "1".
  2. The title of the node displayed in the navigation menu, a human readable string.
  3. The dialog id of dialog that should be displayed when this entry is selected.
  4. The context object that should be passed to the dialog upon creation.

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

Constructor Summary
NavigationDialogConfig(java.lang.String noSelectionDialogId, java.lang.Object noSelectionDialogContext, java.lang.Object[][] navigationMenu)
          Constructor.
 
Method Summary
 java.lang.Object[][] getNavigationMenu()
           
 java.lang.Object getNoSelectionDialogContext()
           
 java.lang.String getNoSelectionDialogId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavigationDialogConfig

public NavigationDialogConfig(java.lang.String noSelectionDialogId,
                              java.lang.Object noSelectionDialogContext,
                              java.lang.Object[][] navigationMenu)
Constructor.

Parameters:
noSelectionDialogId - the id of the dialog that should be displayed when no menu item is selected
noSelectionDialogContext - the creation context of the dialog that should be displayed when no menu item is selected
navigationMenu - the definition of the menu, see NavigationDialogConfig for information about the value
Method Detail

getNoSelectionDialogContext

public java.lang.Object getNoSelectionDialogContext()
Returns:
the creation context of the dialog that should be displayed when no menu item is selected

getNoSelectionDialogId

public java.lang.String getNoSelectionDialogId()
Returns:
the id of the dialog that should be displayed when no menu item is selected

getNavigationMenu

public java.lang.Object[][] getNavigationMenu()
Returns:
the definition of the menu, see NavigationDialogConfig for information about the value