PWButton
, PWCheckbox
, PWChooser
, PWColorChooser
, PWCombo
, PWLabel
, PWRadio
, PWScale
, PWSeparator
, PWSpinner
, PWText
, PWTextarea
public abstract class PWWidget
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
org.eclipse.swt.widgets.Control |
checkAndBuild(org.eclipse.swt.widgets.Composite parent) |
Check if the property can be binded to the widget, then build the widget
|
boolean |
enableOrDisable() |
Enable or disable the widget, depending on the associated enabler
|
int |
getAlignment() |
|
java.util.List<org.eclipse.swt.widgets.Control> |
getControls() |
|
int |
getHeight() |
|
int |
getIndent() |
|
java.lang.String |
getLabel() |
|
int |
getNumberOfColumns() |
|
int |
getWidth() |
|
boolean |
isGrabExcessSpace() |
|
boolean |
isSingleWidget() |
|
PWWidget |
setAlignment(int alignment) |
|
PWWidget |
setEnabler(Enabler enabler) |
|
PWWidget |
setGrabExcessSpace(boolean grabExcessSpace) |
|
PWWidget |
setHeight(int height) |
|
PWWidget |
setIndent(int indent) |
|
PWWidget |
setWidth(int width) |
public org.eclipse.swt.widgets.Control checkAndBuild(org.eclipse.swt.widgets.Composite parent)
parent
- parent compositepublic boolean enableOrDisable()
public int getAlignment()
public java.util.List<org.eclipse.swt.widgets.Control> getControls()
public boolean isGrabExcessSpace()
true
if the widget should grab the excess spacepublic int getHeight()
public int getIndent()
public java.lang.String getLabel()
null
)public int getNumberOfColumns()
public int getWidth()
public boolean isSingleWidget()
true
if the widget is "alone"public PWWidget setAlignment(int alignment)
alignment
- the alignment to set (GridData.BEGINNING,
GridData.CENTER, GridData.END, GridData.FILL)public PWWidget setEnabler(Enabler enabler)
enabler
- the enabler to setpublic PWWidget setGrabExcessSpace(boolean grabExcessSpace)
grabExcessSpace
- true if you want the widget to grab the excess
spacepublic PWWidget setHeight(int height)
height
- the height to setpublic PWWidget setIndent(int indent)
indent
- the indentation space to setpublic PWWidget setWidth(int width)
width
- the width to set