|
||||||||||
| 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
Le modele utilisé pour un arbre de navigation.
Il est composé deNavigationTreeModel.NavigationTreeNode
| Nested Class Summary | |
|---|---|
class |
NavigationTreeModel.NavigationTreeNode
la représentation d'un noeud dans le modele NavigationTreeModel |
| Field Summary | |
|---|---|
protected java.lang.String |
navigationPathSeparator
the separator char used to produce the navigation path of a node. |
| Fields inherited from class javax.swing.tree.DefaultTreeModel |
|---|
asksAllowsChildren, listenerList, root |
| Constructor Summary | |
|---|---|
NavigationTreeModel(javax.swing.tree.TreeNode root,
java.lang.String navigationPathSeparator)
|
|
| Method Summary | |
|---|---|
NavigationTreeModel.NavigationTreeNode |
findNode(NavigationTreeModel.NavigationTreeNode root,
java.lang.String path)
Search from a given root node a node named by his fully path (concatenation of nodes NavigationTreeModel.NavigationTreeNode.navigationPath valued separated by navigationPathSeparator. |
NavigationTreeModel.NavigationTreeNode |
findNode(NavigationTreeModel.NavigationTreeNode root,
java.lang.String path,
java.util.regex.Pattern regex)
Apply first the regex pattern to obtain the searched node. |
NavigationTreeModel.NavigationTreeNode |
findNode(NavigationTreeModel.NavigationTreeNode root,
java.lang.String path,
java.lang.String regex)
Apply first the regex pattern to obtain the searched node. |
NavigationTreeModel.NavigationTreeNode |
findNode(java.lang.String path)
Search from the root node a node named by his fully path (concatenation of nodes NavigationTreeModel.NavigationTreeNode.navigationPath valued separated by dot. |
NavigationTreeModel.NavigationTreeNode |
findNode(java.lang.String path,
java.util.regex.Pattern regex)
Apply first the regex pattern to obtain the searched node. |
NavigationTreeModel.NavigationTreeNode |
findNode(java.lang.String path,
java.lang.String regex)
Apply first the regex pattern to obtain the searched node fi the given regex is not null. |
java.lang.Object |
getJAXXContextValue(JAXXContext context,
NavigationTreeModel.NavigationTreeNode node)
Obtain the associated bean value from context corresponding to node |
java.lang.Object |
getJAXXContextValue(JAXXContext context,
java.lang.String navigationPath)
Obtain the associated bean value from context corresponding to node from given navigation path. |
NavigationTreeModel.NavigationTreeNode |
getRoot()
|
void |
nodeChanged(javax.swing.tree.TreeNode node)
|
void |
nodeChanged(javax.swing.tree.TreeNode node,
boolean deep)
|
| Methods inherited from class javax.swing.tree.DefaultTreeModel |
|---|
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.String navigationPathSeparator
| Constructor Detail |
|---|
public NavigationTreeModel(javax.swing.tree.TreeNode root,
java.lang.String navigationPathSeparator)
| Method Detail |
|---|
public NavigationTreeModel.NavigationTreeNode getRoot()
getRoot in interface javax.swing.tree.TreeModelgetRoot in class javax.swing.tree.DefaultTreeModelpublic NavigationTreeModel.NavigationTreeNode findNode(java.lang.String path)
NavigationTreeModel.NavigationTreeNode.navigationPath valued separated by dot.
Example :
$root.child1.leaf1
path - the fully path of the searched node.
null if not find.
public NavigationTreeModel.NavigationTreeNode findNode(java.lang.String path,
java.lang.String regex)
regex is not null.
Search then from the root node a node named by his fully path (concatenation of nodes
NavigationTreeModel.NavigationTreeNode.navigationPath valued separated by navigationPathSeparator.
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 NavigationTreeModel.NavigationTreeNode findNode(java.lang.String path,
java.util.regex.Pattern regex)
NavigationTreeModel.NavigationTreeNode.navigationPath valued separated by navigationPathSeparator.
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 NavigationTreeModel.NavigationTreeNode findNode(NavigationTreeModel.NavigationTreeNode root,
java.lang.String path)
NavigationTreeModel.NavigationTreeNode.navigationPath valued separated by navigationPathSeparator.
root - root node to be usedpath - the fully path of the searched node.
null if not found.
public NavigationTreeModel.NavigationTreeNode findNode(NavigationTreeModel.NavigationTreeNode root,
java.lang.String path,
java.lang.String regex)
NavigationTreeModel.NavigationTreeNode.navigationPath valued separated by navigationPathSeparator.
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 NavigationTreeModel.NavigationTreeNode findNode(NavigationTreeModel.NavigationTreeNode root,
java.lang.String path,
java.util.regex.Pattern regex)
NavigationTreeModel.NavigationTreeNode.navigationPath valued separated by navigationPathSeparator.
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 java.lang.Object getJAXXContextValue(JAXXContext context,
java.lang.String navigationPath)
context - the context where to seek valuenavigationPath - the current context path of the node
public java.lang.Object getJAXXContextValue(JAXXContext context,
NavigationTreeModel.NavigationTreeNode node)
context - the context where to seek valuenode - the current node
public void nodeChanged(javax.swing.tree.TreeNode node)
nodeChanged in class javax.swing.tree.DefaultTreeModel
public void nodeChanged(javax.swing.tree.TreeNode node,
boolean deep)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||