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>
children
private boolean
hasBorder
private java.lang.String
label
-
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 PWContainer
add(PWContainer element)
Add a container to the current elementPWContainer
add(PWWidget widget)
Add a widget to the current elementvoid
build(org.eclipse.swt.widgets.Composite parent)
Build the content of the containerprotected void
checkParent(PWContainer parent)
Check if the parent is compatible with the objectprivate int
computeNumberOfColumns()
void
enableOrDisable()
Enables or disables all elements stored in this group or rowprivate void
enableOrDisable(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:PWContainer
Add a container to the current element- Specified by:
add
in 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:PWContainer
Add a widget to the current element- Specified by:
add
in 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:PWContainer
Build the content of the container- Specified by:
build
in 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:PWRowGroup
Check if the parent is compatible with the object- Specified by:
checkParent
in 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:PWRowGroup
Enables or disables all elements stored in this group or row- Specified by:
enableOrDisable
in 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
-
-