|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.runtime.swing.navigation.NavigationTreeSelectionAdapter
public abstract class NavigationTreeSelectionAdapter
A TreeSelectionListener implementation@author chemit
| Nested Class Summary | |
|---|---|
static class |
NavigationTreeSelectionAdapter.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 JAXXContextEntryDef<java.lang.Boolean> |
GO_BACK_DEF
|
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 NavigationTreeSelectionAdapter.Strategy |
strategy
|
| Constructor Summary | |
|---|---|
protected |
NavigationTreeSelectionAdapter(java.lang.Class<? extends JAXXObject> defaultUIClass,
java.lang.Class<? extends JAXXAction> defaultUIHandlerClass,
JAXXObject context,
NavigationTreeSelectionAdapter.Strategy strategy)
|
| Method Summary | |
|---|---|
protected void |
addSelectedBeanInContext(NavigationTreeModel.NavigationTreeNode node,
java.lang.Object data)
|
protected abstract boolean |
closeUI(javax.swing.event.TreeSelectionEvent event,
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 java.awt.Component |
getCurrentUI()
|
protected abstract NavigationTreeModel |
getNavigationTreeModel()
|
protected java.lang.String |
getNodeConstraints(NavigationTreeModel.NavigationTreeNode node)
|
protected abstract java.awt.Component |
getUI(NavigationTreeModel.NavigationTreeNode node)
|
protected abstract void |
goBackToPreviousNode(javax.swing.event.TreeSelectionEvent event,
java.lang.Exception e)
Retourne au noeud précdemment sélectionné dans l'arbre de navigation, avec la possibilité de notifier une erreure survenue. |
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(javax.swing.event.TreeSelectionEvent event)
Prepare le nouveau noeud sélectionné. |
protected void |
returnToPreviousNode(javax.swing.JTree tree,
javax.swing.event.TreeSelectionEvent event)
|
void |
valueChanged(javax.swing.event.TreeSelectionEvent event)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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
public static final JAXXContextEntryDef<java.lang.Boolean> GO_BACK_DEF
protected java.lang.Class<? extends JAXXObject> defaultUIClass
protected java.lang.Class<? extends JAXXAction> defaultUIHandlerClass
protected JAXXObject context
protected NavigationTreeSelectionAdapter.Strategy strategy
| Constructor Detail |
|---|
protected NavigationTreeSelectionAdapter(java.lang.Class<? extends JAXXObject> defaultUIClass,
java.lang.Class<? extends JAXXAction> defaultUIHandlerClass,
JAXXObject context,
NavigationTreeSelectionAdapter.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(javax.swing.event.TreeSelectionEvent event,
java.awt.Component component)
throws java.lang.Exception
event - l'evenement de selection de noeudcomponent - 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 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 any
protected abstract void goBackToPreviousNode(javax.swing.event.TreeSelectionEvent event,
java.lang.Exception e)
event - l'évènement de changement de noeud sélectionné.e - l'erreur recontrée (ou null si pas d"erreur)protected NavigationTreeModel.NavigationTreeNode prepareNode(javax.swing.event.TreeSelectionEvent event)
event - l'évènement de selection du noeud
public void valueChanged(javax.swing.event.TreeSelectionEvent event)
valueChanged in interface javax.swing.event.TreeSelectionListener
protected void addSelectedBeanInContext(NavigationTreeModel.NavigationTreeNode node,
java.lang.Object data)
protected java.lang.String getNodeConstraints(NavigationTreeModel.NavigationTreeNode node)
protected void returnToPreviousNode(javax.swing.JTree tree,
javax.swing.event.TreeSelectionEvent event)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||