Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Nebula NebulaRoundedCheckBox

< Back to Nebula Main Page

Introduction

RoundedCheckbox.png

This widget is a checkbox widget with a new look.

It has the same API than the Button widget API, but the look is different.

Please notice that the widget only consists in a checkbox without text. You can not setText(something), you have to create a Label widget besides the checkbox.

Usage

You use this widget like a Button with SWT.CHECKBOX style :

 final RoundedCheckbox button = new RoundedCheckbox(shell, SWT.NONE);
 button.setSelection(true);
 

This widget accepts TRI-STATE :

 final RoundedCheckbox button = new RoundedCheckbox(shell, SWT.NONE);
 button.setSelection(true);
 button.setGrayed(true);
 button.setEnabled(false);


And voilà, it is done !


Examples

An example called RoundedCheckBoxSnippet.java is located in the plugin org.eclipse.nebula.widgets.roundedcheckbox.snippets.

This example is also available here : RoundedCheckBoxSnippet.java

Back to the top