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 "Scout/Concepts/GroupBox"
(→Description) |
(→Properties) |
||
Line 32: | Line 32: | ||
See also the {{ScoutLink|Concepts|Field|Field}} and the {{ScoutLink|Concepts|CompositeField|Composite field}} pages for the properties that all fields have in common. | See also the {{ScoutLink|Concepts|Field|Field}} and the {{ScoutLink|Concepts|CompositeField|Composite field}} pages for the properties that all fields have in common. | ||
+ | === Layout === | ||
+ | {{important|Required version|The BodyGrid property is included in Scout 4.0.0-M6 or bigger.}} | ||
+ | |||
+ | You can control the Layout with the property {{ScoutProp|BodyGrid}}. The default layout is '''vertical''' (first column top down and then next columns). | ||
+ | |||
+ | [[File:Scout Vertical GroupBox Grid.png]] | ||
+ | |||
+ | Corresponding code snippet: | ||
+ | <source lang="java"> | ||
+ | protected Class<? extends IGroupBoxBodyGrid> getConfiguredBodyGrid() { | ||
+ | return VerticalSmartGroupBoxBodyGrid.class; | ||
+ | } | ||
+ | </source> | ||
+ | |||
+ | An other Layout provided by Scout is '''horizontal''' (first row left to right and then next rows). | ||
+ | |||
+ | [[File:Scout Horizontal GroupBox Grid.png]] | ||
+ | |||
+ | Corresponding code snippet: | ||
+ | <source lang="java"> | ||
+ | protected Class<? extends IGroupBoxBodyGrid> getConfiguredBodyGrid() { | ||
+ | return HorizontalGroupBoxBodyGrid.class; | ||
+ | } | ||
+ | </source> | ||
== Events == | == Events == |
Latest revision as of 03:50, 14 March 2014
Scout |
Wiki Home |
Website |
Download • Git |
Community |
Forums • Blog • Twitter • G+ |
Bugzilla |
Bugzilla |
Type of composite field to group other fields.
Description
The GroupBox is a composite field to group Fields.
The GroupBox can have a title and one of 4 different designs:
- Default: The default design of a GroupBox
- Empty: No border and no title
- Line: Same as Default
- Section: The content can be hidden
Screenshot
RAP | SWT | Swing | Swing Rayo |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Properties
Defined with getConfiguredXxxxxx() methods.
See also the Field and the Composite field pages for the properties that all fields have in common.
Layout
You can control the Layout with the property BodyGrid. The default layout is vertical (first column top down and then next columns).
Corresponding code snippet:
protected Class<? extends IGroupBoxBodyGrid> getConfiguredBodyGrid() { return VerticalSmartGroupBoxBodyGrid.class; }
An other Layout provided by Scout is horizontal (first row left to right and then next rows).
Corresponding code snippet:
protected Class<? extends IGroupBoxBodyGrid> getConfiguredBodyGrid() { return HorizontalGroupBoxBodyGrid.class; }
Events
Defined with execXxxxxx() methods.
See also the Field and the Composite field pages for the events that all fields have in common.