Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

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:

  • background-image : image url

    Icon image of the check box. The size of the image should be 13 x 13 pixels.

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:

  • background-image : image url

    Icon image of the radio button. The size of the image should be 13 x 13 pixels.

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.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire