jaxx.runtime.swing.navigation.handler
Class NavigationTreeHandlerWithCardLayout<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.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

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
NavigationTreeHandlerWithCardLayout(String contextPrefix, JAXXObject context, NavigationHandler.Strategy strategy)
          Deprecated.  
 
Method Summary
 boolean closeUI(Component component)
          Deprecated.  
 Component createUI(E node)
          Deprecated. Instancie une nouvelle ui associé à un noeud de l'arbre de navigation
protected abstract  JPanel getContentContainer()
          Deprecated. All components associated with a tree's node is displayed in a single container.
protected abstract  CardLayout2 getContentLayout()
          Deprecated. the cardlayout managing components associated with tree node.
 Component getCurrentUI()
          Deprecated.  
 Component getUI(E node)
          Deprecated.  
 void openUI(Component newUI, E node)
          Deprecated. Ouvre l'ui associée au noeud sélectionné dans l'arbre de navigation.
 
Methods inherited from class jaxx.runtime.swing.navigation.handler.AbstractNavigationHandler
addSelectedBeanInContext, createUIContext, getContext, getContextHelper, selectNodeUI, setSelectionPath, setSelectionPaths, valueChanged
 
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
getNavigationTreeModel, 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

NavigationTreeHandlerWithCardLayout

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

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é à ouvrir
node - 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.