Jump to: navigation, search

Scout/Concepts/GroupBox


Scout
Wiki Home
Website
DownloadGit
Community
ForumsBlogTwitter
Bugzilla
Bugzilla


Type of composite field to group other fields.

  • implements: I obj.pngIGroupBox
  • extends: C obj.pngAbstractGroupBox

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
Scout 3.8 GroupBox RAP.png Scout 3.8 GroupBox SWT.png Scout 3.8 GroupBox Swing.png Scout 3.8 GroupBox Swing Rayo.png

Properties

Defined with getConfiguredXxxxxx() methods.

See also the Field and the Composite field pages for the properties that all fields have in common.

Layout

Important.png
Required version
The BodyGrid property is included in Scout 4.0.0-M6 or bigger.


You can control the Layout with the property BodyGrid. The default layout is vertical (first column top down and then next columns).

Scout Vertical GroupBox Grid.png

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).

Scout Horizontal GroupBox Grid.png

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.


See Also