jaxx.runtime.swing.navigation.tree
Class NavigationTreeModel

java.lang.Object
  extended by jaxx.runtime.swing.navigation.AbstractNavigationModel<NavigationTreeNode>
      extended by jaxx.runtime.swing.navigation.tree.NavigationTreeModel
All Implemented Interfaces:
TreeModel, NavigationModel<NavigationTreeNode>

public class NavigationTreeModel
extends AbstractNavigationModel<NavigationTreeNode>
implements TreeModel

Model of the tree used for a navigation tree.

Il est composé de NavigationTreeNode

Since:
1.7.2
Author:
chemit

Field Summary
 
Fields inherited from class jaxx.runtime.swing.navigation.AbstractNavigationModel
adjustingValue, delegate, pathSeparator
 
Constructor Summary
NavigationTreeModel(String pathSeparator, JAXXContext context)
           
 
Method Summary
 DefaultTreeModel getDelegate()
           
 NavigationTreeNode[] getPathToRoot(NavigationTreeNode aNode)
           
 void nodeChanged(NavigationTreeNode node, boolean deep)
           
 void nodeStructureChanged(NavigationTreeNode node)
           
 void removeNodeFromParent(NavigationTreeNode node)
           
 void setRoot(NavigationTreeNode root)
           
 
Methods inherited from class jaxx.runtime.swing.navigation.AbstractNavigationModel
addTreeModelListener, findNode, findNode, findNode, findNode, findNode, findNode, getBean, getBean, getChild, getChildCount, getContext, getIndexOfChild, getPathSeparator, getRoot, isAdjustingValue, isLeaf, nodeChanged, reload, reload, removeTreeModelListener, setAdjustingValue, valueForPathChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.tree.TreeModel
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
 

Constructor Detail

NavigationTreeModel

public NavigationTreeModel(String pathSeparator,
                           JAXXContext context)
Method Detail

setRoot

public void setRoot(NavigationTreeNode root)
Specified by:
setRoot in interface NavigationModel<NavigationTreeNode>

getDelegate

public DefaultTreeModel getDelegate()
Overrides:
getDelegate in class AbstractNavigationModel<NavigationTreeNode>

getPathToRoot

public NavigationTreeNode[] getPathToRoot(NavigationTreeNode aNode)
Specified by:
getPathToRoot in interface NavigationModel<NavigationTreeNode>

removeNodeFromParent

public void removeNodeFromParent(NavigationTreeNode node)
Specified by:
removeNodeFromParent in interface NavigationModel<NavigationTreeNode>

nodeStructureChanged

public void nodeStructureChanged(NavigationTreeNode node)
Specified by:
nodeStructureChanged in interface NavigationModel<NavigationTreeNode>

nodeChanged

public void nodeChanged(NavigationTreeNode node,
                        boolean deep)
Specified by:
nodeChanged in interface NavigationModel<NavigationTreeNode>


Copyright © 2008-2010 CodeLutin. All Rights Reserved.