Class WidgetUtils

java.lang.Object
org.pentaho.di.ui.core.WidgetUtils

public abstract class WidgetUtils extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 placed
      props - - PropsUI props for L&F
      stepMeta - - stepMeta of the current step
      formData - - 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)