|
||||||||||
| 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
defined the stategy of instanciation of ui |
| Field Summary | |
|---|---|
protected JAXXObject |
context
l'ui contenant l'arbre de navigation |
protected java.lang.Class<? extends JAXXObject> |
defaultUIClass
la classe d'ui par defaut, associé à un noeud de l'arbe |
protected java.lang.Class<? extends JAXXAction> |
defaultUIHandlerClass
|
static java.lang.String |
NAVIGATION_SELECTED_BEAN
|
static JAXXContextEntryDef<NavigationTreeModel.NavigationTreeNode> |
NAVIGATION_SELECTED_NODE_ENTRY_DEF
|
static JAXXContextEntryDef<java.lang.String> |
NAVIGATION_SELECTED_PATH_ENTRY_DEF
|
protected NavigationTreeHandler.Strategy |
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(java.lang.Class<? extends JAXXObject> defaultUIClass,
java.lang.Class<? extends JAXXAction> defaultUIHandlerClass,
JAXXObject context,
NavigationTreeHandler.Strategy strategy)
|
| Method Summary | |
|---|---|
protected void |
addSelectedBeanInContext(NavigationTreeModel.NavigationTreeNode node,
java.lang.Object data)
|
protected abstract boolean |
closeUI(java.awt.Component component)
|
protected abstract java.awt.Component |
createUI(NavigationTreeModel.NavigationTreeNode node)
Instancie une nouvelle ui associé à un noeud de l'arbre de navigation |
protected abstract JAXXContext |
createUIContext(NavigationTreeModel.NavigationTreeNode node)
|
protected abstract java.awt.Component |
getCurrentUI()
|
protected JAXXAction |
getJAXXAction(java.lang.Class<? extends JAXXAction> jaxxActionClass)
|
protected abstract NavigationTreeModel |
getNavigationTreeModel()
|
protected java.lang.String |
getNodeConstraints(NavigationTreeModel.NavigationTreeNode node)
|
protected abstract java.awt.Component |
getUI(NavigationTreeModel.NavigationTreeNode node)
|
protected abstract void |
openUI(java.awt.Component newUI,
NavigationTreeModel.NavigationTreeNode node)
Ouvre l'ui associée au noeud sélectionné dans l'arbre de navigation. |
protected NavigationTreeModel.NavigationTreeNode |
prepareNode(NavigationTreeModel.NavigationTreeNode node)
Prepare le nouveau noeud sélectionné. |
void |
selectNodeUI(NavigationTreeModel.NavigationTreeNode node)
|
void |
setSelectionPath(javax.swing.tree.TreePath path)
|
protected abstract void |
treateError(java.lang.Exception e)
Traitement des exceptions. |
| Methods inherited from class javax.swing.tree.DefaultTreeSelectionModel |
|---|
addPropertyChangeListener, addSelectionPath, addSelectionPaths, addTreeSelectionListener, arePathsContiguous, canPathsBeAdded, canPathsBeRemoved, clearSelection, clone, fireValueChanged, getLeadSelectionPath, getLeadSelectionRow, getListeners, getMaxSelectionRow, getMinSelectionRow, getPropertyChangeListeners, getRowMapper, getSelectionCount, getSelectionMode, getSelectionPath, getSelectionPaths, getSelectionRows, getTreeSelectionListeners, insureRowContinuity, insureUniqueness, isPathSelected, isRowSelected, isSelectionEmpty, notifyPathChange, removePropertyChangeListener, removeSelectionPath, removeSelectionPaths, removeTreeSelectionListener, resetRowSelection, setRowMapper, setSelectionMode, setSelectionPaths, toString, updateLeadIndex |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NAVIGATION_SELECTED_BEAN
public static final JAXXContextEntryDef<java.lang.String> NAVIGATION_SELECTED_PATH_ENTRY_DEF
public static final JAXXContextEntryDef<NavigationTreeModel.NavigationTreeNode> NAVIGATION_SELECTED_NODE_ENTRY_DEF
protected java.lang.Class<? extends JAXXObject> defaultUIClass
protected java.lang.Class<? extends JAXXAction> defaultUIHandlerClass
protected JAXXObject context
protected NavigationTreeHandler.Strategy strategy
| Constructor Detail |
|---|
protected NavigationTreeHandler(java.lang.Class<? extends JAXXObject> defaultUIClass,
java.lang.Class<? extends JAXXAction> defaultUIHandlerClass,
JAXXObject context,
NavigationTreeHandler.Strategy strategy)
| Method Detail |
|---|
protected abstract NavigationTreeModel getNavigationTreeModel()
protected abstract java.awt.Component getCurrentUI()
protected abstract java.awt.Component getUI(NavigationTreeModel.NavigationTreeNode node)
node - le noeud associé à l'ui à retrouver
protected abstract boolean closeUI(java.awt.Component component)
throws java.lang.Exception
component - le composent actuellement visible
true si le composent a bien été fermé, false sinon
java.lang.Exception - if any
protected abstract java.awt.Component createUI(NavigationTreeModel.NavigationTreeNode node)
throws java.lang.Exception
node - le noeud associé à l'ui à créer
java.lang.Exception - if any
protected abstract JAXXContext createUIContext(NavigationTreeModel.NavigationTreeNode node)
throws java.lang.Exception
java.lang.Exception
protected abstract void openUI(java.awt.Component newUI,
NavigationTreeModel.NavigationTreeNode node)
throws java.lang.Exception
newUI - l'ui associé au noeud sélectionné à ouvrirnode - le node de l'ui a ouvrir
java.lang.Exception - if anyprotected abstract void treateError(java.lang.Exception e)
e - l'erreur recontrée (ou null si pas d"erreur)protected NavigationTreeModel.NavigationTreeNode prepareNode(NavigationTreeModel.NavigationTreeNode node)
node - le noeud a preparer
public void setSelectionPath(javax.swing.tree.TreePath path)
setSelectionPath in interface javax.swing.tree.TreeSelectionModelsetSelectionPath in class javax.swing.tree.DefaultTreeSelectionModelpublic void selectNodeUI(NavigationTreeModel.NavigationTreeNode node)
protected void addSelectedBeanInContext(NavigationTreeModel.NavigationTreeNode node,
java.lang.Object data)
protected java.lang.String getNodeConstraints(NavigationTreeModel.NavigationTreeNode node)
protected JAXXAction getJAXXAction(java.lang.Class<? extends JAXXAction> jaxxActionClass)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||