Package io.deephaven.web.client.api
Class Column
java.lang.Object
io.deephaven.web.client.api.Column
Describes the structure of the column, and if desired can be used to get access to the data to be rendered in this
column.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomColumn
createCustomColumn
(String name, String expression, @JsNullable @TsTypeRef(CustomColumnOptions.class) Object options) a CustomColumn object to apply using applyCustomColumns with the expression specified.boolean
filter()
Creates a new value for use in filters based on this column.formatColor
(String expression, @JsNullable @TsTypeRef(CustomColumnOptions.class) Object options) a CustomColumn object to apply using `applyCustomColumns` with the expression specified.formatDate
(String expression, @JsNullable @TsTypeRef(CustomColumnOptions.class) Object options) a CustomColumn object to apply using applyCustomColumns with the expression specified.formatNumber
(String expression, @JsNullable @TsTypeRef(CustomColumnOptions.class) Object options) a CustomColumn object to apply using applyCustomColumns with the expression specified.static CustomColumn
formatRowColor
(String expression, @JsNullable @TsTypeRef(CustomColumnOptions.class) Object options) Format entire rows colors using the expression specified.jsinterop.base.Any
get
(TableData.Row row) the value for this column in the given row.@JsNullable String
If this column is part of a roll-up tree table, represents the type of the row data that can be found in this column for leaf nodes if includeConstituents is enabled.@JsNullable String
getFormat
(TableData.Row row) int
getIndex()
boolean
True if this column is a partition column.boolean
int
Deprecated.do not use.getName()
Label for this column.getType()
Type of the row data that can be found in this column.int
hashCode()
boolean
boolean
void
setConstituentType
(String constituentType) sort()
Creates a sort builder object, to be used when sorting by this column.toString()
withFormatStringColumnIndex
(int formatStringColumnIndex) withStyleColumnIndex
(int styleColumnIndex)
-
Constructor Details
-
Column
-
-
Method Details
-
formatRowColor
@JsMethod(namespace="dh.Column") public static CustomColumn formatRowColor(String expression, @JsOptional @TsTypeRef(CustomColumnOptions.class) @JsNullable @TsTypeRef(CustomColumnOptions.class) Object options) Format entire rows colors using the expression specified. Returns a CustomColumn object to apply to a table using applyCustomColumns with the parameters specified.- Parameters:
expression
-options
-- Returns:
CustomColumn
-
createCustomColumn
@JsMethod(namespace="dh.Column") public static CustomColumn createCustomColumn(String name, String expression, @JsOptional @TsTypeRef(CustomColumnOptions.class) @JsNullable @TsTypeRef(CustomColumnOptions.class) Object options) a CustomColumn object to apply using applyCustomColumns with the expression specified.- Parameters:
name
-expression
-options
-- Returns:
CustomColumn
-
get
the value for this column in the given row. Type will be consistent with the type of the Column.- Parameters:
row
-- Returns:
- Any
-
getFormat
-
getJsIndex
Deprecated.do not use. Internal index of the column in the table, to be used as a key on the Row.- Returns:
- int
-
getIndex
public int getIndex() -
getType
Type of the row data that can be found in this column.- Returns:
- String
-
getName
Label for this column.- Returns:
- String
-
getDescription
-
getRequiredColumns
-
getConstituentType
If this column is part of a roll-up tree table, represents the type of the row data that can be found in this column for leaf nodes if includeConstituents is enabled. Otherwise, it is null.- Returns:
- String
-
setConstituentType
-
getFormatStringColumnIndex
-
getStyleColumnIndex
-
getIsPartitionColumn
@JsProperty public boolean getIsPartitionColumn()True if this column is a partition column. Partition columns are used for filtering uncoalesced tables - seeJsTable.isUncoalesced()
.- Returns:
- true if the column is a partition column
-
isInputTableKeyColumn
public boolean isInputTableKeyColumn() -
isInputTableValueColumn
public boolean isInputTableValueColumn() -
sort
Creates a sort builder object, to be used when sorting by this column.- Returns:
Sort
-
getIsSortable
@JsProperty public boolean getIsSortable() -
filter
Creates a new value for use in filters based on this column. Used either as a parameter to another filter operation, or as a builder to create a filter operation.- Returns:
FilterValue
-
formatColor
@JsMethod public CustomColumn formatColor(String expression, @JsOptional @TsTypeRef(CustomColumnOptions.class) @JsNullable @TsTypeRef(CustomColumnOptions.class) Object options) a CustomColumn object to apply using `applyCustomColumns` with the expression specified.- Parameters:
expression
-- Returns:
CustomColumn
-
formatNumber
@JsMethod public CustomColumn formatNumber(String expression, @JsOptional @TsTypeRef(CustomColumnOptions.class) @JsNullable @TsTypeRef(CustomColumnOptions.class) Object options) a CustomColumn object to apply using applyCustomColumns with the expression specified.- Parameters:
expression
-- Returns:
CustomColumn
-
formatDate
@JsMethod public CustomColumn formatDate(String expression, @JsOptional @TsTypeRef(CustomColumnOptions.class) @JsNullable @TsTypeRef(CustomColumnOptions.class) Object options) a CustomColumn object to apply using applyCustomColumns with the expression specified.- Parameters:
expression
-- Returns:
CustomColumn
-
toString
-
equals
-
hashCode
public int hashCode() -
withFormatStringColumnIndex
-
withStyleColumnIndex
-