Class PWTab
- java.lang.Object
-
- org.eclipse.nebula.widgets.opal.preferencewindow.PWContainer
-
- org.eclipse.nebula.widgets.opal.preferencewindow.PWTab
-
public class PWTab extends PWContainer
Instance of this class are tabs
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<PWRowGroup>childrenprivate org.eclipse.swt.graphics.Imageimageprivate java.lang.Stringtext
-
Constructor Summary
Constructors Constructor Description PWTab(org.eclipse.swt.graphics.Image image, java.lang.String text)Constructor
-
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 containerprivate intcomputeNumberOfColums()org.eclipse.swt.graphics.ImagegetImage()java.lang.StringgetText()
-
-
-
Field Detail
-
image
private final org.eclipse.swt.graphics.Image image
-
text
private final java.lang.String text
-
children
private final java.util.List<PWRowGroup> children
-
-
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)
-
computeNumberOfColums
private int computeNumberOfColums()
- Returns:
- the total number of columns in this tab
-
getImage
public org.eclipse.swt.graphics.Image getImage()
- Returns:
- the image associate to this tab
-
getText
public java.lang.String getText()
- Returns:
- the text associated to this tab
-
-