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.
Difference between revisions of "Nebula CheckboxGroup"
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [[Nebula|< Back to Nebula Main Page]] | ||
+ | |||
=Introduction= | =Introduction= | ||
Line 4: | Line 6: | ||
[[File:CheckBoxGroup2.png]] | [[File:CheckBoxGroup2.png]] | ||
− | + | This widget with a checkbox. When one clicks on the checkbox, the whole content of the group is deactivated. | |
__TOC__ | __TOC__ | ||
Line 13: | Line 15: | ||
* The checkbox that activates/deactivates the content | * The checkbox that activates/deactivates the content | ||
− | ** You can set/get the text and the font of the checkbox | + | ** You can set/get the text and the font of the checkbox (by calling the methods <code>setText()</code> and <code>setFont()</code> |
** You can get the value of the selection by using the getter <pre>boolean isActivated()</pre> | ** You can get the value of the selection by using the getter <pre>boolean isActivated()</pre> | ||
** You can set the state of this checkbox (and thus enable or disable the content of the group) by using the methods <pre>activate()</pre> and <pre>deactivate()</pre> | ** You can set the state of this checkbox (and thus enable or disable the content of the group) by using the methods <pre>activate()</pre> and <pre>deactivate()</pre> | ||
Line 19: | Line 21: | ||
** Use this composite to store elements | ** Use this composite to store elements | ||
− | Example | + | =Example= |
An example called '''SnippetCheckBoxGroup''' is available in the plug_in '''org.eclipse.nebula.widgets.opal.checkboxgroup.snippets'''. | An example called '''SnippetCheckBoxGroup''' is available in the plug_in '''org.eclipse.nebula.widgets.opal.checkboxgroup.snippets'''. | ||
− | This example is also available here : https:// | + | This example is also available here : [https://github.com/eclipse/nebula/blob/master/widgets/opal/checkboxgroup/org.eclipse.nebula.widgets.opal.checkboxgroup.snippets/src/org/eclipse/nebula/widgets/opal/checkboxgroup/snippets/SnippetCheckBoxGroup.java SnippetCheckBoxGroup.java] |
Latest revision as of 06:13, 19 March 2020
Introduction
This widget with a checkbox. When one clicks on the checkbox, the whole content of the group is deactivated.
Contents
Usage
This widget is divided in 2 parts :
- The checkbox that activates/deactivates the content
- You can set/get the text and the font of the checkbox (by calling the methods
setText()
andsetFont()
- You can get the value of the selection by using the getter
boolean isActivated()
- You can set the state of this checkbox (and thus enable or disable the content of the group) by using the methods
activate()
anddeactivate()
- You can set/get the text and the font of the checkbox (by calling the methods
- The content, which is a Composite, is accessible with the getter
getContent()
- Use this composite to store elements
Example
An example called SnippetCheckBoxGroup is available in the plug_in org.eclipse.nebula.widgets.opal.checkboxgroup.snippets.
This example is also available here : SnippetCheckBoxGroup.java