Package com.treemap
Interface TreeMapField<N,Column>
- All Known Implementing Classes:
AbstractTreeMapField
,DefaultTreeMapField
,NoTreeMapField
@JsType
public interface TreeMapField<N,Column>
This interface represent a field (or column) that can be used to retrieve data in the TreeMapModel data structure.
-
Method Summary
Modifier and TypeMethodDescriptiongetIndex()
The index of the column in the model.getName()
Returns the name of the field.getType()
Returns the most specific superclass for all the values.Returns the value for the specified row.boolean
Indicates whether the field only contains unique values.boolean
isValid()
Indicates whether the field is valid.
-
Method Details
-
getType
Returns the most specific superclass for all the values.- Returns:
- the common ancestor class of the object values.
-
getName
String getName()Returns the name of the field.- Returns:
- the name of the field.
-
getValue
Returns the value for the specified row.- Parameters:
node
- the node whose value should be queried.- Returns:
- the value Object at the specified row.
-
isValid
boolean isValid()Indicates whether the field is valid.- Returns:
- true if it is valid, false otherwise.
-
isEveryValueUnique
boolean isEveryValueUnique()Indicates whether the field only contains unique values.- Returns:
- true if all values are unique, false otherwise.
-
getIndex
Column getIndex()The index of the column in the model.- Returns:
- the index of the column
-