jaxx.runtime.swing.navigation
Interface NavigationModel<E extends NavigationNode<E>>

All Known Implementing Classes:
AbstractNavigationModel, NavigationTreeModel, NavigationTreeTableModel

Deprecated. since 2.1, prefer use the simplify api jaxx.runtime.swing.tree.

@Deprecated
public interface NavigationModel<E extends NavigationNode<E>>

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

Il est composé de NavigationNode

Since:
2.0.0
Author:
sletellier

Method Summary
 void addTreeModelListener(TreeModelListener l)
          Deprecated. Adds a listener for the TreeModelEvent posted after the tree changes.
 E findNode(E root, String path)
          Deprecated. Search from a given root node a node named by his fully path (concatenation of nodes NavigationTreeNode.path valued separated by getPathSeparator().
 E findNode(E root, String path, Pattern regex)
          Deprecated. Apply first the regex pattern to obtain the searched node.
 E findNode(E root, String path, String regex)
          Deprecated. Apply first the regex pattern to obtain the searched node.
 E findNode(String path)
          Deprecated. Search from the root node a node named by his fully path (concatenation of nodes NavigationTreeNode.path valued separated by dot.
 E findNode(String path, Pattern regex)
          Deprecated. Apply first the regex pattern to obtain the searched node.
 E findNode(String path, String regex)
          Deprecated. Apply first the regex pattern to obtain the searched node fi the given regex is not null.
 Object getBean(E node)
          Deprecated. Obtain the associated bean value from context corresponding to node
 Object getBean(String navigationPath)
          Deprecated. Obtain the associated bean value from context corresponding to node from given navigation path.
 Object getChild(Object parent, int index)
          Deprecated. Returns the child of parent at index index in the parent's child array.
 int getChildCount(Object parent)
          Deprecated. Returns the number of children of parent.
 JAXXContext getContext()
          Deprecated.  
 int getIndexOfChild(Object parent, Object child)
          Deprecated. Returns the index of child in parent.
 String getPathSeparator()
          Deprecated.  
 E[] getPathToRoot(E aNode)
          Deprecated.  
 E getRoot()
          Deprecated.  
 boolean isAdjustingValue()
          Deprecated.  
 boolean isLeaf(Object node)
          Deprecated. Returns true if node is a leaf.
 void nodeChanged(E node)
          Deprecated.  
 void nodeChanged(E node, boolean deep)
          Deprecated.  
 void nodeStructureChanged(E node)
          Deprecated.  
 void removeNodeFromParent(E node)
          Deprecated.  
 void removeTreeModelListener(TreeModelListener l)
          Deprecated. Removes a listener previously added with addTreeModelListener.
 void setAdjustingValue(boolean adjustingValue)
          Deprecated. Sets the new internal state adjustingValue.
 void setRoot(E root)
          Deprecated.  
 void valueForPathChanged(TreePath path, Object newValue)
          Deprecated. Messaged when the user has altered the value for the item identified by path to newValue.
 

Method Detail

getRoot

E getRoot()
Deprecated. 

setRoot

void setRoot(E root)
Deprecated. 

getPathToRoot

E[] getPathToRoot(E aNode)
Deprecated. 

removeNodeFromParent

void removeNodeFromParent(E node)
Deprecated. 

findNode

E findNode(String path)
Deprecated. 
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

E findNode(String path,
           String regex)
Deprecated. 
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

E findNode(String path,
           Pattern regex)
Deprecated. 
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

E findNode(E root,
           String path)
Deprecated. 
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

E findNode(E root,
           String path,
           String regex)
Deprecated. 
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

E findNode(E root,
           String path,
           Pattern regex)
Deprecated. 
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()
Deprecated. 

isAdjustingValue

boolean isAdjustingValue()
Deprecated. 
Returns:
true if no event should be fired

setAdjustingValue

void setAdjustingValue(boolean adjustingValue)
Deprecated. 
Sets the new internal state adjustingValue. If the value is true, no more event will be fired, otherwise will not block events firing.

Parameters:
adjustingValue - the new value of valueAdjusting state

getBean

Object getBean(String navigationPath)
Deprecated. 
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(E node)
Deprecated. 
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(E node)
Deprecated. 

nodeStructureChanged

void nodeStructureChanged(E node)
Deprecated. 

nodeChanged

void nodeChanged(E node,
                 boolean deep)
Deprecated. 

getPathSeparator

String getPathSeparator()
Deprecated. 

getChild

Object getChild(Object parent,
                int index)
Deprecated. 
Returns the child of parent at index index in the parent's child array. parent must be a node previously obtained from this data source. This should not return null if index is a valid index for parent (that is index >= 0 && index < getChildCount(parent)).

Parameters:
parent - a node in the tree, obtained from this data source
index - index of the node
Returns:
the child of parent at index index

getChildCount

int getChildCount(Object parent)
Deprecated. 
Returns the number of children of parent. Returns 0 if the node is a leaf or if it has no children. parent must be a node previously obtained from this data source.

Parameters:
parent - a node in the tree, obtained from this data source
Returns:
the number of children of the node parent

isLeaf

boolean isLeaf(Object node)
Deprecated. 
Returns true if node is a leaf. It is possible for this method to return false even if node has no children. A directory in a filesystem, for example, may contain no files; the node representing the directory is not a leaf, but it also has no children.

Parameters:
node - a node in the tree, obtained from this data source
Returns:
true if node is a leaf

valueForPathChanged

void valueForPathChanged(TreePath path,
                         Object newValue)
Deprecated. 
Messaged when the user has altered the value for the item identified by path to newValue. If newValue signifies a truly new value the model should post a treeNodesChanged event.

Parameters:
path - path to the node that the user has altered
newValue - the new value from the TreeCellEditor

getIndexOfChild

int getIndexOfChild(Object parent,
                    Object child)
Deprecated. 
Returns the index of child in parent. If either parent or child is null, returns -1. If either parent or child don't belong to this tree model, returns -1.

Parameters:
parent - a node in the tree, obtained from this data source
child - the node we are interested in
Returns:
the index of the child in the parent, or -1 if either child or parent are null or don't belong to this tree model

addTreeModelListener

void addTreeModelListener(TreeModelListener l)
Deprecated. 
Adds a listener for the TreeModelEvent posted after the tree changes.

Parameters:
l - the listener to add
See Also:
removeTreeModelListener(javax.swing.event.TreeModelListener)

removeTreeModelListener

void removeTreeModelListener(TreeModelListener l)
Deprecated. 
Removes a listener previously added with addTreeModelListener.

Parameters:
l - the listener to remove
See Also:
addTreeModelListener(javax.swing.event.TreeModelListener)


Copyright © 2008-2010 CodeLutin. All Rights Reserved.