Skip navigation links
GxColumns

Class GxDefaultColumnDefinition

Inheritance:
    • Method Detail

      • CHART_TYPE_CATEGORY

        public static BBjString CHART_TYPE_CATEGORY()

        A constant which defines column chart category

        Returns:
        BBjString category
      • CHART_TYPE_EXCLUDED

        public static BBjString CHART_TYPE_EXCLUDED()

        A constant which defines column chart excluded, columns which set chart type to excluded will be excluded from charts

        Returns:
        BBjString excluded
      • CHART_TYPE_SERIES

        public static BBjString CHART_TYPE_SERIES()

        A constant which defines column chart series

        Returns:
        BBjString series
      • COLUMN_GROUP_CLOSED

        public static BBjString COLUMN_GROUP_CLOSED()

        A constant which defines the group state as opened

        Returns:
        BBjString opened
      • COLUMN_GROUP_OPENED

        public static BBjString COLUMN_GROUP_OPENED()

        A constant which defines the group state as opened

        Returns:
        BBjString opened
      • getAsJsonObject

        public JsonObject getAsJsonObject()

        Convert the definition to Json Object

      • getDefaultDatesMask

        public BBjString getDefaultDatesMask()
        Deprecated:
        Use `getMask` instead
      • getDefaultNumbersMask

        public BBjString getDefaultNumbersMask()
        Deprecated:
        Use `getMask` instead
      • getDefaultStringsMask

        public BBjString getDefaultStringsMask()
        Deprecated:
        Use `getMask` instead
      • getDefaultTimesMask

        public BBjString getDefaultTimesMask()
        Deprecated:
        Use `getDefaultTimesMask` instead
      • getDefaultTimestampsMask

        public BBjString getDefaultTimestampsMask()
        Deprecated:
        Use `getDefaultTimesMask` instead
      • getMask

        public BBjString getMask()

        Get the column mask

        Returns:
        BBjString the column mask
      • PINNED_LEFT

        public static BBjString PINNED_LEFT()

        Get pinned left constant

        Returns:
        BBjString left
      • PINNED_RIGHT

        public static BBjString PINNED_RIGHT()

        Get pinned right constant

        Returns:
        BBjString right
      • setAlignment

        public void setAlignment(BBjNumber align!, BBjNumber alignHeader!)

        Sets the default alignment for a column

        Parameters:
        BBjNumber align! The column alignment
        BBjNumber alignHeader! when true the column's header will use the same alignment valid alignments:
        See Also:
        BBjGridExWidget.GRID_ALIGN_LEFT()
        BBjGridExWidget.GRID_ALIGN_CENTER()
        BBjGridExWidget.GRID_ALIGN_RIGHT()
      • setAlignment

        public void setAlignment(BBjNumber align!)

        Sets the default alignment for a column

        Parameters:
        BBjNumber align! The column alignment valid alignments:
        See Also:
        BBjGridExWidget.GRID_ALIGN_LEFT()
        BBjGridExWidget.GRID_ALIGN_CENTER()
        BBjGridExWidget.GRID_ALIGN_RIGHT()
      • setAllowedAggFuncs

        public void setAllowedAggFuncs(BBjString funcs!)

        Set the allowed aggregation functions allowed on this column

        Parameters:
        BBjString funcs! comma separated functions
      • setBackColor

        public void setBackColor(BBjColor color!)

        Sets the background color of a column

        Parameters:
        BBjColor color! The color for the column
      • setBackColor

        public void setBackColor(BBjString color!)

        Sets the background color of a column

        Parameters:
        BBjColor color$ Valid CSS color
        See Also:
        https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
      • setCellEditorSelector

        public void setCellEditorSelector(BBjString expression!, HashMap editors!)

        Set a cell editor selector to use for this column.

        Parameters:
        expression! Javascript expression to use to select the cell editor
        editors! A set of possible cell editors to use
      • setColumnMask

        public void setColumnMask(BBjString mask!)

        Set the mask of a column in all supported components (filters , formatters , ...)

        In case the column has no value formatter expression , then the method will create one

        Parameters:
        mask! - The BBj date string or numeric mask.
        Deprecated:
        Use `setMask` instead
      • setColumnSpanExpression

        public void setColumnSpanExpression(BBjString expression!)

        Create a GxExpression from string and set it as column span expression

        Parameters:
        BBjString expression! Javascript expression
      • setDefaultDatesMask

        public void setDefaultDatesMask(BBjString mask!)
        Deprecated:
        Use `setMask` instead
      • setDefaultNumbersMask

        public void setDefaultNumbersMask(BBjString mask!)
        Deprecated:
        Use `setMask` instead
      • setDefaultStringsMask

        public void setDefaultStringsMask(BBjString mask!)
        Deprecated:
        Use `setMask` instead
      • setDefaultTimesMask

        public void setDefaultTimesMask(BBjString mask!)
        Deprecated:
        Use `setMask` instead
      • setDefaultTimestampsMask

        public void setDefaultTimestampsMask(BBjString mask!)
        Deprecated:
        Use `setMask` instead
      • setEditableExpression

        public void setEditableExpression(BBjString expression!)

        Create a GxExpression from string and set it as editable expression

        Parameters:
        BBjString expression! Javascript expression
      • setForeColor

        public void setForeColor(BBjColor color!)

        Sets the foreground color for a column

        Parameters:
        BBjColor color! the color for the column
      • setForeColor

        public void setForeColor(BBjString color!)

        Sets the foreground color for a column

        Parameters:
        BBjString color$ Valid CSS color
        See Also:
        https://developer.mozilla.org/en-US/docs/Web/CSS/color_value
      • setHeaderAlignment

        public void setHeaderAlignment(BBjNumber align!)

        Sets the default alignment for a column's header

        Parameters:
        BBjNumber align! The column's header alignment valid alignments:
        See Also:
        BBjGridExWidget.GRID_ALIGN_LEFT()
        BBjGridExWidget.GRID_ALIGN_CENTER()
        BBjGridExWidget.GRID_ALIGN_RIGHT()
      • setIcons

        public void setIcons(BBjString json!)

        Set the grid icons

        Parameters:
        BBjString json! The icons as a json object
      • setMask

        public void setMask(BBjString mask!)

        Set the mask of a column in all supported components (filters , formatters , ...)

        In case the column has no value formatter expression , then the method will create one

        Parameters:
        mask! - The BBj date string or numeric mask.
      • setRowSpanExpression

        public void setRowSpanExpression(BBjString expression!)

        Create a GxExpression from string and set it as row span expression

        Parameters:
        BBjString expression! Javascript expression
      • setTooltipValueGetterExpression

        public void setTooltipValueGetterExpression(BBjString expression!)

        Create a GxExpression from string and set it as tooltip value getter

        Parameters:
        BBjString expression! Javascript expression
      • setType

        public void setType(BBjNumber type!)

        Set the column type

        Parameters:
        BBjString type! SQL type Note : Not all sql types are supported, for example it does not make sense to declare a colum type as STRUCT. Setting the type will change the column common properties automatically like the filter, cell editor, ....
        See Also:
        https://docs.oracle.com/javase/8/docs/api/java/sql/Types.html
      • setValueFormatterExpression

        public void setValueFormatterExpression(BBjString expression!)

        Create a GxExpression from string and set it as value formatter

        Parameters:
        BBjString expression! Javascript expression
      • setValueGetterExpression

        public void setValueGetterExpression(BBjString expression!)

        Create a GxExpression from string and set it as value getter

        Parameters:
        BBjString expression! Javascript expression
      • setValueParserExpression

        public void setValueParserExpression(BBjString expression!)

        Create a GxExpression from string and set it as value parser

        Parameters:
        BBjString expression! Javascript expression
      • setValueSetterExpression

        public void setValueSetterExpression(BBjString expression!)

        Create a GxExpression from string and set it as value setter

        Parameters:
        BBjString expression! Javascript expression
      • SORT_ASC

        public static BBjString SORT_ASC()

        Get sort direction constant

        Returns:
        BBjString asc
      • SORT_DESC

        public static BBjString SORT_DESC()

        Get sort direction constant

        Returns:
        BBjString desc