|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--javax.swing.tree.DefaultMutableTreeNode
|
+--com.klg.jclass.datasource.DataSourceTreeNode
This class extends the swing DefaultMutableTreeNode to provide methods required by JClass DataSource.
| Field Summary |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
DataSourceTreeNode()
Creates a tree node that has no parent and no children, but which allows children. |
|
DataSourceTreeNode(Object userObject)
Creates a tree node with no parent, no children, but which allows children, and initializes it with the specified user object. |
|
DataSourceTreeNode(Object userObject,
boolean allowsChildren)
Creates a tree node with no parent, no children, initialized with the specified user object, and that allows children only if specified. |
|
| Method Summary | |
Vector |
getChildren()
|
TreeNode |
getFirstChild()
|
com.klg.jclass.datasource.TreeIterator |
getIterator()
|
com.klg.jclass.datasource.TreeIterator |
getIterator(boolean isForward)
|
com.klg.jclass.datasource.TreeIterator |
getIterator(com.klg.jclass.datasource.DataSourceTreeNode startNode)
|
com.klg.jclass.datasource.TreeIterator |
getIterator(com.klg.jclass.datasource.DataSourceTreeNode startNode,
boolean isForward)
|
TreeNode |
getLastChild()
|
com.klg.jclass.datasource.DataSourceTreeNode |
getNextChild(com.klg.jclass.datasource.DataSourceTreeNode node)
|
com.klg.jclass.datasource.DataSourceTreeNode |
getPreviousChild(com.klg.jclass.datasource.DataSourceTreeNode node)
|
boolean |
hasChildren()
|
com.klg.jclass.datasource.DataSourceTreeNode |
insert(com.klg.jclass.datasource.DataSourceTreeNode before,
com.klg.jclass.datasource.DataSourceTreeNode data)
|
boolean |
isChildOf(com.klg.jclass.datasource.DataSourceTreeNode possibleParent)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DataSourceTreeNode()
public DataSourceTreeNode(Object userObject)
userObject - an Object provided by the user that constitutes
the node's data
public DataSourceTreeNode(Object userObject,
boolean allowsChildren)
userObject - an Object provided by the user that constitutes
the node's dataallowsChildren - if true, the node is allowed to have child
nodes -- otherwise, it is always a leaf node| Method Detail |
public com.klg.jclass.datasource.TreeIterator getIterator()
public com.klg.jclass.datasource.TreeIterator getIterator(boolean isForward)
public com.klg.jclass.datasource.TreeIterator getIterator(com.klg.jclass.datasource.DataSourceTreeNode startNode)
public com.klg.jclass.datasource.TreeIterator getIterator(com.klg.jclass.datasource.DataSourceTreeNode startNode,
boolean isForward)
public com.klg.jclass.datasource.DataSourceTreeNode insert(com.klg.jclass.datasource.DataSourceTreeNode before,
com.klg.jclass.datasource.DataSourceTreeNode data)
public boolean isChildOf(com.klg.jclass.datasource.DataSourceTreeNode possibleParent)
public boolean hasChildren()
public Vector getChildren()
public com.klg.jclass.datasource.DataSourceTreeNode getPreviousChild(com.klg.jclass.datasource.DataSourceTreeNode node)
public com.klg.jclass.datasource.DataSourceTreeNode getNextChild(com.klg.jclass.datasource.DataSourceTreeNode node)
public TreeNode getFirstChild()
getFirstChild in class DefaultMutableTreeNodepublic TreeNode getLastChild()
getLastChild in class DefaultMutableTreeNodepublic String toString()
toString in class DefaultMutableTreeNode
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||