jaxx.runtime.swing.navigation.handler
Class NavigationOneClicSelectionHandler<E extends NavigationNode<E>>

java.lang.Object
  extended by javax.swing.tree.DefaultTreeSelectionModel
      extended by jaxx.runtime.swing.navigation.handler.AbstractNavigationHandler<E>
          extended by jaxx.runtime.swing.navigation.handler.NavigationMultiTreeHandler<E>
              extended by jaxx.runtime.swing.navigation.handler.NavigationOneClicSelectionHandler<E>
All Implemented Interfaces:
Serializable, Cloneable, EventListener, TreeSelectionListener, TreeSelectionModel, NavigationHandler<E>

public abstract class NavigationOneClicSelectionHandler<E extends NavigationNode<E>>
extends NavigationMultiTreeHandler<E>

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.

This one is used to enable one clic multi selection

Since:
2.0.1
Author:
sletellier
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface jaxx.runtime.swing.navigation.handler.NavigationHandler
NavigationHandler.Strategy
 
Field Summary
 
Fields inherited from class jaxx.runtime.swing.navigation.handler.AbstractNavigationHandler
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
NavigationOneClicSelectionHandler(String contextPrefix, JAXXObject context, NavigationHandler.Strategy strategy)
           
 
Method Summary
 void setSelectionPath(TreePath path)
           
 
Methods inherited from class jaxx.runtime.swing.navigation.handler.NavigationMultiTreeHandler
createUI, getPaths, getUI, openUI, selectNodeUI, valueChanged
 
Methods inherited from class jaxx.runtime.swing.navigation.handler.AbstractNavigationHandler
addSelectedBeanInContext, createUIContext, getContext, getContextHelper, selectNodeUI, setSelectionPaths
 
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
 
Methods inherited from interface jaxx.runtime.swing.navigation.handler.NavigationHandler
closeUI, createUI, getCurrentUI, getNavigationTreeModel, getUI, openUI, treateError
 
Methods inherited from interface javax.swing.tree.TreeSelectionModel
addPropertyChangeListener, addSelectionPath, addSelectionPaths, addTreeSelectionListener, clearSelection, getLeadSelectionPath, getLeadSelectionRow, getMaxSelectionRow, getMinSelectionRow, getRowMapper, getSelectionCount, getSelectionMode, getSelectionPath, getSelectionPaths, getSelectionRows, isPathSelected, isRowSelected, isSelectionEmpty, removePropertyChangeListener, removeSelectionPath, removeSelectionPaths, removeTreeSelectionListener, resetRowSelection, setRowMapper, setSelectionMode
 

Constructor Detail

NavigationOneClicSelectionHandler

public NavigationOneClicSelectionHandler(String contextPrefix,
                                         JAXXObject context,
                                         NavigationHandler.Strategy strategy)
Method Detail

setSelectionPath

public void setSelectionPath(TreePath path)
Specified by:
setSelectionPath in interface TreeSelectionModel
Specified by:
setSelectionPath in interface NavigationHandler<E extends NavigationNode<E>>
Overrides:
setSelectionPath in class AbstractNavigationHandler<E extends NavigationNode<E>>


Copyright © 2008-2010 CodeLutin. All Rights Reserved.