public class TreeViewNodeEntry extends TreeNodeEntry
TreeNodeEntry.EditorMode| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
text
Node text.
|
checked, editorMode, expanded, expandIconId, hasChildren, iconId, nodeBgColor, nodeFgColor, nodeId, parentId, selectedIconId, tooltip| Constructor and Description |
|---|
TreeViewNodeEntry()
Default constructor.
|
TreeViewNodeEntry(int nodeId,
int parentId,
java.lang.String text)
Constructor for the
TreeViewNode instances. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
java.lang.Object |
getValue(int cellIndex)
Returns the cell value at the specified index.
|
int |
hashCode()
Returns a hash code value for the object.
|
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
void |
setValue(int cellIndex,
java.lang.Object cellValue)
Sets the cell value at the specified index.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
getValue, print, readCell, sameAs, writeCellpublic TreeViewNodeEntry()
public TreeViewNodeEntry(int nodeId,
int parentId,
java.lang.String text)
TreeViewNode instances.nodeId - Node id.parentId - Parent node id. Use unknown when the node has no parent.text - Node label.public java.lang.Object getValue(int cellIndex)
getValue in class TreeNodeEntrycellIndex - Cell index.null if the index is out of range of valid indexespublic void setValue(int cellIndex,
java.lang.Object cellValue)
setValue in class TreeNodeEntrycellIndex - The given cell indexcellValue - The given cell valuepublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class TreeNodeEntryout - The output destination to which fields will be saved.java.io.IOException - In case of I/O errors.public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class TreeNodeEntryin - The input source from which fields will be restored.java.io.IOException - In case of I/O errors.java.lang.ClassNotFoundException - If payload can't be instantiated.public boolean equals(java.lang.Object obj)
equals in class TreeNodeEntryobj - The other object to test.true if this object is equals to the argument; false otherwise.public int hashCode()
HashMap.hashCode in class TreeNodeEntry