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

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

public class NavigationMenuNode
extends java.lang.Object

Represents one node in the navigation menu of the NavigationDialog.

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

Constructor Summary
NavigationMenuNode(java.lang.String name, java.lang.String dialogId, java.lang.Object dialogContext)
          Constructor.
 
Method Summary
 void addChild(NavigationMenuNode childNode)
          Adds a child node.
 java.util.List getChildren()
           
 java.lang.Object getDialogContext()
           
 java.lang.String getDialogId()
           
 java.lang.String getName()
           
 java.lang.String toString()
          A human readable string representation of the navigation menu node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NavigationMenuNode

public NavigationMenuNode(java.lang.String name,
                          java.lang.String dialogId,
                          java.lang.Object dialogContext)
Constructor.

Parameters:
name - the human readable name of this node.
dialogId - the dialog id of the dialog that should be displayed when this node is selected
dialogContext - the creation context for the dialog that should be displayed when this node is selected
Method Detail

addChild

public void addChild(NavigationMenuNode childNode)
Adds a child node.

Parameters:
childNode - the new child node

getChildren

public java.util.List getChildren()
Returns:
the children of this node, a list of NavigationMenuNode.

getDialogContext

public java.lang.Object getDialogContext()
Returns:
the creation context for the dialog that should be displayed when this node is selected

getDialogId

public java.lang.String getDialogId()
Returns:
the dialog id of the dialog that should be displayed when this node is selected

getName

public java.lang.String getName()
Returns:
the human readable name of this node.

toString

public java.lang.String toString()
A human readable string representation of the navigation menu node