|
Diamond Control Suite 3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.tree.DefaultTreeModel diamondedge.swing.DsTreeModel
public class DsTreeModel
Field Summary |
---|
Fields inherited from class javax.swing.tree.DefaultTreeModel |
---|
asksAllowsChildren, listenerList, root |
Constructor Summary | |
---|---|
DsTreeModel(DsTreeNode root)
|
Method Summary | |
---|---|
DsTreeNode |
add()
|
DsTreeNode |
add(DsTreeNode node,
DsTreeNode relative,
int relationship)
Adds a DsTreeNode object to a Nodes collection and returns a reference to the created object. |
DsTreeNode |
add(DsTreeNode relative,
int relationship,
String key,
String text,
int image,
int selectedImage)
|
DsTreeNode |
add(DsTreeNode relative,
int relationship,
String key,
String text,
Object image,
Object selectedImage)
Adds a DsTreeNode object to a Nodes collection and returns a reference to the created object. |
DsTreeNode |
add(int relative,
int relationship,
String key,
String text,
int image,
int selectedImage)
|
DsTreeNode |
add(int relative,
int relationship,
String key,
String text,
Object image,
Object selectedImage)
|
DsTreeNode |
add(String text)
|
DsTreeNode |
add(String text,
int index)
|
DsTreeNode |
add(String relative,
int relationship,
String key,
String text,
int image,
int selectedImage)
|
DsTreeNode |
add(String relative,
int relationship,
String key,
String text,
Object image,
Object selectedImage)
|
DsTreeNode |
add(String text,
String key)
|
void |
changeKey(String key,
String newkey)
|
void |
clear()
Removes all objects in a collection. |
int |
getCount()
Returns the number of objects in a collection. |
int |
getIndent(int nodeIndex)
|
int |
getIndex(String key)
|
DsTreeNode |
getNode(int index)
Returns a specific DsTreeNode in the Collection by position. |
DsTreeNode |
getNode(String key)
Returns a specific DsTreeNode in the Collection by key. |
DsTreeNode |
getRootNode()
Returns a reference to the root DsTreeNode object of a DsTree control. |
boolean |
isLeaf(Object node)
|
void |
remove(int index)
Removes a specific member from a collection. |
void |
remove(String key)
Removes a specific member from a collection. |
void |
setIndent(int nodeIndex,
int indentLevel)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DsTreeModel(DsTreeNode root)
Method Detail |
---|
public int getCount()
public DsTreeNode getRootNode()
public DsTreeNode getNode(String key)
public DsTreeNode getNode(int index)
public int getIndex(String key)
public DsTreeNode add(DsTreeNode node, DsTreeNode relative, int relationship)
node
- Required. The DsTreeNode to add.relative
- Optional. A DsTreeNode or an index number or key of a pre-existing DsTreeNode object. The relationship between the new node and this pre-existing node is found in the next argument, relationship.relationship
- Optional. Specifies the relative placement of the DsTreeNode object, as described in Settings.public DsTreeNode add(DsTreeNode relative, int relationship, String key, String text, Object image, Object selectedImage)
relative
- Optional. A DsTreeNode or an index number or key of a pre-existing DsTreeNode object. The relationship between the new node and this pre-existing node is found in the next argument, relationship.relationship
- Optional. Specifies the relative placement of the DsTreeNode object, as described in Settings.key
- Optional. A unique string that can be used to retrieve the DsTreeNode with the Item method.text
- Required. The string that appears in the DsTreeNode.image
- Optional. The index of an image in an associated IconList control.selectedImage
- Optional. The index of an image in an associated IconList control that is shown when the DsTreeNode is selected.public DsTreeNode add(String relative, int relationship, String key, String text, Object image, Object selectedImage)
public DsTreeNode add(int relative, int relationship, String key, String text, Object image, Object selectedImage)
public DsTreeNode add(int relative, int relationship, String key, String text, int image, int selectedImage)
public DsTreeNode add(String relative, int relationship, String key, String text, int image, int selectedImage)
public DsTreeNode add(DsTreeNode relative, int relationship, String key, String text, int image, int selectedImage)
public DsTreeNode add(String text, String key)
public DsTreeNode add(String text, int index)
public DsTreeNode add(String text)
public DsTreeNode add()
public void changeKey(String key, String newkey)
public void clear()
public void remove(int index)
public void remove(String key)
public boolean isLeaf(Object node)
isLeaf
in interface TreeModel
isLeaf
in class DefaultTreeModel
public int getIndent(int nodeIndex)
public void setIndent(int nodeIndex, int indentLevel)
|
Diamond Control Suite 3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |