|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.tree.DefaultTreeModel
jaxx.runtime.swing.navigation.NavigationTreeModel
public class NavigationTreeModel
Model of the tree used for a navigation tree.
Il est composé deNavigationTreeNode
| Field Summary | |
|---|---|
protected String |
pathSeparator
The path separator used to build the NavigationTreeNode.fullPath. |
| Fields inherited from class javax.swing.tree.DefaultTreeModel |
|---|
asksAllowsChildren, listenerList, root |
| Constructor Summary | |
|---|---|
NavigationTreeModel(String pathSeparator,
JAXXContext context)
|
|
| 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 pathSeparator. |
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()
|
NavigationTreeNode |
getRoot()
|
void |
nodeChanged(TreeNode node)
|
void |
nodeChanged(TreeNode node,
boolean deep)
|
void |
nodeStructureChanged(TreeNode node)
|
protected void |
reload(NavigationTreeNode node)
|
protected void |
reload(NavigationTreeNode node,
boolean deep)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final String pathSeparator
NavigationTreeNode.fullPath.
NavigationTreeNode.getNodePath(),
NavigationTreeNode.getFullPath()| Constructor Detail |
|---|
public NavigationTreeModel(String pathSeparator,
JAXXContext context)
| Method Detail |
|---|
public NavigationTreeNode getRoot()
getRoot in interface TreeModelgetRoot in class DefaultTreeModelpublic NavigationTreeNode findNode(String path)
NavigationTreeNode.path valued separated by dot.
Example :
$root.child1.leaf1
path - the fully path of the searched node.
null if not find.
public NavigationTreeNode findNode(String path,
String regex)
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 pathSeparator.
Example :
$root.child1.leaf1
path - the fully path of the searched node.regex - a optional regex to apply to path before searching
null if not found.
public NavigationTreeNode findNode(String path,
Pattern regex)
NavigationTreeNode.path valued separated by pathSeparator.
Example :
$root.child1.leaf1
path - the fully path of the searched node.regex - a optional regex to apply to path before searching
null if not found.
public NavigationTreeNode findNode(NavigationTreeNode root,
String path)
NavigationTreeNode.path valued separated by pathSeparator.
root - root node to be usedpath - the fully path of the searched node.
null if not found.
public NavigationTreeNode findNode(NavigationTreeNode root,
String path,
String regex)
NavigationTreeNode.path valued separated by pathSeparator.
root - root node to be usedpath - the fully path of the searched node.regex - a previous regex to apply to path : must have a matches
null if not found.
public NavigationTreeNode findNode(NavigationTreeNode root,
String path,
Pattern regex)
NavigationTreeNode.path valued separated by pathSeparator.
root - root node to be usedpath - the fully path of the searched node.regex - a previous regex to apply to path : must have a matches
null if not found.public JAXXContext getContext()
public Object getBean(String navigationPath)
navigationPath - the current context path of the node
public Object getBean(NavigationTreeNode node)
node - the current node
public void nodeChanged(TreeNode node)
nodeChanged in class DefaultTreeModelpublic void nodeStructureChanged(TreeNode node)
nodeStructureChanged in class DefaultTreeModel
public void nodeChanged(TreeNode node,
boolean deep)
protected void reload(NavigationTreeNode node)
protected void reload(NavigationTreeNode node,
boolean deep)
public String getPathSeparator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||