jaxx.runtime.swing.navigation.handler
Class NavigationTreeHandlerWithCardLayout<E extends NavigationNode<E>>
java.lang.Object
javax.swing.tree.DefaultTreeSelectionModel
jaxx.runtime.swing.navigation.handler.AbstractNavigationHandler<E>
jaxx.runtime.swing.navigation.handler.NavigationTreeHandlerWithCardLayout<E>
- All Implemented Interfaces:
- Serializable, Cloneable, EventListener, TreeSelectionListener, TreeSelectionModel, NavigationHandler<E>
Deprecated. since 2.1, prefer use the simplify api jaxx.runtime.swing.tree.
@Deprecated
public abstract class NavigationTreeHandlerWithCardLayout<E extends NavigationNode<E>>
- extends AbstractNavigationHandler<E>
Simple AbstractNavigationHandler implementation with a CardLayout2 to manage components to associated with tree's nodes.
For each node, the ui associated has a constraints in a cardlayout which is
the node context path.
A single container managed by the cardlayout is used to display the
components associated with tree's nodes.
- Author:
- tchemit
- See Also:
- Serialized Form
| 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 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 |
NavigationTreeHandlerWithCardLayout
public NavigationTreeHandlerWithCardLayout(String contextPrefix,
JAXXObject context,
NavigationHandler.Strategy strategy)
- Deprecated.
getContentContainer
protected abstract JPanel getContentContainer()
- Deprecated.
- All components associated with a tree's node is displayed in a single
container.
- Returns:
- the containter of components
getContentLayout
protected abstract CardLayout2 getContentLayout()
- Deprecated.
- the cardlayout managing components associated with tree node. The
constraints of each component is the node contextPath.
- Returns:
- the layout used to display components associated with tree's
nodes.
getCurrentUI
public Component getCurrentUI()
- Deprecated.
- Returns:
- le composent actuellement visible associé au noeud courant ou au
noeud précédent lors d'un changement de noeud.
getUI
public Component getUI(E node)
- Deprecated.
- Parameters:
node - le noeud associé à l'ui à retrouver
- Returns:
- l'ui associé au novueau noeud sélectionné
openUI
public void openUI(Component newUI,
E node)
throws Exception
- Deprecated.
- Description copied from interface:
NavigationHandler
- Ouvre l'ui associée au noeud sélectionné dans l'arbre de navigation.
- Parameters:
newUI - l'ui associé au noeud sélectionné à ouvrirnode - le node de l'ui a ouvrir
- Throws:
Exception - if any
closeUI
public boolean closeUI(Component component)
throws Exception
- Deprecated.
- Parameters:
component - le composent actuellement visible
- Returns:
true si le composent a bien été fermé,
false sinon
- Throws:
Exception - if any
createUI
public Component createUI(E node)
throws Exception
- Deprecated.
- Description copied from interface:
NavigationHandler
- Instancie une nouvelle ui associé à un noeud de l'arbre de navigation
- Parameters:
node - le noeud associé à l'ui à créer
- Returns:
- la nouvelle ui associée au noeud
- Throws:
Exception - if any
Copyright © 2008-2010 CodeLutin. All Rights Reserved.