Class PWRowGroup
java.lang.Object
org.eclipse.nebula.widgets.opal.preferencewindow.PWContainer
org.eclipse.nebula.widgets.opal.preferencewindow.PWRowGroup
public abstract class PWRowGroup extends PWContainer
Abstract class for both row and groups
-
Field Summary
Fields Modifier and Type Field Description protected Enablerenablerprotected intnumberOfColumnsprotected PWContainerparentprotected intparentNumberOfColums -
Constructor Summary
Constructors Constructor Description PWRowGroup() -
Method Summary
Modifier and Type Method Description voidaddColumn(int number)Add a column to the current elementprotected abstract voidcheckParent(PWContainer parent)Check if the parent is compatible with the objectabstract voidenableOrDisable()Enables or disables all elements stored in this group or rowintgetNumberOfColums()PWRowGroupsetEnabler(Enabler enabler)voidsetParent(PWContainer parent)voidsetParentNumberOfColumns(int numberOfColumns)Methods inherited from class org.eclipse.nebula.widgets.opal.preferencewindow.PWContainer
add, add, build
-
Field Details
-
numberOfColumns
protected int numberOfColumns -
parentNumberOfColums
protected int parentNumberOfColums -
parent
-
enabler
-
-
Constructor Details
-
PWRowGroup
public PWRowGroup()
-
-
Method Details
-
checkParent
Check if the parent is compatible with the object- Parameters:
parent- parent to check- Throws:
java.lang.UnsupportedOperationException- if the parent is not compatible with the object
-
enableOrDisable
public abstract void enableOrDisable()Enables or disables all elements stored in this group or row -
addColumn
public void addColumn(int number)Add a column to the current element- Parameters:
number- number of column to add
-
getNumberOfColums
public int getNumberOfColums()- Returns:
- the number of columns of this group or row
-
setEnabler
- Parameters:
enabler- the enabler to set
-
setParent
- Parameters:
parent- the parent to set
-
setParentNumberOfColumns
public void setParentNumberOfColumns(int numberOfColumns)- Parameters:
numberOfColumns- the number of columns of the parent
-