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 ColumngetIndex()The index of the column in the model.java.lang.StringgetName()Returns the name of the field.java.lang.ClassgetType()Returns the most specific superclass for all the values.java.lang.ObjectgetValue(N node)Returns the value for the specified row.booleanisEveryValueUnique()Indicates whether the field only contains unique values.booleanisValid()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
-
-