Package io.deephaven.web.client.api
Class CustomColumn
java.lang.Object
io.deephaven.web.client.api.CustomColumn
Describes a custom column expression.
This type is used to represent a formula column or a formatting column (for example, table color or number/date formatting) in the Deephaven JS API.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCustomColumn(CustomColumnDescriptor descriptor) CustomColumn(String name, String type, String expression, Object options) CustomColumn(jsinterop.base.JsPropertyMap<Object> source) -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomColumnCreates aCustomColumnby parsing a string produced bytoString().The expression to evaluate this custom column.getName()The name of the column to use.The options for this custom column.getType()Type of custom column.toString()Returns a string representation of this custom column.valueOf()Returns the primitive value for this custom column.
-
Field Details
-
TYPE_FORMAT_COLOR
- See Also:
-
TYPE_FORMAT_NUMBER
- See Also:
-
TYPE_FORMAT_DATE
- See Also:
-
TYPE_NEW
- See Also:
-
ROW_FORMAT_NAME
- See Also:
-
-
Constructor Details
-
CustomColumn
-
CustomColumn
-
-
Method Details
-
getName
The name of the column to use.- Returns:
- String
-
getType
Type of custom column. One of- FORMAT_COLOR
- FORMAT_NUMBER
- FORMAT_DATE
- NEW
- Returns:
- String
-
getExpression
The expression to evaluate this custom column.- Returns:
- String
-
getOptions
The options for this custom column.- Returns:
- CustomColumOptions
-
valueOf
Returns the primitive value for this custom column. -
toString
Returns a string representation of this custom column.The returned value is formatted as
name[SUFFIX]=expression, where[SUFFIX]depends on the type.from(String)parsesname=expressionand always produces aTYPE_NEWcolumn. It does not interpret suffixes or preserve the original type. -
from
Creates aCustomColumnby parsing a string produced bytoString().This method parses
name=expressionand always produces aTYPE_NEWcolumn. It does not interpret suffixes.- Parameters:
columnInfo- a string formatted asname=expression- Returns:
- a new
CustomColumn
-