jaxx.runtime.swing.navigation
Class NavigationTreeHandlerWithCardLayout
java.lang.Object
javax.swing.tree.DefaultTreeSelectionModel
jaxx.runtime.swing.navigation.NavigationTreeHandler
jaxx.runtime.swing.navigation.NavigationTreeHandlerWithCardLayout
- All Implemented Interfaces:
- Serializable, Cloneable, EventListener, TreeSelectionListener, TreeSelectionModel
public abstract class NavigationTreeHandlerWithCardLayout
- extends NavigationTreeHandler
Simple NavigationTreeHandler 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:
- chemit
- 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 |
NavigationTreeHandlerWithCardLayout
public NavigationTreeHandlerWithCardLayout(String contextPrefix,
JAXXObject context,
NavigationTreeHandler.Strategy strategy)
getContentContainer
protected abstract JPanel getContentContainer()
- All components associated with a tree's node is displayed in a single container.
- Returns:
- the containter of components
getContentLayout
protected abstract CardLayout2 getContentLayout()
- 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
protected Component getCurrentUI()
- Specified by:
getCurrentUI in class NavigationTreeHandler
- Returns:
- le composent actuellement visible associé au noeud courant ou
au noeud précédent lors d'un changement de noeud.
getUI
protected Component getUI(NavigationTreeNode node)
- Specified by:
getUI in class NavigationTreeHandler
- Parameters:
node - le noeud associé à l'ui à retrouver
- Returns:
- l'ui associé au novueau noeud sélectionné
openUI
protected void openUI(Component newUI,
NavigationTreeNode node)
throws Exception
- Description copied from class:
NavigationTreeHandler
- Ouvre l'ui associée au noeud sélectionné dans l'arbre de navigation.
- Specified by:
openUI in class NavigationTreeHandler
- Parameters:
newUI - l'ui associé au noeud sélectionné à ouvrirnode - le node de l'ui a ouvrir
- Throws:
Exception - if any
closeUI
protected boolean closeUI(Component component)
throws Exception
- Specified by:
closeUI in class NavigationTreeHandler
- Parameters:
component - le composent actuellement visible
- Returns:
true si le composent a bien été fermé, false sinon
- Throws:
Exception - if any
createUI
protected Component createUI(NavigationTreeNode node)
throws Exception
- Description copied from class:
NavigationTreeHandler
- Instancie une nouvelle ui associé à un noeud de l'arbre de navigation
- Specified by:
createUI in class NavigationTreeHandler
- 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.