Package org.pentaho.di.ui.core.widget
Class WidgetBuilder<T extends org.eclipse.swt.widgets.Control>
java.lang.Object
org.pentaho.di.ui.core.widget.WidgetBuilder<T>
Builder class to simplify creation and layout of SWT controls.
To create a radio button inside of a composite and below a label, for example:
Button radioBtn = new WidgetBuilder
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbelow
(org.eclipse.swt.widgets.Control controlAbove, int margin) bottom
(int percentageOfParent, int marginPixels) build()
container
(org.eclipse.swt.widgets.Composite container) height
(int height) image
(org.eclipse.swt.graphics.Image image) left
(int percentageOfParent, int marginPixels) margin
(int width, int height) pdiVarControlFactory
(WidgetBuilder.PDIVarControlFactory<T> pdiVarControlFactory) right
(int percentageOfParent, int marginPixels) rightOf
(org.eclipse.swt.widgets.Control controlToLeft, int margin) space
(org.pentaho.di.core.variables.VariableSpace space) style
(int style) swtControlFactory
(WidgetBuilder.SWTControlFactory<T> swtControlFactory) top
(int percentageOfParent, int marginPixels) width
(int width)
-
Constructor Details
-
WidgetBuilder
public WidgetBuilder()
-
-
Method Details
-
below
-
rightOf
-
container
-
left
-
right
-
bottom
-
top
-
height
-
width
-
margin
-
style
-
text
-
image
-
items
-
props
-
space
-
swtControlFactory
- Parameters:
swtControlFactory
- , typically the constructor for the desired swt control. E.g. Button::new swtControlFactory OR pdiVarControlFactory must be set, but not both.
-
pdiVarControlFactory
public WidgetBuilder<T> pdiVarControlFactory(WidgetBuilder.PDIVarControlFactory<T> pdiVarControlFactory) - Parameters:
pdiVarControlFactory
- , typically the construtor for the desired pdi var control. E.g. ComboVar::new swtControlFactory OR pdiVarControlFactory must be set, but not both.
-
build
-