Class PluginWidgetFactory

    • Constructor Detail

      • PluginWidgetFactory

        public PluginWidgetFactory​(org.eclipse.swt.widgets.Shell shell,
                                   org.pentaho.di.core.variables.VariableSpace varSpace)
                            throws IllegalArgumentException
        Constructor.
        Parameters:
        shell - the shell to set.
        varSpace - the variableSpace to be used. e.g. for TextVar
        Throws:
        IllegalArgumentException - if shell is null.
    • Method Detail

      • getMargin

        public int getMargin()
        Returns:
        the margin
      • setMargin

        public void setMargin​(int margin)
        Parameters:
        margin - the margin to set
      • getMiddle

        public int getMiddle()
        Returns:
        the middle
      • setMiddle

        public void setMiddle​(int middle)
        Parameters:
        middle - the middle to set
      • createRightLabel

        public org.eclipse.swt.widgets.Label createRightLabel​(String text)
        Create label.
        Parameters:
        text - text to set.
        Returns:
        new label.
      • createLabel

        public org.eclipse.swt.widgets.Label createLabel​(int style,
                                                         String text)
        Create label.
        Parameters:
        style - style to use.
        text - text to set.
        Returns:
        new label.
      • createLabelLayoutData

        public org.eclipse.swt.layout.FormData createLabelLayoutData​(org.eclipse.swt.widgets.Control topControl)
        Convenience method to create FormData for labels.
        Parameters:
        topControl - the control which is above the current label, or null if none above.
        Returns:
        layoutData.
      • createControlLayoutData

        public org.eclipse.swt.layout.FormData createControlLayoutData​(org.eclipse.swt.widgets.Control topControl)
        Convenience method to create FormData for Controls beside a label.
        Parameters:
        topControl - the control which is above the current label, or null if none above.
        Returns:
        layoutData.
      • createSingleTextLeft

        public org.eclipse.swt.widgets.Text createSingleTextLeft​(String text)
        Parameters:
        text - text to set.
        Returns:
        text widget.
      • createText

        public org.eclipse.swt.widgets.Text createText​(int style,
                                                       String text)
        Parameters:
        style - style to use.
        text - text to set.
        Returns:
        text widget.
      • createSingleTextVarLeft

        public TextVar createSingleTextVarLeft()
        Returns:
        new ...
      • createButton

        public org.eclipse.swt.widgets.Button createButton​(int style,
                                                           String text)
        Parameters:
        style - style to use.
        text - text to set.
        Returns:
        new button.
      • createPushButton

        public org.eclipse.swt.widgets.Button createPushButton​(String text)
        Parameters:
        text - text to set.
        Returns:
        new button.