-
Notifications
You must be signed in to change notification settings - Fork 32
Checkboxgroup
lcaron edited this page Jul 5, 2015
·
1 revision
A group with a checkbox. When one clicks on the checkbox, the whole content of the group is deactivated.
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
- 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 methode
activate()
anddeactivate()
- The content, which is a
Composite
, accessible with the gettergetContent()
- Use this composite to store elements
An example called SnippetCheckBoxGroup is available in the directory src/test/java/org/mihalis/opal/checkBoxGroup.
This example is also available here : https://github.com/lcaron/opal/blob/master/src/test/java/org/mihalis/opal/checkBoxGroup/SnippetCheckBoxGroup.java