Class SettingGroup
java.lang.Object
com.motivewave.platform.sdk.common.desc.SettingGroup
Identifies a set of inputs that are to be arranged as a group when
displaying the configuration dialog to the end user.
The input group consists of a series of row. By default each
input element is placed on a separate row (in the order in which
they are given). To place more than one element on the same row,
pass multiple setting descriptors to the addRow method.
-
Constructor Summary
ConstructorDescriptionSettingGroup
(String name) Creates a SettingGroup with the given name.SettingGroup
(String name, boolean gridLayout) Creates a SettingGroup with the given name and grid layout setting. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRow
(SettingDescriptor... row) Adds a row with 1 or more inputs.getName()
getRows()
Gets the rows in this group (each row may contain 1 or more inputs)boolean
Determines if a grid layout (default true) should be used instead of a label/horizontal box layout should be usedvoid
setGridLayout
(boolean b) Sets the grid layout attribute for the form.
-
Constructor Details
-
SettingGroup
Creates a SettingGroup with the given name. -
SettingGroup
Creates a SettingGroup with the given name and grid layout setting.
-
-
Method Details
-
getName
- Returns:
- the name of the group (displayed in the Study Dialog.
-
addRow
Adds a row with 1 or more inputs. -
getRows
Gets the rows in this group (each row may contain 1 or more inputs) -
isGridLayout
public boolean isGridLayout()Determines if a grid layout (default true) should be used instead of a label/horizontal box layout should be used- Returns:
- true if a grid layout is used for the form (default true)
-
setGridLayout
public void setGridLayout(boolean b) Sets the grid layout attribute for the form.- Parameters:
b
- true if grid layout should be used
-