Package org.pentaho.di.ui.core
Class WidgetUtils
java.lang.Object
org.pentaho.di.ui.core.WidgetUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic ComboVar
createFieldDropDown
(org.eclipse.swt.widgets.Composite parentComposite, PropsUI props, org.pentaho.di.trans.step.BaseStepMeta stepMeta, org.eclipse.swt.layout.FormData formData) creates a ComboVar populated with fields from the previous step.static org.eclipse.swt.custom.CTabFolder
createTabFolder
(org.eclipse.swt.widgets.Composite composite, org.eclipse.swt.layout.FormData fd, String... titles) static org.eclipse.swt.layout.FormData
firstColumn
(org.eclipse.swt.widgets.Control top) static org.eclipse.swt.layout.FormData
formDataBelow
(org.eclipse.swt.widgets.Control anchorControl, int width, int pixelsBetweenAnchor) Creates a FormData object specifying placement below anchorControl, with pixelsBetweeenAnchor space between anchor and the control.static org.eclipse.swt.layout.FormData
secondColumn
(org.eclipse.swt.widgets.Control top) static void
setFormLayout
(org.eclipse.swt.widgets.Composite composite, int margin)
-
Method Details
-
setFormLayout
public static void setFormLayout(org.eclipse.swt.widgets.Composite composite, int margin) -
createFieldDropDown
public static ComboVar createFieldDropDown(org.eclipse.swt.widgets.Composite parentComposite, PropsUI props, org.pentaho.di.trans.step.BaseStepMeta stepMeta, org.eclipse.swt.layout.FormData formData) creates a ComboVar populated with fields from the previous step.- Parameters:
parentComposite
- - the composite in which the widget will be placedprops
- - PropsUI props for L&FstepMeta
- - stepMeta of the current stepformData
- - FormData to use for placement
-
formDataBelow
public static org.eclipse.swt.layout.FormData formDataBelow(org.eclipse.swt.widgets.Control anchorControl, int width, int pixelsBetweenAnchor) Creates a FormData object specifying placement below anchorControl, with pixelsBetweeenAnchor space between anchor and the control. -
createTabFolder
public static org.eclipse.swt.custom.CTabFolder createTabFolder(org.eclipse.swt.widgets.Composite composite, org.eclipse.swt.layout.FormData fd, String... titles) -
firstColumn
public static org.eclipse.swt.layout.FormData firstColumn(org.eclipse.swt.widgets.Control top) -
secondColumn
public static org.eclipse.swt.layout.FormData secondColumn(org.eclipse.swt.widgets.Control top)
-