RWT Theming Reference > Table

## Table

### Available CSS Properties

Properties that can be defined for this element:

- background-color

  Background color for tables.

- background-image

  Background image or gradient for table client area.

- border

  The border around the table including header.

- color

  Text color for tables.

- font

  Font for tables.

### Applicable SWT Styles

SWT style flags that can be referred to in a selector for this element (as CSS attributes):

- [BORDER]

  Indicates that the table should have a border.

### Applicable States

Widget states that can be referred to in a selector for this element (as CSS pseudo-classes):

- :disabled

  Applies to disabled tables.

- :linesvisible

  Applies to a table with gridlines.

## TableItem

Item elements of table controls

### Available CSS Properties

Properties that can be defined for this element:

- background-color

  Table item background color

- background-image

  Tree item background image/gradient

- color

  Table item text color

- text-decoration

  Decoration for item text.

- text-shadow

  Shadow for item text.

### Applicable SWT Styles

none

### Applicable States

Widget states that can be referred to in a selector for this element (as CSS pseudo-classes):

- :disabled

  Applies to the items of a disabled table.

- :even

  Applies when the table item has an even index

- :hover

  Applies while the user hovers over the table item.

- :linesvisible

  Applies to the items of a table with gridlines.

- :selected

  Applies when table item is selected.

- :unfocused

  Applies to items on unfocused table.

## Table-RowOverlay

Item overlay that can be used to overwrite the items own colors

### Available CSS Properties

Properties that can be defined for this element:

- background-color

  Table item background color

- background-image

  Tree item background image/gradient

- color

  Table item text color

### Applicable SWT Styles

none

### Applicable States

Widget states that can be referred to in a selector for this element (as CSS pseudo-classes):

- :disabled

  Applies to the items of a disabled table.

- :even

  Applies when the table item has an even index

- :hover

  Applies while the user hovers over the table item.

- :linesvisible

  Applies to the items of a table with gridlines.

- :selected

  Applies when table item is selected.

- :unfocused

  Applies to items on unfocused table.

## TableColumn

Column header of Table controls

### Available CSS Properties

Properties that can be defined for this element:

- background-color

  Background color for table column headers

- background-image

  Background image or gradient for TableColumn.

- border-bottom

  Border for TableColumn bottom line.

- color

  Text color for table column headers

- font

  Font for table column headers

- padding

  Padding for table columns.

- text-shadow

  Shadow for table columns.

### Applicable SWT Styles

none

### Applicable States

Widget states that can be referred to in a selector for this element (as CSS pseudo-classes):

- :disabled

  Reflects Table#setEnabled()

- :hover

  On mouse over

## TableColumn-SortIndicator

Sort indicators in Table column headers

### Available CSS Properties

Properties that can be defined for this element:

- background-image

  Indicator image for table sorting (up/down)

### Applicable SWT Styles

none

### Applicable States

Widget states that can be referred to in a selector for this element (as CSS pseudo-classes):

- :down

  On sorting down

- :up

  On sorting up

## Table-Cell

A single cell in a multi-column Table.

### Available CSS Properties

Properties that can be defined for this element:

- padding

  Defines the padding (i.e. the inner distance between border and content) for a table cell.

- spacing

  Defines the spacing between image and text within a table cell.

### Applicable SWT Styles

none

### Applicable States

none

## Table-GridLine

Grid lines in Table controls

### Available CSS Properties

Properties that can be defined for this element:

- color

  Grid line color when linesVisible is true

### Applicable SWT Styles

none

### Applicable States

Widget states that can be referred to in a selector for this element (as CSS pseudo-classes):

- :horizontal

  Applies for horizontal grid lines.

- :vertical

  Applies for vertical grid lines.

## Table-Checkbox

Checkboxes in Table controls

### Available CSS Properties

Properties that can be defined for this element:

- background-image

  Background image for the table checkbox. The size of the image should be 13 x 13 pixels.

- margin

  Space around the check boxes

- width

  Width of check boxes (deprecated, use margin instead)

### Applicable SWT Styles

none

### Applicable States

Widget states that can be referred to in a selector for this element (as CSS pseudo-classes):

- :checked

  When table checkbox is checked

- :disabled

  Applies to the items of a disabled table.

- :grayed

  When table checkbox is grayed

- :hover

  Applies while the user hovers over a table check box.