Package com.macrofocus.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Column
getIndex()
The index of the column in the model.java.lang.String
getName()
Returns the name of the field.java.lang.Class
getType()
Returns the most specific superclass for all the values.java.lang.Object
getValue(N node)
Returns the value for the specified row.boolean
isEveryValueUnique()
Indicates whether the field only contains unique values.boolean
isValid()
Indicates whether the field is valid.
-
-
-
Method Detail
-
getType
@JsIgnore java.lang.Class getType()
Returns the most specific superclass for all the values.- Returns:
- the common ancestor class of the object values.
-
getName
java.lang.String getName()
Returns the name of the field.- Returns:
- the name of the field.
-
getValue
java.lang.Object getValue(N node)
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
-
-