RWT Theming Reference > Button
Button
RWT Buttons, including push-buttons, toggle-buttons, radio-buttons and check-boxes.
Available CSS Properties
Properties that can be defined for this element:
-
background-color : color definition
Background color for buttons.
-
background-image : image url
Background image for buttons.
-
border : border definition
Border for buttons.
-
color : color definition
Text color for buttons.
-
font : font definition
Font for button text.
-
padding : box dimension
Padding (inner distance) for buttons.
-
spacing : dimension
Space between text and image.
Applicable SWT Styles
SWT style flags that can be referred to in a selector for this element
(as CSS attributes):
-
[BORDER]
Indicates that the button should have a border.
-
[CHECK]
Indicates that the button is a check box.
-
[FLAT]
Indicates that the button should have a flat appearance.
-
[PUSH]
Indicates that the button is a push button.
-
[RADIO]
Indicates that the button is a radio button.
-
[TOGGLE]
Indicates that the button is a toggle button.
Applicable States
Widget states that can be referred to in a selector for this element
(as CSS pseudo-classes):
-
:disabled
Applies for disabled buttons.
-
:hover
Applies while the user hovers over a button.
-
:pressed
Applies while a button is pressed.
-
:selected
Applies for selected TOGGLE, CHECK and RADIO buttons.
Button-CheckIcon
The icon to indicate the check and/or grayed state of a Button with style CHECK
Available CSS Properties
Properties that can be defined for this element:
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 when the button is disabled.
-
:grayed
Applies when the check box is grayed.
-
:hover
Applies while the user hovers over the check box.
-
:selected
Applies for checked check boxes.
Button-RadioIcon
The icon to indicate the selected state of a Button with style RADIO
Available CSS Properties
Properties that can be defined for this element:
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 when the button is disabled.
-
:hover
Applies while the user hovers over the radio button.
-
:selected
Applies for selected radio buttons.