jaxx.runtime.swing.navigation
Class NavigationMultiTreeHandler

java.lang.Object
  extended by javax.swing.tree.DefaultTreeSelectionModel
      extended by jaxx.runtime.swing.navigation.NavigationTreeHandler
          extended by jaxx.runtime.swing.navigation.NavigationMultiTreeHandler
All Implemented Interfaces:
Serializable, Cloneable, EventListener, TreeSelectionListener, TreeSelectionModel

public abstract class NavigationMultiTreeHandler
extends NavigationTreeHandler

The handler of a navigation tree. This is also the selection model to use, since we must check before moving from nodes we can not just listen selection model changed, we must control it.

Since:
2.0.1
Author:
sletellier
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jaxx.runtime.swing.navigation.NavigationTreeHandler
NavigationTreeHandler.Strategy
 
Field Summary
 
Fields inherited from class jaxx.runtime.swing.navigation.NavigationTreeHandler
context, contextHelper, 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
NavigationMultiTreeHandler(String contextPrefix, JAXXObject context, NavigationTreeHandler.Strategy strategy)
           
 
Method Summary
protected abstract  Component createUI(List<NavigationTreeNode> nodes)
          Instancie une nouvelle ui associé à des noeuds de l'arbre de navigation
 List<String> getPaths(List<NavigationTreeNode> nodes)
           
protected abstract  Component getUI(List<NavigationTreeNode> nodes)
           
protected abstract  void openUI(Component newUI, List<NavigationTreeNode> nodes)
          Ouvre l'ui associée aux noeuds sélectionnés dans l'arbre de navigation.
protected  void selectNodeUI(List<NavigationTreeNode> nodes)
           
 void valueChanged(TreeSelectionEvent event)
           
 
Methods inherited from class jaxx.runtime.swing.navigation.NavigationTreeHandler
addSelectedBeanInContext, closeUI, createUI, createUIContext, getContext, getContextHelper, getCurrentUI, getNavigationTreeModel, getUI, openUI, selectNodeUI, setSelectionPath, setSelectionPaths, treateError
 
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, toString, updateLeadIndex
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NavigationMultiTreeHandler

public NavigationMultiTreeHandler(String contextPrefix,
                                  JAXXObject context,
                                  NavigationTreeHandler.Strategy strategy)
Method Detail

valueChanged

public void valueChanged(TreeSelectionEvent event)
Specified by:
valueChanged in interface TreeSelectionListener
Overrides:
valueChanged in class NavigationTreeHandler

openUI

protected abstract void openUI(Component newUI,
                               List<NavigationTreeNode> nodes)
                        throws Exception
Ouvre l'ui associée aux noeuds sélectionnés dans l'arbre de navigation.

Parameters:
newUI - l'ui associé au noeud sélectionné à ouvrir
nodes - les node de l'ui a ouvrir
Throws:
Exception - if any

createUI

protected abstract Component createUI(List<NavigationTreeNode> nodes)
                               throws Exception
Instancie une nouvelle ui associé à des noeuds de l'arbre de navigation

Parameters:
nodes - les noeuds associés à l'ui à créer
Returns:
la nouvelle ui associée au noeud
Throws:
Exception - if any

getUI

protected abstract Component getUI(List<NavigationTreeNode> nodes)
Parameters:
nodes - les noeuds associés à l'ui à retrouver
Returns:
l'ui associés au nouveau noeud sélectionné

selectNodeUI

protected void selectNodeUI(List<NavigationTreeNode> nodes)

getPaths

public List<String> getPaths(List<NavigationTreeNode> nodes)


Copyright © 2008-2010 CodeLutin. All Rights Reserved.