org.geotoolkit.gui.swing.tree
Class DefaultTreeModel

Object
  extended by DefaultTreeModel
      extended by DefaultTreeModel
All Implemented Interfaces:
Serializable, TreeModel

public class DefaultTreeModel
extends DefaultTreeModel

A default tree model with the toString() method overridden.

Since:
3.18
Version:
3.18
Author:
Martin Desruisseaux (Geomatys)
See Also:
Serialized Form
Module:
utility/geotk-utility (download)    View source code for this class

Field Summary
 
Fields inherited from class DefaultTreeModel
asksAllowsChildren, listenerList, root
 
Constructor Summary
DefaultTreeModel(TreeNode root)
          Creates a tree in which any node can have children.
DefaultTreeModel(TreeNode root, boolean asksAllowsChildren)
          Creates a tree specifying whether any node can have children, or whether only certain nodes can have children.
 
Method Summary
 String toString()
          Returns a string representation of this tree as defined by Trees.toString(TreeModel).
 
Methods inherited from class DefaultTreeModel
addTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, setRoot, valueForPathChanged
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultTreeModel

public DefaultTreeModel(TreeNode root)
Creates a tree in which any node can have children.

Parameters:
root - The root of the tree.

DefaultTreeModel

public DefaultTreeModel(TreeNode root,
                        boolean asksAllowsChildren)
Creates a tree specifying whether any node can have children, or whether only certain nodes can have children.

Parameters:
root - The root of the tree.
asksAllowsChildren - false if any node can have children, or true if each node is asked to see if it can have children.
Method Detail

toString

public String toString()
Returns a string representation of this tree as defined by Trees.toString(TreeModel).

Overrides:
toString in class Object


Copyright © 2009-2012 Geotoolkit.org. All Rights Reserved.