Class PWGroup
- java.lang.Object
-
- org.eclipse.nebula.widgets.opal.preferencewindow.PWContainer
-
- org.eclipse.nebula.widgets.opal.preferencewindow.PWRowGroup
-
- org.eclipse.nebula.widgets.opal.preferencewindow.PWGroup
-
public class PWGroup extends PWRowGroup
Instances of this class are groups
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<PWRow>childrenprivate booleanhasBorderprivate java.lang.Stringlabel-
Fields inherited from class org.eclipse.nebula.widgets.opal.preferencewindow.PWRowGroup
enabler, numberOfColumns, parent, parentNumberOfColums
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PWContaineradd(PWContainer element)Add a container to the current elementPWContaineradd(PWWidget widget)Add a widget to the current elementvoidbuild(org.eclipse.swt.widgets.Composite parent)Build the content of the containerprotected voidcheckParent(PWContainer parent)Check if the parent is compatible with the objectprivate intcomputeNumberOfColumns()voidenableOrDisable()Enables or disables all elements stored in this group or rowprivate voidenableOrDisable(PWRow row, boolean enabled)Enable or disable a row-
Methods inherited from class org.eclipse.nebula.widgets.opal.preferencewindow.PWRowGroup
addColumn, getNumberOfColums, setEnabler, setParent, setParentNumberOfColumns
-
-
-
-
Field Detail
-
label
private final java.lang.String label
-
hasBorder
private final boolean hasBorder
-
children
private final java.util.List<PWRow> children
-
-
Constructor Detail
-
PWGroup
public PWGroup(boolean hasBorder)
Constructor- Parameters:
hasBorder- iftrue, the group has a border
-
PWGroup
public PWGroup(java.lang.String label)
Constructor- Parameters:
label- label associated to the group
-
PWGroup
public PWGroup(java.lang.String label, boolean hasBorder)Constructor- Parameters:
label- label associated to the grouphasBorder- iftrue, the group has a border
-
-
Method Detail
-
add
public PWContainer add(PWContainer element)
Description copied from class:PWContainerAdd a container to the current element- Specified by:
addin classPWContainer- Parameters:
element- element to add- Returns:
- the container
- See Also:
PWContainer.add(org.eclipse.nebula.widgets.opal.preferencewindow.PWContainer)
-
add
public PWContainer add(PWWidget widget)
Description copied from class:PWContainerAdd a widget to the current element- Specified by:
addin classPWContainer- Parameters:
widget- widget to add- Returns:
- the container
- See Also:
PWContainer.add(org.eclipse.nebula.widgets.opal.preferencewindow.widgets.PWWidget)
-
build
public void build(org.eclipse.swt.widgets.Composite parent)
Description copied from class:PWContainerBuild the content of the container- Specified by:
buildin classPWContainer- Parameters:
parent- parent composite- See Also:
PWContainer.build(org.eclipse.swt.widgets.Composite)
-
computeNumberOfColumns
private int computeNumberOfColumns()
- Returns:
-
checkParent
protected void checkParent(PWContainer parent)
Description copied from class:PWRowGroupCheck if the parent is compatible with the object- Specified by:
checkParentin classPWRowGroup- Parameters:
parent- parent to check- See Also:
PWRowGroup.checkParent(org.eclipse.nebula.widgets.opal.preferencewindow.PWContainer)
-
enableOrDisable
public void enableOrDisable()
Description copied from class:PWRowGroupEnables or disables all elements stored in this group or row- Specified by:
enableOrDisablein classPWRowGroup- See Also:
PWRowGroup.enableOrDisable()
-
enableOrDisable
private void enableOrDisable(PWRow row, boolean enabled)
Enable or disable a row- Parameters:
row- row to enable or disableenabled- enable flag
-
-