public class PluginWidgetFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MARGIN
The margin.
|
static int |
DEFAULT_MIDDLE
The default middle.
|
static int |
DEFAULT_RIGHT_OFFSET |
| Constructor and Description |
|---|
PluginWidgetFactory(org.eclipse.swt.widgets.Shell shell,
org.pentaho.di.core.variables.VariableSpace varSpace)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.swt.widgets.Button |
createButton(int style,
String text) |
org.eclipse.swt.layout.FormData |
createControlLayoutData(org.eclipse.swt.widgets.Control topControl)
Convenience method to create FormData for Controls beside a label.
|
org.eclipse.swt.widgets.Label |
createLabel(int style,
String text)
Create label.
|
org.eclipse.swt.layout.FormData |
createLabelLayoutData(org.eclipse.swt.widgets.Control topControl)
Convenience method to create FormData for labels.
|
org.eclipse.swt.widgets.Button |
createPushButton(String text) |
org.eclipse.swt.widgets.Label |
createRightLabel(String text)
Create label.
|
org.eclipse.swt.widgets.Text |
createSingleTextLeft(String text) |
TextVar |
createSingleTextVarLeft() |
org.eclipse.swt.widgets.Text |
createText(int style,
String text) |
int |
getMargin() |
int |
getMiddle() |
void |
setMargin(int margin) |
void |
setMiddle(int middle) |
public static final int DEFAULT_MARGIN
public static final int DEFAULT_MIDDLE
public static final int DEFAULT_RIGHT_OFFSET
public PluginWidgetFactory(org.eclipse.swt.widgets.Shell shell,
org.pentaho.di.core.variables.VariableSpace varSpace)
throws IllegalArgumentException
shell - the shell to set.varSpace - the variableSpace to be used. e.g. for TextVarIllegalArgumentException - if shell is null.public int getMargin()
public void setMargin(int margin)
margin - the margin to setpublic int getMiddle()
public void setMiddle(int middle)
middle - the middle to setpublic org.eclipse.swt.widgets.Label createRightLabel(String text)
text - text to set.public org.eclipse.swt.widgets.Label createLabel(int style,
String text)
style - style to use.text - text to set.public org.eclipse.swt.layout.FormData createLabelLayoutData(org.eclipse.swt.widgets.Control topControl)
topControl - the control which is above the current label, or null if none above.public org.eclipse.swt.layout.FormData createControlLayoutData(org.eclipse.swt.widgets.Control topControl)
topControl - the control which is above the current label, or null if none above.public org.eclipse.swt.widgets.Text createSingleTextLeft(String text)
text - text to set.public org.eclipse.swt.widgets.Text createText(int style,
String text)
style - style to use.text - text to set.public TextVar createSingleTextVarLeft()
public org.eclipse.swt.widgets.Button createButton(int style,
String text)
style - style to use.text - text to set.public org.eclipse.swt.widgets.Button createPushButton(String text)
text - text to set.