|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.ui.core.widget.PluginWidgetFactory
public class PluginWidgetFactory
Field Summary | |
---|---|
static int |
DEFAULT_MARGIN
The margin. |
static int |
DEFAULT_MIDDLE
The default middle. |
static int |
DEFAULT_RIGHT_OFFSET
|
Constructor Summary | |
---|---|
PluginWidgetFactory(Shell shell,
VariableSpace varSpace)
Constructor. |
Method Summary | |
---|---|
Button |
createButton(int style,
String text)
|
FormData |
createControlLayoutData(Control topControl)
Convenience method to create FormData for Controls beside a label. |
Label |
createLabel(int style,
String text)
Create label. |
FormData |
createLabelLayoutData(Control topControl)
Convenience method to create FormData for labels. |
Button |
createPushButton(String text)
|
Label |
createRightLabel(String text)
Create label. |
Text |
createSingleTextLeft(String text)
|
TextVar |
createSingleTextVarLeft()
|
Text |
createText(int style,
String text)
|
int |
getMargin()
|
int |
getMiddle()
|
void |
setMargin(int margin)
|
void |
setMiddle(int middle)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_MARGIN
public static final int DEFAULT_MIDDLE
public static final int DEFAULT_RIGHT_OFFSET
Constructor Detail |
---|
public PluginWidgetFactory(Shell shell, VariableSpace varSpace) throws IllegalArgumentException
shell
- the shell to set.varSpace
- the variableSpace to be used. e.g. for TextVar
IllegalArgumentException
- if shell is null.Method Detail |
---|
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 Label createRightLabel(String text)
text
- text to set.
public Label createLabel(int style, String text)
style
- style to use.text
- text to set.
public FormData createLabelLayoutData(Control topControl)
topControl
- the control which is above the current label, or null if none above.
public FormData createControlLayoutData(Control topControl)
topControl
- the control which is above the current label, or null if none above.
public Text createSingleTextLeft(String text)
text
- text to set.
public Text createText(int style, String text)
style
- style to use.text
- text to set.
public TextVar createSingleTextVarLeft()
public Button createButton(int style, String text)
style
- style to use.text
- text to set.
public Button createPushButton(String text)
text
- text to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |