|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.runtime.swing.navigation.NavigationTreeContextHelper
jaxx.runtime.swing.navigation.NavigationTreeHelper
public abstract class NavigationTreeHelper
Helper object associated to a given navigation tree system.
To helper is context safe (base on a NavigationTreeContextHelper.
NavigationTreeModel| Field Summary |
|---|
| Fields inherited from class jaxx.runtime.swing.navigation.NavigationTreeContextHelper |
|---|
prefix, selectedBeanContextEntry, selectedNodeContextEntry, selectedPathContextEntry, treeContextEntry, treeHandlerContextEntry, treeModelContextEntry |
| Constructor Summary | |
|---|---|
NavigationTreeHelper(String contextPrefix)
|
|
| Method Summary | |
|---|---|
abstract NavigationTreeHandler |
createTreeHandler(JAXXObject context)
Create the tree handler. |
abstract NavigationTreeModel |
createTreeModel(JAXXContext context)
Create the tree model. |
NavigationTreeNode |
findNode(JAXXContext context,
String path)
|
NavigationTreeNode |
findNode(JAXXContext context,
String path,
Pattern regex)
|
NavigationTreeNode |
findNode(JAXXContext context,
String path,
Pattern regex,
String suffix)
|
NavigationTreeNode |
findNode(JAXXContext context,
String path,
String regex)
|
NavigationTreeNode |
findNode(JAXXContext context,
String path,
String regex,
String suffix)
|
Object |
getContextValue(JAXXContext context,
String path)
|
NavigationTreeNode |
getParentNode(NavigationTreeNode current,
Class<?> beanClass)
Obtain the first ancestor with the matching internalClass |
JTree |
getSafeTree(JAXXContext context)
|
NavigationTreeModel |
getSafeTreeModel(JAXXContext context)
|
void |
gotoChildNode(JAXXContext context,
int childIndex)
Sélection d'un fils du noeud selectionne dans l'arbre de navigation. |
void |
gotoParentNode(JAXXContext context)
Sélection du parent du noeud selectionne dans l'arbre de navigation. |
void |
repaintNode(JAXXContext context,
NavigationTreeNode node)
Demande une opération de repaint sur un noeud de l'arbre de navigation. |
void |
repaintNode(JAXXContext context,
NavigationTreeNode node,
boolean deep)
Demande une opération de repaint sur un noeud de l'arbre de navigation. |
void |
selectNode(JAXXContext context,
NavigationTreeNode node)
Sélection d'un noeud dans l'arbre de navigation. |
void |
selectNode(JAXXContext context,
String path)
Sélection d'un noeud dans l'arbre de navigation à partir de son path. |
| Methods inherited from class jaxx.runtime.swing.navigation.NavigationTreeContextHelper |
|---|
getPrefix, getSelectedBean, getSelectedBeanContextEntry, getSelectedNode, getSelectedNodeContextEntry, getSelectedPath, getSelectedPathContextEntry, getTree, getTreeContextEntry, getTreeHandler, getTreeHandlerContextEntry, getTreeModel, getTreeModelContextEntry, setSelectedBean, setSelectedNode, setSelectedPath, setTree, setTreeHandler, setTreeModel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NavigationTreeHelper(String contextPrefix)
| Method Detail |
|---|
public abstract NavigationTreeModel createTreeModel(JAXXContext context)
context - the context to associate with fresh model
public abstract NavigationTreeHandler createTreeHandler(JAXXObject context)
context - the context to associate with fresh handler
public Object getContextValue(JAXXContext context,
String path)
throws InvocationTargetException,
NoSuchMethodException,
IllegalAccessException
InvocationTargetException
NoSuchMethodException
IllegalAccessException
public NavigationTreeNode findNode(JAXXContext context,
String path)
public NavigationTreeNode findNode(JAXXContext context,
String path,
String regex)
public NavigationTreeNode findNode(JAXXContext context,
String path,
Pattern regex)
public NavigationTreeNode findNode(JAXXContext context,
String path,
String regex,
String suffix)
public NavigationTreeNode findNode(JAXXContext context,
String path,
Pattern regex,
String suffix)
public void selectNode(JAXXContext context,
String path)
context - le contexte applicatifpath - le path absolue du noeud dans l'arbre
public void selectNode(JAXXContext context,
NavigationTreeNode node)
context - le contexte applicatifnode - le noeud à sélectionner dans l'arbrepublic void gotoParentNode(JAXXContext context)
context - le contexte applicatif
public NavigationTreeNode getParentNode(NavigationTreeNode current,
Class<?> beanClass)
current - the node to testbeanClass - the type of the internal class to seek of
null if not found
public void gotoChildNode(JAXXContext context,
int childIndex)
context - le contexte applicatifchildIndex - index du fils a selectionner
public void repaintNode(JAXXContext context,
NavigationTreeNode node)
context - le contexte applicatifnode - le noeud à repaindre
public void repaintNode(JAXXContext context,
NavigationTreeNode node,
boolean deep)
deep est à true.
context - le contexte applicatifnode - le noeud à repaindredeep - un flag pour activer la repainte de la descendance du noeud
public NavigationTreeModel getSafeTreeModel(JAXXContext context)
throws NullPointerException
NullPointerException
public JTree getSafeTree(JAXXContext context)
throws NullPointerException
NullPointerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||