Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ledestin.swing
Interface EditableTreeNode  view EditableTreeNode download EditableTreeNode.java

All Superinterfaces:
javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public interface EditableTreeNode
extends javax.swing.tree.MutableTreeNode

Implement the interface only for nodes that can have children. EditableTreeNodes are supposed to have child nodes of one particular type. In an empty JEditableTree its nodes must be able to create their children.


Method Summary
 javax.swing.tree.MutableTreeNode createNewChild()
          Creates a new node of the "child node type", of this node.
 java.lang.Class getChildClass()
          Returns the "child node type" for the node.
 
Methods inherited from interface javax.swing.tree.MutableTreeNode
insert, remove, remove, removeFromParent, setParent, setUserObject
 
Methods inherited from interface javax.swing.tree.TreeNode
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
 

Method Detail

createNewChild

public javax.swing.tree.MutableTreeNode createNewChild()
                                                throws ChildNodeCreationException
Creates a new node of the "child node type", of this node. Note that the newly created node isn't added to this node with insert 55 method or in any other way. It is just the way of creating children for node.


getChildClass

public java.lang.Class getChildClass()
                              throws java.lang.ClassNotFoundException
Returns the "child node type" for the node.