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
FieldsModifier and TypeFieldDescriptionprotected static final intprotected org.eclipse.swt.widgets.Labelprotected org.eclipse.swt.widgets.Labelprotected static final intprotected org.eclipse.swt.events.ModifyListenerprotected org.eclipse.swt.custom.CTabFolderprotected static final intprotected static final intprotected static final intprotected final StepMetaTypeprotected static final intprotected static final intprotected static final intprotected static final intFields 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
ConstructorsConstructorDescriptionCommonStepDialog(org.eclipse.swt.widgets.Shell parent, Object meta, org.pentaho.di.trans.TransMeta tr, String sname) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidprotected org.eclipse.swt.widgets.Buttonprotected org.eclipse.swt.widgets.ButtonbuildGetFieldsButton(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.events.SelectionAdapter listener) protected org.eclipse.swt.widgets.Buttonprotected voidCalled at the bottom ofbuildFooter(), can be overridden to build additional "footer" elements.protected voidCalled at the bottom ofbuildHeader(), can be overridden to build additional "header" elements.protected voidCalled at the top ofbuildFooter(), can be overridden to build additional "footer" elements.protected voidCalled at the top ofbuildHeader(), can be overridden to build additional "header" elements.protected org.eclipse.swt.widgets.Buttonprotected org.eclipse.swt.custom.CTabFolderprotected voidcancel()protected booleanTo be overridden by a preview-capable dialog, returns true by default.abstract voidgetData(StepMetaType meta) Copy information from theCommonStepDialogmeta to the dialog fields.protected org.eclipse.swt.graphics.ImagegetImage()protected abstract StepMetaTypeReturns a new instance ofCommonStepDialogthat is populated according to dialog selection.protected abstract StringgetTitle()protected voidCan be overridden to initialize additional listeners.protected voidprotected voidok()open()protected voidopenDialog(String title, String message, int dialogType) protected voidprotected voidprotected voidprotected voidprotected abstract voidpopulateMeta(StepMetaType meta) Creates a new instance ofCommonStepDialogand populates it with provided data from the dialog.protected voidCan be overridden by the implementing class, if the "Get fields" button is to be enabled only under certain conditions.protected voidTo 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, toStringMethods inherited from class org.eclipse.swt.widgets.Dialog
checkSubclass, getParent, getStyle, getText, setTextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
openin 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 ofCommonStepDialogthat is populated according to dialog selection.- Returns:
- a new instance of
CommonStepDialogthat is populated according to dialog selection
-
populateMeta
Creates a new instance ofCommonStepDialogand populates it with provided data from the dialog.- Parameters:
meta- a new instance ofCommonStepDialog
-
getTitle
-
getData
Copy information from theCommonStepDialogmeta 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()
-