jaxx.runtime.swing.navigation.handler
Interface NavigationHandler<E extends NavigationNode<E>>

All Superinterfaces:
Cloneable, EventListener, Serializable, TreeSelectionListener, TreeSelectionModel
All Known Implementing Classes:
AbstractNavigationHandler, NavigationMultiTreeHandler, NavigationOneClicSelectionHandler, NavigationTreeHandlerWithCardLayout

public interface NavigationHandler<E extends NavigationNode<E>>
extends Cloneable, Serializable, TreeSelectionModel, TreeSelectionListener


Nested Class Summary
static class NavigationHandler.Strategy
          Strategy of instanciation of ui.
 
Field Summary
 
Fields inherited from interface javax.swing.tree.TreeSelectionModel
CONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, SINGLE_TREE_SELECTION
 
Method Summary
 boolean closeUI(Component component)
           
 Component createUI(E node)
          Instancie une nouvelle ui associé à un noeud de l'arbre de navigation
 JAXXContext getContext()
           
 NavigationContextHelper<E> getContextHelper()
           
 Component getCurrentUI()
           
 NavigationModel<E> getNavigationTreeModel()
           
 Component getUI(E node)
           
 void openUI(Component newUI, E node)
          Ouvre l'ui associée au noeud sélectionné dans l'arbre de navigation.
 void setSelectionPath(TreePath path)
           
 void setSelectionPaths(TreePath[] paths)
           
 void treateError(Exception e)
          Traitement des exceptions.
 void valueChanged(TreeSelectionEvent event)
           
 
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
 

Method Detail

getContext

JAXXContext getContext()

getNavigationTreeModel

NavigationModel<E> getNavigationTreeModel()
Returns:
le modèle de navigation associé

getCurrentUI

Component getCurrentUI()
Returns:
le composent actuellement visible associé au noeud courant ou au noeud précédent lors d'un changement de noeud.

getUI

Component getUI(E node)
Parameters:
node - le noeud associé à l'ui à retrouver
Returns:
l'ui associé au novueau noeud sélectionné

closeUI

boolean closeUI(Component component)
                throws Exception
Parameters:
component - le composent actuellement visible
Returns:
true si le composent a bien été fermé, false sinon
Throws:
Exception - if any

createUI

Component createUI(E node)
                   throws Exception
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

openUI

void openUI(Component newUI,
            E node)
            throws Exception
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

treateError

void treateError(Exception e)
Traitement des exceptions.

Parameters:
e - l'erreur recontrée (ou null si pas d"erreur)

valueChanged

void valueChanged(TreeSelectionEvent event)
Specified by:
valueChanged in interface TreeSelectionListener

getContextHelper

NavigationContextHelper<E> getContextHelper()

setSelectionPath

void setSelectionPath(TreePath path)
Specified by:
setSelectionPath in interface TreeSelectionModel

setSelectionPaths

void setSelectionPaths(TreePath[] paths)
Specified by:
setSelectionPaths in interface TreeSelectionModel


Copyright © 2008-2010 CodeLutin. All Rights Reserved.