Class NatTableCSSConstants


  • public final class NatTableCSSConstants
    extends Object
    Constants class for NatTable CSS support.
    • Field Detail

      • BACKGROUND_COLOR

        public static final String BACKGROUND_COLOR
        CSS property for the NatTable background color. This has effect on the area that does not show cells or cells with a transparent background.
        See Also:
        Constant Field Values
      • BACKGROUND_IMAGE

        public static final String BACKGROUND_IMAGE
        CSS property for the NatTable background image. This has effect on the area that does not show cells or cells with a transparent background.
        See Also:
        Constant Field Values
      • TABLE_BORDER_COLOR

        public static final String TABLE_BORDER_COLOR
        CSS property to specify the border color that is applied around the NatTable. Triggers the usage of the NatTableBorderOverlayPainter to apply borders on every side of the table.

        Setting the value auto will use the configured grid line color as the table border color.

        See Also:
        Constant Field Values
      • PAINTER_RESOLUTION

        public static final String PAINTER_RESOLUTION
        CSS property for enabling/disabling the automatic painter resolution based on CSS properties.

        Available values: true, false

        See Also:
        Constant Field Values
      • PAINTER

        public static final String PAINTER
        CSS property for configuring the painter.

        The pattern for configuring a painter is [background-painter]?[decorator]*[content-painter]?, although it mostly doesn't make sense to not configure a content painter.

        The possible values are listed as constants in CellPainterFactory .

        See Also:
        Constant Field Values
      • TREE_STRUCTURE_PAINTER

        public static final String TREE_STRUCTURE_PAINTER
        CSS property for configuring the tree structure painter. Similar to PAINTER but specific for the tree structure configuration as it registers a painter for TreeConfigAttributes.TREE_STRUCTURE_PAINTER.

        Note: The value should always end with tree to configure a valid tree structure painter. It is mainly intended to configure the painter hierarchy (background and decorators) and whether to use inverted default icons via INVERT_ICONS.

        Note: The content painter that should be wrapped by the tree structure painter does not need to be added here aswell because it is evaluated dynamically.

        See Also:
        Constant Field Values
      • CELL_BACKGROUND_IMAGE

        public static final String CELL_BACKGROUND_IMAGE
        CSS property for configuring a background based on an image.
        See Also:
        Constant Field Values
      • FREEZE_SEPARATOR_COLOR

        public static final String FREEZE_SEPARATOR_COLOR
        CSS property for the color of the freeze separator.
        See Also:
        Constant Field Values
      • FREEZE_SEPARATOR_WIDTH

        public static final String FREEZE_SEPARATOR_WIDTH
        CSS property for the width of the freeze separator.
        Since:
        1.2
        See Also:
        Constant Field Values
      • GRID_LINE_COLOR

        public static final String GRID_LINE_COLOR
        CSS property for the color of the grid lines.
        See Also:
        Constant Field Values
      • GRID_LINE_WIDTH

        public static final String GRID_LINE_WIDTH
        CSS property for the width of the grid lines.
        See Also:
        Constant Field Values
      • RENDER_GRID_LINES

        public static final String RENDER_GRID_LINES
        CSS property to specify whether grid lines should be rendered or not.

        Available values: true, false

        See Also:
        Constant Field Values
      • WORD_WRAP

        public static final String WORD_WRAP
        CSS property to specify whether words should automatically or not. Default is false.

        Available values: true, false

        Since:
        1.1
        See Also:
        Constant Field Values
      • TEXT_WRAP

        public static final String TEXT_WRAP
        CSS property to specify whether text should automatically wrapped between words or not. Default is false.

        Available values: true, false

        See Also:
        Constant Field Values
      • TEXT_TRIM

        public static final String TEXT_TRIM
        CSS property to specify whether text should be trimmed on rendering words or not. Default is true.

        Available values: true, false

        See Also:
        Constant Field Values
      • TEXT_DIRECTION

        public static final String TEXT_DIRECTION
        CSS property to specify whether text should be rendered horizontally or vertically. Default is horizontal.

        Available values: horizontal, vertical

        See Also:
        Constant Field Values
      • LINE_SPACING

        public static final String LINE_SPACING
        CSS property to specify an additional spacing between lines in a text. By default this value is zero which means the line height is specified only by the font height.
        Since:
        1.1
        See Also:
        Constant Field Values
      • COLUMN_WIDTH

        public static final String COLUMN_WIDTH
        CSS property to configure the column width. Available values are:
        • auto - configure automatic width calculation for content painters
        • percentage - configure general percentage sizing
        • percentage value (e.g. 20%) - configure specific percentage sizing
        • number value (e.g. 100px)- configure column width
        See Also:
        Constant Field Values
      • ROW_HEIGHT

        public static final String ROW_HEIGHT
        CSS property to configure the row height. Available values are:
        • auto - configure automatic height calculation for content painters
        • percentage - configure general percentage sizing
        • percentage value (e.g. 20%) - configure specific percentage sizing
        • number value (e.g. 100px)- configure row height
        See Also:
        Constant Field Values
      • CONVERTER

        public static final String CONVERTER
        CSS property to configure the display converter. Possible values are:
        • boolean
        • character
        • date "[pattern]"
        • default
        • percentage
        • byte
        • short [format]
        • int [format]
        • long [format]
        • big-int
        • float [format] [min-fraction-digits] [max-fraction-digits]
        • double [format] [min-fraction-digits] [max-fraction-digits]
        • big-decimal [min-fraction-digits] [max-fraction-digits]
        See Also:
        Constant Field Values
      • DECORATION

        public static final String DECORATION
        CSS property to configure a decoration. Consists of 4 values:
        • the URI for the decorator icon
        • number value for the spacing between base painter and decoration
        • the edge to paint the decoration (top|right|bottom|left|top-right|top-left|bottom-right|bottom-left
        • true|false to configure decoration dependent rendering
        See Also:
        Constant Field Values
      • INVERT_ICONS

        public static final String INVERT_ICONS
        CSS property to configure whether default decorator icons should be inverted.

        Available values: true, false

        See Also:
        Constant Field Values
      • FILL_REGION_BORDER

        public static final String FILL_REGION_BORDER
        CSS property to specify the border style of the fill region.
        See Also:
        Constant Field Values
      • FILL_HANDLE_BORDER

        public static final String FILL_HANDLE_BORDER
        CSS property to specify the border of the fill drag handle.
        See Also:
        Constant Field Values
      • FILL_HANDLE_COLOR

        public static final String FILL_HANDLE_COLOR
        CSS property to specify the color of the fill drag handle.
        See Also:
        Constant Field Values
      • PADDING

        public static final String PADDING
        CSS property to specify cell padding. Triggers usage of the PaddingDecorator if painter resolution is enabled.
        See Also:
        Constant Field Values
      • PADDING_TOP

        public static final String PADDING_TOP
        CSS property to specify the top padding of a cell. Triggers usage of the PaddingDecorator if painter resolution is enabled.
        See Also:
        Constant Field Values
      • PADDING_RIGHT

        public static final String PADDING_RIGHT
        CSS property to specify the right padding of a cell. Triggers usage of the PaddingDecorator if painter resolution is enabled.
        See Also:
        Constant Field Values
      • PADDING_BOTTOM

        public static final String PADDING_BOTTOM
        CSS property to specify the bottom padding of a cell. Triggers usage of the PaddingDecorator if painter resolution is enabled.
        See Also:
        Constant Field Values
      • PADDING_LEFT

        public static final String PADDING_LEFT
        CSS property to specify the left padding of a cell. Triggers usage of the PaddingDecorator if painter resolution is enabled.
        See Also:
        Constant Field Values
      • PERCENTAGE_DECORATOR_COLORS

        public static final String PERCENTAGE_DECORATOR_COLORS
        CSS property for configuring the colors to use with the PercentageBarDecorator.
        See Also:
        Constant Field Values
      • CONVERSION_ERROR_FONT

        public static final String CONVERSION_ERROR_FONT
        CSS property for specifying the font of a text cell editor on conversion error.
        See Also:
        Constant Field Values
      • CONVERSION_ERROR_FONT_FAMILY

        public static final String CONVERSION_ERROR_FONT_FAMILY
        CSS property for specifying the font family of a text cell editor on conversion error.
        See Also:
        Constant Field Values
      • CONVERSION_ERROR_FONT_SIZE

        public static final String CONVERSION_ERROR_FONT_SIZE
        CSS property for specifying the font size of a text cell editor on conversion error.
        See Also:
        Constant Field Values
      • CONVERSION_ERROR_FONT_STYLE

        public static final String CONVERSION_ERROR_FONT_STYLE
        CSS property for specifying the font style of a text cell editor on conversion error.
        See Also:
        Constant Field Values
      • CONVERSION_ERROR_FONT_WEIGHT

        public static final String CONVERSION_ERROR_FONT_WEIGHT
        CSS property for specifying the font weight of a text cell editor on conversion error.
        See Also:
        Constant Field Values
      • CONVERSION_ERROR_BACKGROUND_COLOR

        public static final String CONVERSION_ERROR_BACKGROUND_COLOR
        CSS property for specifying the background color of a text cell editor on conversion error.
        See Also:
        Constant Field Values
      • CONVERSION_ERROR_FOREGROUND_COLOR

        public static final String CONVERSION_ERROR_FOREGROUND_COLOR
        CSS property for specifying the foreground color of a text cell editor on conversion error.
        See Also:
        Constant Field Values
      • VALIDATION_ERROR_FONT

        public static final String VALIDATION_ERROR_FONT
        CSS property for specifying the font of a text cell editor on validation error.
        See Also:
        Constant Field Values
      • VALIDATION_ERROR_FONT_FAMILY

        public static final String VALIDATION_ERROR_FONT_FAMILY
        CSS property for specifying the font family of a text cell editor on validation error.
        See Also:
        Constant Field Values
      • VALIDATION_ERROR_FONT_SIZE

        public static final String VALIDATION_ERROR_FONT_SIZE
        CSS property for specifying the font size of a text cell editor on validation error.
        See Also:
        Constant Field Values
      • VALIDATION_ERROR_FONT_STYLE

        public static final String VALIDATION_ERROR_FONT_STYLE
        CSS property for specifying the font style of a text cell editor on validation error.
        See Also:
        Constant Field Values
      • VALIDATION_ERROR_FONT_WEIGHT

        public static final String VALIDATION_ERROR_FONT_WEIGHT
        CSS property for specifying the font weight of a text cell editor on validation error.
        See Also:
        Constant Field Values
      • VALIDATION_ERROR_BACKGROUND_COLOR

        public static final String VALIDATION_ERROR_BACKGROUND_COLOR
        CSS property for specifying the background color of a text cell editor on validation error.
        See Also:
        Constant Field Values
      • VALIDATION_ERROR_FOREGROUND_COLOR

        public static final String VALIDATION_ERROR_FOREGROUND_COLOR
        CSS property for specifying the foreground color of a text cell editor on validation error.
        See Also:
        Constant Field Values
      • HIDE_INDICATOR_COLOR

        public static final String HIDE_INDICATOR_COLOR
        CSS property for the color of the hide indicator.
        Since:
        2.0
        See Also:
        Constant Field Values
      • HIDE_INDICATOR_WIDTH

        public static final String HIDE_INDICATOR_WIDTH
        CSS property for the width of the hide indicator.
        Since:
        2.0
        See Also:
        Constant Field Values
      • CV_BACKGROUND_PAINTER

        public static final String CV_BACKGROUND_PAINTER
        Context value key for background painter
        See Also:
        Constant Field Values
      • CV_DECORATOR_PAINTER

        public static final String CV_DECORATOR_PAINTER
        Context value key for decorator painter list
        See Also:
        Constant Field Values
      • CV_CONTENT_PAINTER

        public static final String CV_CONTENT_PAINTER
        Context value key for content painter
        See Also:
        Constant Field Values
      • CV_PAINTER_CONFIGURATION

        public static final String CV_PAINTER_CONFIGURATION
        Context value key for content painter configuration values
        See Also:
        Constant Field Values
      • CV_BORDER_CONFIGURATION

        public static final String CV_BORDER_CONFIGURATION
        Context value key for border properties
        See Also:
        Constant Field Values
      • CV_CONVERSION_ERROR_FONT_PROPERTIES

        public static final String CV_CONVERSION_ERROR_FONT_PROPERTIES
        Context value key for conversion error font properties
        See Also:
        Constant Field Values
      • CV_VALIDATION_ERROR_FONT_PROPERTIES

        public static final String CV_VALIDATION_ERROR_FONT_PROPERTIES
        Context value key for validation error font properties
        See Also:
        Constant Field Values
      • GRADIENT_BACKGROUND_VERTICAL

        public static final String GRADIENT_BACKGROUND_VERTICAL
        Painter properties key to store whether a GradientBackgroundPainter should sweep from top to bottom or from left to right.
        See Also:
        Constant Field Values
      • DECORATOR_SPACING

        public static final String DECORATOR_SPACING
        Painter properties key to store the decorator spacing used by the CellPainterDecorator.
        See Also:
        Constant Field Values
      • DECORATOR_EDGE

        public static final String DECORATOR_EDGE
        Painter properties key to store the decorator cell edge used by the CellPainterDecorator.
        See Also:
        Constant Field Values
      • DECORATOR_IMAGE

        public static final String DECORATOR_IMAGE
        Painter properties key to store the decorator image used by the CellPainterDecorator.
        See Also:
        Constant Field Values
      • PAINT_DECORATION_DEPENDENT

        public static final String PAINT_DECORATION_DEPENDENT
        Painter properties key to store the value for decorator dependent flag used by the CellPainterDecorator.
        See Also:
        Constant Field Values
      • CALCULATE_CELL_HEIGHT

        public static final String CALCULATE_CELL_HEIGHT
        Painter properties key to specify whether the cell/row height should be calculated dependent on the content. Default is false.
        See Also:
        Constant Field Values
      • CALCULATE_CELL_WIDTH

        public static final String CALCULATE_CELL_WIDTH
        Painter properties key to specify whether the cell/column width should be calculated dependent on the content. Default is false.
        See Also:
        Constant Field Values