Class CommonStepDialog<StepMetaType extends CommonStepMeta>
java.lang.Object
org.eclipse.swt.widgets.Dialog
org.pentaho.di.ui.trans.step.BaseStepDialog
org.pentaho.di.ui.trans.step.common.CommonStepDialog<StepMetaType>
- 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.-
Nested Class Summary
Nested classes/interfaces inherited from class org.pentaho.di.ui.trans.step.BaseStepDialog
BaseStepDialog.AddConnectionListener, BaseStepDialog.EditConnectionListener, BaseStepDialog.FieldsChoiceDialogProvider
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected org.eclipse.swt.widgets.Label
protected org.eclipse.swt.widgets.Label
protected static final int
protected org.eclipse.swt.events.ModifyListener
protected org.eclipse.swt.custom.CTabFolder
protected static final int
protected static final int
protected static final int
protected final StepMetaType
protected static final int
protected static final int
protected static final int
protected static final int
Fields inherited from class org.pentaho.di.ui.trans.step.BaseStepDialog
backupChanged, baseStepMeta, BUTTON_ALIGNMENT_CENTER, BUTTON_ALIGNMENT_LEFT, BUTTON_ALIGNMENT_RIGHT, buttonAlignment, changed, databaseDialog, fdCancel, fdCreate, fdGet, fdlStepname, fdOK, fdPreview, fdSQL, fdStepname, log, loggingObject, lsCancel, lsCreate, lsDef, lsGet, lsOK, lsPreview, lsResize, lsSQL, metaStore, props, repository, shell, stepMeta, stepname, transMeta, variables, wCancel, wCreate, wGet, wlStepname, wOK, wPreview, wSQL, wStepname
-
Constructor Summary
ConstructorDescriptionCommonStepDialog
(org.eclipse.swt.widgets.Shell parent, Object meta, org.pentaho.di.trans.TransMeta tr, String sname) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
protected org.eclipse.swt.widgets.Button
protected org.eclipse.swt.widgets.Button
buildGetFieldsButton
(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.events.SelectionAdapter listener) protected org.eclipse.swt.widgets.Button
protected void
Called at the bottom ofbuildFooter()
, can be overridden to build additional "footer" elements.protected void
Called at the bottom ofbuildHeader()
, can be overridden to build additional "header" elements.protected void
Called at the top ofbuildFooter()
, can be overridden to build additional "footer" elements.protected void
Called at the top ofbuildHeader()
, can be overridden to build additional "header" elements.protected org.eclipse.swt.widgets.Button
protected org.eclipse.swt.custom.CTabFolder
protected void
cancel()
protected boolean
To be overridden by a preview-capable dialog, returns true by default.abstract void
getData
(StepMetaType meta) Copy information from theCommonStepDialog
meta to the dialog fields.protected org.eclipse.swt.graphics.Image
getImage()
protected abstract StepMetaType
Returns a new instance ofCommonStepDialog
that is populated according to dialog selection.protected abstract String
getTitle()
protected void
Can be overridden to initialize additional listeners.protected void
protected void
ok()
open()
protected void
openDialog
(String title, String message, int dialogType) protected void
protected void
protected void
protected void
protected abstract void
populateMeta
(StepMetaType meta) Creates a new instance ofCommonStepDialog
and populates it with provided data from the dialog.protected void
Can be overridden by the implementing class, if the "Get fields" button is to be enabled only under certain conditions.protected void
To be overridden by a preview-capable step dialog.Methods inherited from class org.pentaho.di.ui.trans.step.BaseStepDialog
addConnectionLine, addConnectionLine, addConnectionLine, addConnectionLine, addDatabases, addDatabases, centerButtons, createHelpButton, dispose, generateFieldMapping, getButtonAlignment, getDatabaseDialog, getFieldsFromPrevious, getFieldsFromPrevious, getFieldsFromPrevious, getFieldsFromPrevious, getFieldsFromPrevious, getMetaStore, getModifyListenerTooltipText, getPathOf, getRepository, isBasic, isDebug, isDetailed, isRowLevel, leftAlignButtons, logBasic, logBasic, logDebug, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logMinimal, logRowlevel, logRowlevel, positionBottomButtons, positionBottomButtons, positionBottomLeftButtons, positionBottomRightButtons, reinitConnectionDropDown, rightAlignButtons, selectDatabase, setButtonPositions, setMetaStore, setMinimalShellHeight, setRepository, setShellImage, setSize, setSize, setSize, setSize, setTraverseOrder, showDbDialogUnlessCancelledOrValid, showDbExistsDialog, storeScreenSize, toString
Methods inherited from class org.eclipse.swt.widgets.Dialog
checkSubclass, getParent, getStyle, getText, setText
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.pentaho.di.trans.step.StepDialogInterface
setMetaStore, setRepository
-
Field Details
-
MARGIN_SIZE
protected static final int MARGIN_SIZE- See Also:
-
LABEL_SPACING
protected static final int LABEL_SPACING- See Also:
-
ELEMENT_SPACING
protected static final int ELEMENT_SPACING- See Also:
-
MEDIUM_FIELD
protected static final int MEDIUM_FIELD- See Also:
-
MEDIUM_SMALL_FIELD
protected static final int MEDIUM_SMALL_FIELD- See Also:
-
SMALL_FIELD
protected static final int SMALL_FIELD- See Also:
-
SHELL_WIDTH_OFFSET
protected static final int SHELL_WIDTH_OFFSET- See Also:
-
VAR_ICON_WIDTH
protected static final int VAR_ICON_WIDTH -
VAR_ICON_HEIGHT
protected static final int VAR_ICON_HEIGHT -
meta
-
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 Details
-
CommonStepDialog
-
-
Method Details
-
initListenersImpl
protected void initListenersImpl()Can be overridden to initialize additional listeners. -
open
- Specified by:
open
in interfaceorg.pentaho.di.trans.step.StepDialogInterface
-
buildPreHeader
protected void buildPreHeader()Called at the top ofbuildHeader()
, can be overridden to build additional "header" elements. -
buildPostHeader
protected void buildPostHeader()Called at the bottom ofbuildHeader()
, can be overridden to build additional "header" elements. -
buildBody
protected abstract void buildBody() -
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
Returns a new instance ofCommonStepDialog
that is populated according to dialog selection.- Returns:
- a new instance of
CommonStepDialog
that is populated according to dialog selection
-
populateMeta
Creates a new instance ofCommonStepDialog
and populates it with provided data from the dialog.- Parameters:
meta
- a new instance ofCommonStepDialog
-
getTitle
-
getData
Copy information from theCommonStepDialog
meta to the dialog fields. -
buildTabFolder
protected org.eclipse.swt.custom.CTabFolder buildTabFolder() -
layoutTabFolder
protected void layoutTabFolder() -
openDialog
-
openPreviewError
protected void openPreviewError() -
openNoRowsToPreviewError
protected void openNoRowsToPreviewError() -
openNoFieldsDialog
protected void openNoFieldsDialog() -
openFieldsErrorDialog
protected void openFieldsErrorDialog()
-