Class NatTableCSSConstants

java.lang.Object
org.eclipse.nebula.widgets.nattable.extension.e4.css.NatTableCSSConstants

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

    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • CELL_BACKGROUND_COLOR

      public static final String CELL_BACKGROUND_COLOR
      See Also:
    • CELL_BACKGROUND_IMAGE

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

      public static final String FOREGROUND_COLOR
      See Also:
    • HORIZONTAL_ALIGNMENT

      public static final String HORIZONTAL_ALIGNMENT
      See Also:
    • VERTICAL_ALIGNMENT

      public static final String VERTICAL_ALIGNMENT
      See Also:
    • FONT

      public static final String FONT
      CSS property for CellStyleAttributes.FONT.
      See Also:
    • FONT_FAMILY

      public static final String FONT_FAMILY
      CSS property for CellStyleAttributes.FONT.
      See Also:
    • FONT_SIZE

      public static final String FONT_SIZE
      CSS property for CellStyleAttributes.FONT.
      See Also:
    • FONT_STYLE

      public static final String FONT_STYLE
      CSS property for CellStyleAttributes.FONT.
      See Also:
    • FONT_WEIGHT

      public static final String FONT_WEIGHT
      CSS property for CellStyleAttributes.FONT.
      See Also:
    • IMAGE

      public static final String IMAGE
      CSS property for CellStyleAttributes.IMAGE. Triggers the usage of the ImagePainter.
      See Also:
    • BORDER

      public static final String BORDER
      CSS property for CellStyleAttributes.BORDER_STYLE. Triggers the usage of the LineBorderDecorator.
      See Also:
    • BORDER_COLOR

      public static final String BORDER_COLOR
      CSS property for CellStyleAttributes.BORDER_STYLE. Triggers the usage of the LineBorderDecorator.
      See Also:
    • BORDER_STYLE

      public static final String BORDER_STYLE
      CSS property for CellStyleAttributes.BORDER_STYLE. Triggers the usage of the LineBorderDecorator.
      See Also:
    • BORDER_WIDTH

      public static final String BORDER_WIDTH
      CSS property for CellStyleAttributes.BORDER_STYLE. Triggers the usage of the LineBorderDecorator.
      See Also:
    • BORDER_MODE

      public static final String BORDER_MODE
      CSS property for CellStyleAttributes.BORDER_STYLE. Triggers the usage of the LineBorderDecorator.

      Available values: centered, internal, external

      Since:
      1.1
      See Also:
    • PASSWORD_ECHO_CHAR

      public static final String PASSWORD_ECHO_CHAR
      CSS property for CellStyleAttributes.PASSWORD_ECHO_CHAR. Does not trigger the usage of the PasswordTextPainter. This needs to be done via additional IConfiguration or painter CSS property.
      See Also:
    • TEXT_DECORATION

      public static final String TEXT_DECORATION
      CSS property for CellStyleAttributes.TEXT_DECORATION.

      Available values: none, underline, line-through

      Combinations are possible via space separated list.

      See Also:
    • FREEZE_SEPARATOR_COLOR

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

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

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

      public static final String GRID_LINE_WIDTH
      CSS property for the width of the grid lines.
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • FILL_REGION_BORDER

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

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

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

      public static final String PADDING
      CSS property to specify cell padding. Triggers usage of the PaddingDecorator if painter resolution is enabled.
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
    • PERCENTAGE_DECORATOR_COLORS

      public static final String PERCENTAGE_DECORATOR_COLORS
      CSS property for configuring the colors to use with the PercentageBarDecorator.
      See Also:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • HIDE_INDICATOR_COLOR

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

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

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

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

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

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

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

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

      public static final String CV_VALIDATION_ERROR_FONT_PROPERTIES
      Context value key for validation error font properties
      See Also:
    • 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:
    • DECORATOR_SPACING

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

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

      public static final String DECORATOR_IMAGE
      Painter properties key to store the decorator image used by the CellPainterDecorator.
      See Also:
    • 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:
    • 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:
    • 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: