Class WidgetUtils


  • public abstract class WidgetUtils
    extends Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      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)  
    • Method Detail

      • 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)