Class CommonStepDialog<StepMetaType extends CommonStepMeta>

  • Type Parameters:
    StepMetaType -
    All Implemented Interfaces:
    org.pentaho.di.trans.step.StepDialogInterface

    public abstract class CommonStepDialog<StepMetaType extends CommonStepMeta>
    extends BaseStepDialog
    implements org.pentaho.di.trans.step.StepDialogInterface
    A common implementation of the BaseStepDialog that creates many of the common UI components.
    • Field Detail

      • VAR_ICON_WIDTH

        protected static final int VAR_ICON_WIDTH
      • VAR_ICON_HEIGHT

        protected static final int VAR_ICON_HEIGHT
      • footerSpacer

        protected org.eclipse.swt.widgets.Label footerSpacer
      • headerSpacer

        protected org.eclipse.swt.widgets.Label headerSpacer
      • lsMod

        protected org.eclipse.swt.events.ModifyListener lsMod
      • m_wTabFolder

        protected org.eclipse.swt.custom.CTabFolder m_wTabFolder
    • Constructor Detail

      • CommonStepDialog

        public CommonStepDialog​(org.eclipse.swt.widgets.Shell parent,
                                Object meta,
                                org.pentaho.di.trans.TransMeta tr,
                                String sname)
    • Method Detail

      • initListenersImpl

        protected void initListenersImpl()
        Can be overridden to initialize additional listeners.
      • open

        public String open()
        Specified by:
        open in interface org.pentaho.di.trans.step.StepDialogInterface
      • buildPreHeader

        protected void buildPreHeader()
        Called at the top of buildHeader(), can be overridden to build additional "header" elements.
      • buildPostHeader

        protected void buildPostHeader()
        Called at the bottom of buildHeader(), can be overridden to build additional "header" elements.
      • buildBody

        protected abstract void buildBody()
      • buildPreFooter

        protected void buildPreFooter()
        Called at the top of buildFooter(), can be overridden to build additional "footer" elements.
      • buildPostFooter

        protected void buildPostFooter()
        Called at the bottom of buildFooter(), can be overridden to build additional "footer" elements.
      • buildPreviewButton

        protected org.eclipse.swt.widgets.Button buildPreviewButton()
      • buildGetFieldsButton

        protected org.eclipse.swt.widgets.Button buildGetFieldsButton​(org.eclipse.swt.widgets.Composite parent,
                                                                      org.eclipse.swt.events.SelectionAdapter listener)
      • buildCancelButton

        protected org.eclipse.swt.widgets.Button buildCancelButton()
      • buildOkButton

        protected org.eclipse.swt.widgets.Button buildOkButton()
      • fieldsExist

        protected boolean fieldsExist()
        To be overridden by a preview-capable dialog, returns true by default.
        Returns:
        true by default
      • updatePreviewButtonStatus

        protected void updatePreviewButtonStatus()
        To be overridden by a preview-capable step dialog.
      • updateGetFieldsButtonStatus

        protected void updateGetFieldsButtonStatus()
        Can be overridden by the implementing class, if the "Get fields" button is to be enabled only under certain conditions.
      • ok

        protected void ok()
      • cancel

        protected void cancel()
      • getImage

        protected org.eclipse.swt.graphics.Image getImage()
      • getPopulatedMeta

        protected abstract StepMetaType getPopulatedMeta()
        Returns a new instance of CommonStepDialog that is populated according to dialog selection.
        Returns:
        a new instance of CommonStepDialog that is populated according to dialog selection
      • populateMeta

        protected abstract void populateMeta​(StepMetaType meta)
        Creates a new instance of CommonStepDialog and populates it with provided data from the dialog.
        Parameters:
        meta - a new instance of CommonStepDialog
      • getTitle

        protected abstract String getTitle()
      • buildTabFolder

        protected org.eclipse.swt.custom.CTabFolder buildTabFolder()
      • layoutTabFolder

        protected void layoutTabFolder()
      • openDialog

        protected void openDialog​(String title,
                                  String message,
                                  int dialogType)
      • openPreviewError

        protected void openPreviewError()
      • openNoRowsToPreviewError

        protected void openNoRowsToPreviewError()
      • openNoFieldsDialog

        protected void openNoFieldsDialog()
      • openFieldsErrorDialog

        protected void openFieldsErrorDialog()