|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.tree.DefaultTreeSelectionModel
jaxx.runtime.swing.navigation.NavigationTreeHandler
public abstract class NavigationTreeHandler
The handler of a navigation tree. This is also the selection model to use, since we must check before moving from a node we can not just listen selection model changed, we must control it.
| Nested Class Summary | |
|---|---|
static class |
NavigationTreeHandler.Strategy
Strategy of instanciation of ui. |
| Field Summary | |
|---|---|
protected JAXXContext |
context
UI which contains navigation tree |
protected NavigationTreeContextHelper |
contextHelper
JAXXContext access helper. |
protected NavigationTreeHandler.Strategy |
strategy
UI Instanciation strategy |
| Fields inherited from class javax.swing.tree.DefaultTreeSelectionModel |
|---|
changeSupport, leadIndex, leadPath, leadRow, listenerList, listSelectionModel, rowMapper, selection, SELECTION_MODE_PROPERTY, selectionMode |
| Fields inherited from interface javax.swing.tree.TreeSelectionModel |
|---|
CONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, SINGLE_TREE_SELECTION |
| Constructor Summary | |
|---|---|
protected |
NavigationTreeHandler(String contextPrefix,
JAXXObject context,
NavigationTreeHandler.Strategy strategy)
|
| Method Summary | |
|---|---|
protected void |
addSelectedBeanInContext(NavigationTreeNode node,
Object data)
|
protected abstract boolean |
closeUI(Component component)
|
protected abstract Component |
createUI(NavigationTreeNode node)
Instancie une nouvelle ui associé à un noeud de l'arbre de navigation |
protected JAXXContext |
createUIContext(NavigationTreeNode node)
Prepare le context a utiliser pour initialiser une nouvelle ui. |
JAXXContext |
getContext()
|
NavigationTreeContextHelper |
getContextHelper()
|
protected abstract Component |
getCurrentUI()
|
protected abstract NavigationModel |
getNavigationTreeModel()
|
protected abstract Component |
getUI(NavigationTreeNode node)
|
protected abstract void |
openUI(Component newUI,
NavigationTreeNode node)
Ouvre l'ui associée au noeud sélectionné dans l'arbre de navigation. |
protected void |
selectNodeUI(NavigationTreeNode node)
|
void |
setSelectionPath(TreePath path)
|
void |
setSelectionPaths(TreePath[] paths)
|
protected abstract void |
treateError(Exception e)
Traitement des exceptions. |
void |
valueChanged(TreeSelectionEvent event)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected JAXXContext context
protected NavigationTreeHandler.Strategy strategy
protected NavigationTreeContextHelper contextHelper
| Constructor Detail |
|---|
protected NavigationTreeHandler(String contextPrefix,
JAXXObject context,
NavigationTreeHandler.Strategy strategy)
| Method Detail |
|---|
public void valueChanged(TreeSelectionEvent event)
valueChanged in interface TreeSelectionListenerprotected abstract NavigationModel getNavigationTreeModel()
protected abstract Component getCurrentUI()
protected abstract Component getUI(NavigationTreeNode node)
node - le noeud associé à l'ui à retrouver
protected abstract boolean closeUI(Component component)
throws Exception
component - le composent actuellement visible
true si le composent a bien été fermé, false sinon
Exception - if any
protected abstract Component createUI(NavigationTreeNode node)
throws Exception
node - le noeud associé à l'ui à créer
Exception - if any
protected abstract void openUI(Component newUI,
NavigationTreeNode node)
throws Exception
newUI - l'ui associé au noeud sélectionné à ouvrirnode - le node de l'ui a ouvrir
Exception - if anyprotected abstract void treateError(Exception e)
e - l'erreur recontrée (ou null si pas d"erreur)public JAXXContext getContext()
public NavigationTreeContextHelper getContextHelper()
public void setSelectionPath(TreePath path)
setSelectionPath in interface TreeSelectionModelsetSelectionPath in class DefaultTreeSelectionModelpublic void setSelectionPaths(TreePath[] paths)
setSelectionPaths in interface TreeSelectionModelsetSelectionPaths in class DefaultTreeSelectionModelprotected void selectNodeUI(NavigationTreeNode node)
protected JAXXContext createUIContext(NavigationTreeNode node)
throws Exception
node - le noeud associé à l'ui à créer
Exception - if any
protected void addSelectedBeanInContext(NavigationTreeNode node,
Object data)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||