public class TreeListNodeEntry extends TreeNodeEntry
TreeNodeEntry.EditorMode
Modifier and Type | Field and Description |
---|---|
java.util.List<ColorRgb> |
cellBGColors
Cell custom background colors
|
java.util.List<ColorRgb> |
cellFGColors
Cell custom text colors
|
java.util.List<java.lang.Object> |
cellSortingValues
Cell values for this node entry used for column sorting.
|
java.util.List<java.lang.Object> |
cellValues
Values for this node entry passed from the application using
TreeList.setCellString(NumberType, NumberType, character) or
TreeList.setCellIcon(NumberType, NumberType, NumberType) . |
checked, editorMode, expanded, expandIconId, hasChildren, iconId, nodeBgColor, nodeFgColor, nodeId, parentId, selectedIconId, tooltip
Constructor and Description |
---|
TreeListNodeEntry()
Constructor.
|
TreeListNodeEntry(int nodeId,
int parentId)
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, writeCell
public java.util.List<java.lang.Object> cellValues
TreeList.setCellString(NumberType, NumberType, character)
or
TreeList.setCellIcon(NumberType, NumberType, NumberType)
.
If the cell column type is ICON, the value is the integer icon index,
otherwise the value is a String
.public java.util.List<java.lang.Object> cellSortingValues
cellValues
.
The values in this field are lazily initialized during the sorting.public java.util.List<ColorRgb> cellFGColors
public java.util.List<ColorRgb> cellBGColors
public TreeListNodeEntry()
public TreeListNodeEntry(int nodeId, int parentId)
TreeViewNode
instances.nodeId
- Node id.parentId
- Parent node id. Use unknown when the node has no parent.public java.lang.Object getValue(int cellIndex)
getValue
in class TreeNodeEntry
cellIndex
- Cell index.null
if the index is out of range of valid indexespublic void setValue(int cellIndex, java.lang.Object cellValue)
setValue
in class TreeNodeEntry
cellIndex
- The given cell indexcellValue
- The given cell valuepublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class TreeNodeEntry
out
- 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.Externalizable
readExternal
in class TreeNodeEntry
in
- 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 TreeNodeEntry
obj
- The other object to test.true
if this object is equals to the argument; false
otherwise.public int hashCode()
HashMap
.hashCode
in class TreeNodeEntry