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>
children
private org.eclipse.swt.graphics.Image
image
private java.lang.String
text
-
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 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 containerprivate int
computeNumberOfColums()
org.eclipse.swt.graphics.Image
getImage()
java.lang.String
getText()
-
-
-
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: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)
-
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
-
-