Package com.storedobject.chart
Interface TreeDataProvider
- All Superinterfaces:
ComponentPart,ComponentProperty
- All Known Implementing Classes:
TreeData
Representation of tree-type data.
- Author:
- Syam
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault voidEncode the JSON string with the properties of this.Stream<? extends TreeDataProvider> Get the child nodes.default ItemStylegetItemStyle(boolean create) Get item style.default TreeDataProvider.LabelgetLabel(boolean create) Get the label for this tree node.getValue()Get data value.default voidvalidate()This method is invoked bySOChartto check if the component or part is valid or not.Methods inherited from interface com.storedobject.chart.ComponentPart
className, getId, getName, getRenderingIndex, getSerial, setName, setRenderingIndex, setSerial
-
Method Details
-
getValue
-
getChildren
Stream<? extends TreeDataProvider> getChildren()Get the child nodes.- Returns:
- Child nodes as a stream.
-
encodeJSON
Description copied from interface:ComponentPropertyEncode the JSON string with the properties of this.- Specified by:
encodeJSONin interfaceComponentProperty- Parameters:
sb- Encoded JSON string to be appended to this.
-
validate
default void validate()Description copied from interface:ComponentPartThis method is invoked bySOChartto check if the component or part is valid or not.- Specified by:
validatein interfaceComponentPart
-
getLabel
Get the label for this tree node.- Parameters:
create- Whether to create it if not exists.- Returns:
- Return the label.
-
getItemStyle
Get item style.- Parameters:
create- If passed true, a new style is created if not exists.- Returns:
- Item style.
-