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 Summary
Fields Modifier and Type Field Description static String
BACKGROUND_COLOR
CSS property for the NatTable background color.static String
BACKGROUND_IMAGE
CSS property for the NatTable background image.static String
BORDER
CSS property forCellStyleAttributes.BORDER_STYLE
.static String
BORDER_COLOR
CSS property forCellStyleAttributes.BORDER_STYLE
.static String
BORDER_MODE
CSS property forCellStyleAttributes.BORDER_STYLE
.static String
BORDER_STYLE
CSS property forCellStyleAttributes.BORDER_STYLE
.static String
BORDER_WIDTH
CSS property forCellStyleAttributes.BORDER_STYLE
.static String
CALCULATE_CELL_HEIGHT
Painter properties key to specify whether the cell/row height should be calculated dependent on the content.static String
CALCULATE_CELL_WIDTH
Painter properties key to specify whether the cell/column width should be calculated dependent on the content.static String
CELL_BACKGROUND_COLOR
CSS property forCellStyleAttributes.BACKGROUND_COLOR
.static String
CELL_BACKGROUND_IMAGE
CSS property for configuring a background based on an image.static String
COLUMN_WIDTH
CSS property to configure the column width.static String
CONVERSION_ERROR_BACKGROUND_COLOR
CSS property for specifying the background color of a text cell editor on conversion error.static String
CONVERSION_ERROR_FONT
CSS property for specifying the font of a text cell editor on conversion error.static String
CONVERSION_ERROR_FONT_FAMILY
CSS property for specifying the font family of a text cell editor on conversion error.static String
CONVERSION_ERROR_FONT_SIZE
CSS property for specifying the font size of a text cell editor on conversion error.static String
CONVERSION_ERROR_FONT_STYLE
CSS property for specifying the font style of a text cell editor on conversion error.static String
CONVERSION_ERROR_FONT_WEIGHT
CSS property for specifying the font weight of a text cell editor on conversion error.static String
CONVERSION_ERROR_FOREGROUND_COLOR
CSS property for specifying the foreground color of a text cell editor on conversion error.static String
CONVERTER
CSS property to configure the display converter.static String
CV_BACKGROUND_PAINTER
Context value key for background painterstatic String
CV_BORDER_CONFIGURATION
Context value key for border propertiesstatic String
CV_CONTENT_PAINTER
Context value key for content painterstatic String
CV_CONVERSION_ERROR_FONT_PROPERTIES
Context value key for conversion error font propertiesstatic String
CV_DECORATOR_PAINTER
Context value key for decorator painter liststatic String
CV_PAINTER_CONFIGURATION
Context value key for content painter configuration valuesstatic String
CV_VALIDATION_ERROR_FONT_PROPERTIES
Context value key for validation error font propertiesstatic String
DECORATION
CSS property to configure a decoration.static String
DECORATOR_EDGE
Painter properties key to store the decorator cell edge used by the CellPainterDecorator.static String
DECORATOR_IMAGE
Painter properties key to store the decorator image used by the CellPainterDecorator.static String
DECORATOR_SPACING
Painter properties key to store the decorator spacing used by the CellPainterDecorator.static String
FILL_HANDLE_BORDER
CSS property to specify the border of the fill drag handle.static String
FILL_HANDLE_COLOR
CSS property to specify the color of the fill drag handle.static String
FILL_REGION_BORDER
CSS property to specify the border style of the fill region.static String
FONT
CSS property forCellStyleAttributes.FONT
.static String
FONT_FAMILY
CSS property forCellStyleAttributes.FONT
.static String
FONT_SIZE
CSS property forCellStyleAttributes.FONT
.static String
FONT_STYLE
CSS property forCellStyleAttributes.FONT
.static String
FONT_WEIGHT
CSS property forCellStyleAttributes.FONT
.static String
FOREGROUND_COLOR
CSS property forCellStyleAttributes.FOREGROUND_COLOR
.static String
FREEZE_SEPARATOR_COLOR
CSS property for the color of the freeze separator.static String
FREEZE_SEPARATOR_WIDTH
CSS property for the width of the freeze separator.static String
GRADIENT_BACKGROUND_VERTICAL
Painter properties key to store whether a GradientBackgroundPainter should sweep from top to bottom or from left to right.static String
GRID_LINE_COLOR
CSS property for the color of the grid lines.static String
GRID_LINE_WIDTH
CSS property for the width of the grid lines.static String
HIDE_INDICATOR_COLOR
CSS property for the color of the hide indicator.static String
HIDE_INDICATOR_WIDTH
CSS property for the width of the hide indicator.static String
HORIZONTAL_ALIGNMENT
CSS property forCellStyleAttributes.HORIZONTAL_ALIGNMENT
.static String
IMAGE
CSS property forCellStyleAttributes.IMAGE
.static String
INVERT_ICONS
CSS property to configure whether default decorator icons should be inverted.static String
LINE_SPACING
CSS property to specify an additional spacing between lines in a text.static String
PADDING
CSS property to specify cell padding.static String
PADDING_BOTTOM
CSS property to specify the bottom padding of a cell.static String
PADDING_LEFT
CSS property to specify the left padding of a cell.static String
PADDING_RIGHT
CSS property to specify the right padding of a cell.static String
PADDING_TOP
CSS property to specify the top padding of a cell.static String
PAINT_DECORATION_DEPENDENT
Painter properties key to store the value for decorator dependent flag used by the CellPainterDecorator.static String
PAINTER
CSS property for configuring the painter.static String
PAINTER_RESOLUTION
CSS property for enabling/disabling the automatic painter resolution based on CSS properties.static String
PASSWORD_ECHO_CHAR
CSS property forCellStyleAttributes.PASSWORD_ECHO_CHAR
.static String
PERCENTAGE_DECORATOR_COLORS
CSS property for configuring the colors to use with the PercentageBarDecorator.static String
RENDER_GRID_LINES
CSS property to specify whether grid lines should be rendered or not.static String
ROW_HEIGHT
CSS property to configure the row height.static String
TABLE_BORDER_COLOR
CSS property to specify the border color that is applied around the NatTable.static String
TEXT_DECORATION
CSS property forCellStyleAttributes.TEXT_DECORATION
.static String
TEXT_DIRECTION
CSS property to specify whether text should be rendered horizontally or vertically.static String
TEXT_TRIM
CSS property to specify whether text should be trimmed on rendering words or not.static String
TEXT_WRAP
CSS property to specify whether text should automatically wrapped between words or not.static String
TREE_STRUCTURE_PAINTER
CSS property for configuring the tree structure painter.static String
VALIDATION_ERROR_BACKGROUND_COLOR
CSS property for specifying the background color of a text cell editor on validation error.static String
VALIDATION_ERROR_FONT
CSS property for specifying the font of a text cell editor on validation error.static String
VALIDATION_ERROR_FONT_FAMILY
CSS property for specifying the font family of a text cell editor on validation error.static String
VALIDATION_ERROR_FONT_SIZE
CSS property for specifying the font size of a text cell editor on validation error.static String
VALIDATION_ERROR_FONT_STYLE
CSS property for specifying the font style of a text cell editor on validation error.static String
VALIDATION_ERROR_FONT_WEIGHT
CSS property for specifying the font weight of a text cell editor on validation error.static String
VALIDATION_ERROR_FOREGROUND_COLOR
CSS property for specifying the foreground color of a text cell editor on validation error.static String
VERTICAL_ALIGNMENT
CSS property forCellStyleAttributes.VERTICAL_ALIGNMENT
.static String
WORD_WRAP
CSS property to specify whether words should automatically or not.
-
-
-
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 toPAINTER
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_COLOR
public static final String CELL_BACKGROUND_COLOR
CSS property forCellStyleAttributes.BACKGROUND_COLOR
.- 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
-
FOREGROUND_COLOR
public static final String FOREGROUND_COLOR
CSS property forCellStyleAttributes.FOREGROUND_COLOR
.- See Also:
- Constant Field Values
-
HORIZONTAL_ALIGNMENT
public static final String HORIZONTAL_ALIGNMENT
CSS property forCellStyleAttributes.HORIZONTAL_ALIGNMENT
.- See Also:
- Constant Field Values
-
VERTICAL_ALIGNMENT
public static final String VERTICAL_ALIGNMENT
CSS property forCellStyleAttributes.VERTICAL_ALIGNMENT
.- See Also:
- Constant Field Values
-
FONT
public static final String FONT
CSS property forCellStyleAttributes.FONT
.- See Also:
- Constant Field Values
-
FONT_FAMILY
public static final String FONT_FAMILY
CSS property forCellStyleAttributes.FONT
.- See Also:
- Constant Field Values
-
FONT_SIZE
public static final String FONT_SIZE
CSS property forCellStyleAttributes.FONT
.- See Also:
- Constant Field Values
-
FONT_STYLE
public static final String FONT_STYLE
CSS property forCellStyleAttributes.FONT
.- See Also:
- Constant Field Values
-
FONT_WEIGHT
public static final String FONT_WEIGHT
CSS property forCellStyleAttributes.FONT
.- See Also:
- Constant Field Values
-
IMAGE
public static final String IMAGE
CSS property forCellStyleAttributes.IMAGE
. Triggers the usage of the ImagePainter.- See Also:
- Constant Field Values
-
BORDER
public static final String BORDER
CSS property forCellStyleAttributes.BORDER_STYLE
. Triggers the usage of the LineBorderDecorator.- See Also:
- Constant Field Values
-
BORDER_COLOR
public static final String BORDER_COLOR
CSS property forCellStyleAttributes.BORDER_STYLE
. Triggers the usage of the LineBorderDecorator.- See Also:
- Constant Field Values
-
BORDER_STYLE
public static final String BORDER_STYLE
CSS property forCellStyleAttributes.BORDER_STYLE
. Triggers the usage of the LineBorderDecorator.- See Also:
- Constant Field Values
-
BORDER_WIDTH
public static final String BORDER_WIDTH
CSS property forCellStyleAttributes.BORDER_STYLE
. Triggers the usage of the LineBorderDecorator.- See Also:
- Constant Field Values
-
BORDER_MODE
public static final String BORDER_MODE
CSS property forCellStyleAttributes.BORDER_STYLE
. Triggers the usage of the LineBorderDecorator.Available values:
centered, internal, external
- Since:
- 1.1
- See Also:
- Constant Field Values
-
PASSWORD_ECHO_CHAR
public static final String PASSWORD_ECHO_CHAR
CSS property forCellStyleAttributes.PASSWORD_ECHO_CHAR
. Does not trigger the usage of the PasswordTextPainter. This needs to be done via additionalIConfiguration
or painter CSS property.- See Also:
- Constant Field Values
-
TEXT_DECORATION
public static final String TEXT_DECORATION
CSS property forCellStyleAttributes.TEXT_DECORATION
.Available values:
none, underline, line-through
Combinations are possible via space separated list.
- 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 isfalse
.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 isfalse
.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 istrue
.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 ishorizontal
.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 isfalse
.- 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 isfalse
.- See Also:
- Constant Field Values
-
-