public class GxColumn
extends GxDefaultColumnDefinition
The class holds the grid column props, it also introduces several helper methods to update the styles like, fore/back colors.
Modifier and Type | Field and Description |
---|---|
BBjString | Field! The field of the row to get the cells data from |
Constructor and Description |
---|
GxColumn(BBjString field!) Create a new column definition |
GxColumn(BBjString field!, BBjString label!) Create a new column definition |
GxColumn(BBjString field!, BBjNumber type!) Create a new column definition |
GxColumn(BBjString field!, BBjString label! , BBjNumber type!) Create a new column definition |
Modifier and Type | Method and Description |
---|---|
JsonObject | getAsJsonObject() Convert the definition to Json Object |
static BBjString | MENU_TAB_COLUMNS() |
static BBjString | MENU_TAB_FILTER() |
static BBjString | MENU_TAB_GENERAL() |
void | setField(BBjString field!) Throw an error when called because the field becomes immutable after the column's definition creation |
void | update(HashMap meta!, GxDefaultColumnDefinition defaultDefinition!) Update the column definition from a meta map |
public BBjString Field!
The field of the row to get the cells data from
Note: Once the field name is set, it becomes immutable
public GxColumn(BBjString field!)
Create a new column definition
BBjString
field! The field of the row to get the cells data frompublic GxColumn(BBjString field!, BBjString label!)
Create a new column definition
BBjString
field! The field of the row to get the cells data fromBBjString
label! The name to render in the column headerpublic GxColumn(BBjString field!, BBjNumber type!)
Create a new column definition
BBjString
field! The field of the row to get the cells data fromBBjNumber
type! The field's typepublic JsonObject getAsJsonObject()
Convert the definition to Json Object
public static BBjString MENU_TAB_COLUMNS()
public static BBjString MENU_TAB_FILTER()
public static BBjString MENU_TAB_GENERAL()
public void setField(BBjString field!)
Throw an error when called because the field becomes immutable after the column's definition creation
public void update(HashMap meta!, GxDefaultColumnDefinition defaultDefinition!)
Update the column definition from a meta map
HashMap
meta! The meta mapGxDefaultColumnDefinition
defaultDefinition! The default column definition in the grid