Skip to main content
Jump to: navigation, search

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
DownloadGit
Community
ForumsBlogTwitterG+
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

Copyright © Eclipse Foundation, Inc. All Rights Reserved.