|
||||||||||
| 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 NavigationModel.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()
|
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 |
| Methods inherited from interface jaxx.runtime.swing.navigation.NavigationModel |
|---|
getPathToRoot |
| 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 interface NavigationModelgetRoot in class DefaultTreeModelNavigationModel.getRoot()public NavigationTreeNode findNode(String path)
NavigationModelNavigationTreeNode.path valued separated by dot.
Example :
$root.child1.leaf1
findNode in interface NavigationModelpath - the fully path of the searched node.
null if not find.NavigationModel.findNode(String)
public NavigationTreeNode findNode(String path,
String regex)
NavigationModelregex is not null.
Search then from the root node a node named by his fully path
(concatenation of nodes NavigationTreeNode.path valued separated
by NavigationModel.getPathSeparator().
Example :
$root.child1.leaf1
findNode in interface NavigationModelpath - the fully path of the searched node.regex - a optional regex to apply to path before searching
null if not found.NavigationModel.findNode(String, String)
public NavigationTreeNode findNode(String path,
Pattern regex)
NavigationModelNavigationTreeNode.path valued separated
by NavigationModel.getPathSeparator().
Example :
$root.child1.leaf1
findNode in interface NavigationModelpath - the fully path of the searched node.regex - a optional regex to apply to path before searching
null if not found.NavigationModel.findNode(String, Pattern)
public NavigationTreeNode findNode(NavigationTreeNode root,
String path)
NavigationModelNavigationTreeNode.path valued separated
by NavigationModel.getPathSeparator().
findNode in interface NavigationModelroot - root node to be usedpath - the fully path of the searched node.
null if not found.NavigationModel.findNode(NavigationTreeNode, String)
public NavigationTreeNode findNode(NavigationTreeNode root,
String path,
String regex)
NavigationModelNavigationTreeNode.path valued
separated by NavigationModel.getPathSeparator().
findNode in interface NavigationModelroot - 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.NavigationModel.findNode(NavigationTreeNode, String, String)
public NavigationTreeNode findNode(NavigationTreeNode root,
String path,
Pattern regex)
NavigationModelNavigationTreeNode.path valued separated
by NavigationModel.getPathSeparator().
findNode in interface NavigationModelroot - 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.NavigationModel.findNode(NavigationTreeNode, String, Pattern)public JAXXContext getContext()
getContext in interface NavigationModelNavigationModel.getContext()public Object getBean(String navigationPath)
NavigationModel
getBean in interface NavigationModelnavigationPath - the current context path of the node
NavigationModel.getBean(String)public Object getBean(NavigationTreeNode node)
NavigationModel
getBean in interface NavigationModelnode - the current node
NavigationModel.getBean(NavigationTreeNode)public void nodeChanged(TreeNode node)
nodeChanged in interface NavigationModelnodeChanged in class DefaultTreeModelNavigationModel.nodeChanged(TreeNode)public void nodeStructureChanged(TreeNode node)
nodeStructureChanged in interface NavigationModelnodeStructureChanged in class DefaultTreeModelNavigationModel.nodeStructureChanged(TreeNode)
public void nodeChanged(TreeNode node,
boolean deep)
nodeChanged in interface NavigationModelNavigationModel.nodeChanged(TreeNode, boolean)protected void reload(NavigationTreeNode node)
protected void reload(NavigationTreeNode node,
boolean deep)
public String getPathSeparator()
getPathSeparator in interface NavigationModelNavigationModel.getPathSeparator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||