|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.treetable.AbstractTreeTableModel
org.jdesktop.swingx.treetable.DefaultTreeTableModel
jaxx.runtime.swing.navigation.NavigationTreeTableModel
public class NavigationTreeTableModel
Model of the tree table used for a navigation tree table.
Il est composé deNavigationTreeNode
FIXME : Essayer d'enlever les copier coller NavigationTreeModel
| Field Summary | |
|---|---|
protected List<String> |
columnsName
|
protected String |
pathSeparator
The path separator used to build the NavigationTreeNode.fullPath. |
| Fields inherited from class org.jdesktop.swingx.treetable.DefaultTreeTableModel |
|---|
columnIdentifiers |
| Fields inherited from class org.jdesktop.swingx.treetable.AbstractTreeTableModel |
|---|
modelSupport, root |
| Constructor Summary | |
|---|---|
NavigationTreeTableModel(String pathSeparator,
JAXXContext context,
List<String> columnsName)
|
|
| 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. |
int |
getColumnCount()
|
String |
getColumnName(int column)
|
JAXXContext |
getContext()
|
protected org.jdesktop.swingx.tree.TreeModelSupport |
getModelSupport()
Accessor to tree model support. |
String |
getPathSeparator()
|
TreeNode[] |
getPathToRoot(TreeNode aNode)
|
NavigationTreeTableNode |
getRoot()
|
void |
nodeChanged(TreeNode node)
|
void |
nodeChanged(TreeNode node,
boolean deep)
|
void |
nodeStructureChanged(TreeNode node)
|
protected void |
reload(NavigationTreeTableNode node)
|
protected void |
reload(NavigationTreeTableNode node,
boolean deep)
|
void |
removeNodeFromParent(NavigationTreeNode node)
Message this to remove node from its parent. |
void |
setRoot(NavigationTreeTableNode root)
|
| Methods inherited from class org.jdesktop.swingx.treetable.DefaultTreeTableModel |
|---|
getChild, getChildCount, getIndexOfChild, getPathToRoot, getValueAt, insertNodeInto, isCellEditable, isLeaf, removeNodeFromParent, setColumnIdentifiers, setRoot, setUserObject, setValueAt, valueForPathChanged |
| Methods inherited from class org.jdesktop.swingx.treetable.AbstractTreeTableModel |
|---|
addTreeModelListener, getColumnClass, getHierarchicalColumn, getTreeModelListeners, removeTreeModelListener |
| 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()protected List<String> columnsName
| Constructor Detail |
|---|
public NavigationTreeTableModel(String pathSeparator,
JAXXContext context,
List<String> columnsName)
| Method Detail |
|---|
public NavigationTreeTableNode getRoot()
getRoot in interface TreeModelgetRoot in interface NavigationModelgetRoot in class org.jdesktop.swingx.treetable.DefaultTreeTableModelNavigationModel.getRoot()public TreeNode[] getPathToRoot(TreeNode aNode)
getPathToRoot in interface NavigationModelpublic void setRoot(NavigationTreeTableNode root)
public void removeNodeFromParent(NavigationTreeNode node)
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)protected org.jdesktop.swingx.tree.TreeModelSupport getModelSupport()
public void nodeChanged(TreeNode node)
nodeChanged in interface NavigationModelNavigationModel.nodeChanged(TreeNode)public void nodeStructureChanged(TreeNode node)
nodeStructureChanged in interface NavigationModelNavigationModel.nodeStructureChanged(TreeNode)
public void nodeChanged(TreeNode node,
boolean deep)
nodeChanged in interface NavigationModelNavigationModel.nodeChanged(TreeNode, boolean)protected void reload(NavigationTreeTableNode node)
protected void reload(NavigationTreeTableNode node,
boolean deep)
public String getPathSeparator()
getPathSeparator in interface NavigationModelNavigationModel.getPathSeparator()public int getColumnCount()
getColumnCount in interface org.jdesktop.swingx.treetable.TreeTableModelgetColumnCount in class org.jdesktop.swingx.treetable.DefaultTreeTableModelpublic String getColumnName(int column)
getColumnName in interface org.jdesktop.swingx.treetable.TreeTableModelgetColumnName in class org.jdesktop.swingx.treetable.DefaultTreeTableModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||