jaxx.runtime.swing.navigation
Interface NavigationModel

All Known Implementing Classes:
NavigationTreeModel, NavigationTreeTableModel

public interface NavigationModel

Interface to create model of the tree used for a navigation tree.

Il est composé de NavigationTreeNode

Since:
2.0.0
Author:
sletellier

Method Summary
 NavigationTreeNode findNode(NavigationTreeNode root, String path)
          Search from a given root node a node named by his fully path (concatenation of nodes NavigationTreeNode.path valued separated by getPathSeparator().
 NavigationTreeNode findNode(NavigationTreeNode root, String path, Pattern regex)
          Apply first the regex pattern to obtain the searched node.
 NavigationTreeNode findNode(NavigationTreeNode root, String path, String regex)
          Apply first the regex pattern to obtain the searched node.
 NavigationTreeNode findNode(String path)
          Search from the root node a node named by his fully path (concatenation of nodes NavigationTreeNode.path valued separated by dot.
 NavigationTreeNode findNode(String path, Pattern regex)
          Apply first the regex pattern to obtain the searched node.
 NavigationTreeNode findNode(String path, String regex)
          Apply first the regex pattern to obtain the searched node fi the given regex is not null.
 Object getBean(NavigationTreeNode node)
          Obtain the associated bean value from context corresponding to node
 Object getBean(String navigationPath)
          Obtain the associated bean value from context corresponding to node from given navigation path.
 JAXXContext getContext()
           
 String getPathSeparator()
           
 TreeNode[] getPathToRoot(TreeNode aNode)
           
 Object getRoot()
           
 void nodeChanged(TreeNode node)
           
 void nodeChanged(TreeNode node, boolean deep)
           
 void nodeStructureChanged(TreeNode node)
           
 

Method Detail

getRoot

Object getRoot()

getPathToRoot

TreeNode[] getPathToRoot(TreeNode aNode)

findNode

NavigationTreeNode findNode(String path)
Search from the root node a node named by his fully path (concatenation of nodes NavigationTreeNode.path valued separated by dot.

Example :

$root.child1.leaf1

Parameters:
path - the fully path of the searched node.
Returns:
the node matching the fully context from the root node, or null if not find.

findNode

NavigationTreeNode findNode(String path,
                            String regex)
Apply first the regex pattern to obtain the searched node fi the given regex is not null.

Search then from the root node a node named by his fully path (concatenation of nodes NavigationTreeNode.path valued separated by getPathSeparator().

Example :

$root.child1.leaf1

Parameters:
path - the fully path of the searched node.
regex - a optional regex to apply to path before searching
Returns:
the node matching the fully context from the root node, or null if not found.

findNode

NavigationTreeNode findNode(String path,
                            Pattern regex)
Apply first the regex pattern to obtain the searched node.

Search then from the root node a node named by his fully path (concatenation of nodes NavigationTreeNode.path valued separated by getPathSeparator().

Example :

$root.child1.leaf1

Parameters:
path - the fully path of the searched node.
regex - a optional regex to apply to path before searching
Returns:
the node matching the fully context from the root node, or null if not found.

findNode

NavigationTreeNode findNode(NavigationTreeNode root,
                            String path)
Search from a given root node a node named by his fully path (concatenation of nodes NavigationTreeNode.path valued separated by getPathSeparator().

Parameters:
root - root node to be used
path - the fully path of the searched node.
Returns:
the node matching the fully context from the given root node, or null if not found.

findNode

NavigationTreeNode findNode(NavigationTreeNode root,
                            String path,
                            String regex)
Apply first the regex pattern to obtain the searched node.

Search then from a given root node a node named by his fully path (concatenation of nodes) NavigationTreeNode.path valued separated by getPathSeparator().

Parameters:
root - root node to be used
path - the fully path of the searched node.
regex - a previous regex to apply to path : must have a matches
Returns:
the node matching the fully context from the given root node, or null if not found.

findNode

NavigationTreeNode findNode(NavigationTreeNode root,
                            String path,
                            Pattern regex)
Apply first the regex pattern to obtain the searched node.

Search then from a given root node a node named by his fully path (concatenation of nodes NavigationTreeNode.path valued separated by getPathSeparator().

Parameters:
root - root node to be used
path - the fully path of the searched node.
regex - a previous regex to apply to path : must have a matches
Returns:
the node matching the fully context from the given root node, or null if not found.

getContext

JAXXContext getContext()

getBean

Object getBean(String navigationPath)
Obtain the associated bean value from context corresponding to node from given navigation path.

Parameters:
navigationPath - the current context path of the node
Returns:
the value associated in context with the given navigation path

getBean

Object getBean(NavigationTreeNode node)
Obtain the associated bean value from context corresponding to node

Parameters:
node - the current node
Returns:
the value associated in context with the given node.

nodeChanged

void nodeChanged(TreeNode node)

nodeStructureChanged

void nodeStructureChanged(TreeNode node)

nodeChanged

void nodeChanged(TreeNode node,
                 boolean deep)

getPathSeparator

String getPathSeparator()


Copyright © 2008-2010 CodeLutin. All Rights Reserved.