|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.models.Node
public class Node
Node
is a generic implementation of NodeInterface
.
Node
is a single unit in a hierarchical structure. It provides textual
descriptions, children and user specified data.
Constructor Summary | |
---|---|
Node()
Constructs a Node object. |
|
Node(java.lang.String nodeText)
Constructs a Node object with the specified text. |
|
Node(java.lang.String nodeText,
java.lang.String nodeType)
Constructs a Node object with the specified text and type. |
Method Summary | |
---|---|
void |
addItems(java.util.Enumeration items)
Appends the enumeration of SimpleNodeInterface objects to the children of the current node. |
int |
getIndex(javax.swing.tree.MutableTreeNode item,
int startIndex)
Returns the 0-based index associated with the NodeInterface object in the children collection (searches forward) |
java.lang.String |
getNodeExpandedText()
Returns the value of the nodeExpandedText property. |
java.lang.String |
getNodeText()
Returns the value of the nodeText property. |
java.lang.String |
getNodeType()
Returns the type of the current node. |
java.lang.String[] |
getNodeTypes()
Returns the complete set of types for a node. |
java.lang.Object |
getObjectData()
Returns user-supplied data for the current node. |
boolean |
isExternalUpdateSupported()
Returns the value of the externalUpdateSupported property. |
void |
setExternalUpdateSupported(boolean newValue)
Sets the value of the externalUpdateSupported property. |
void |
setNodeExpandedText(java.lang.String newValue)
Sets the expanded text of the current node. |
void |
setNodeText(java.lang.String newValue)
Sets the text of the current node. |
void |
setNodeType(java.lang.String newValue)
Sets the type of the current node. |
void |
setObjectData(java.lang.Object newValue)
Sets the object data for the current node. |
java.lang.String |
toString()
Returns the value of the nodeText property. |
Constructor Detail |
---|
public Node()
public Node(java.lang.String nodeText)
nodeText
- the initial value for the nodeText propertypublic Node(java.lang.String nodeText, java.lang.String nodeType)
nodeText
- the initial value for the nodeText propertynodeType
- the initial value for the nodeType propertyMethod Detail |
---|
public java.lang.String getNodeExpandedText()
NodeInterface
getNodeExpandedText
in interface NodeInterface
public java.lang.String getNodeType()
NodeInterface
getNodeType
in interface NodeInterface
public java.lang.String getNodeText()
NodeInterface
getNodeText
in interface NodeInterface
public boolean isExternalUpdateSupported()
true
to allow external updates, false
otherwisesetExternalUpdateSupported(boolean)
public java.lang.String[] getNodeTypes()
null
, or a string array of all the possible node types.public void addItems(java.util.Enumeration items)
items
- the SimpleNodeInterface objects to add as childrenpublic int getIndex(javax.swing.tree.MutableTreeNode item, int startIndex)
item
- NodeInterface to search forstartIndex
- the position where the search should start
java.lang.IndexOutOfBoundsException
- if the start index
is invalidpublic java.lang.Object getObjectData()
setObjectData(java.lang.Object)
public void setExternalUpdateSupported(boolean newValue)
newValue
- true
to allow external updates, false
otherwiseisExternalUpdateSupported()
public void setNodeExpandedText(java.lang.String newValue)
newValue
- the new value for the nodeExpandedText propertygetNodeExpandedText()
public void setNodeType(java.lang.String newValue)
newValue
- the new value for the nodeType propertygetNodeType()
public void setNodeText(java.lang.String newValue)
newValue
- the new value for the nodeText propertygetNodeText()
public void setObjectData(java.lang.Object newValue)
newValue
- the new value for the objectData propertygetObjectData()
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |