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 SummaryNested classes/interfaces inherited from class org.pentaho.di.ui.trans.step.BaseStepDialogBaseStepDialog.AddConnectionListener, BaseStepDialog.EditConnectionListener, BaseStepDialog.FieldsChoiceDialogProvider
- 
Field SummaryFieldsModifier 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.BaseStepDialogbackupChanged, 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 SummaryConstructorsConstructorDescriptionCommonStepDialog(org.eclipse.swt.widgets.Shell parent, Object meta, org.pentaho.di.trans.TransMeta tr, String sname) 
- 
Method SummaryModifier 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.BaseStepDialogaddConnectionLine, 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.DialogcheckSubclass, getParent, getStyle, getText, setTextMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.pentaho.di.trans.step.StepDialogInterfacesetMetaStore, setRepository
- 
Field Details- 
MARGIN_SIZEprotected static final int MARGIN_SIZE- See Also:
 
- 
LABEL_SPACINGprotected static final int LABEL_SPACING- See Also:
 
- 
ELEMENT_SPACINGprotected static final int ELEMENT_SPACING- See Also:
 
- 
MEDIUM_FIELDprotected static final int MEDIUM_FIELD- See Also:
 
- 
MEDIUM_SMALL_FIELDprotected static final int MEDIUM_SMALL_FIELD- See Also:
 
- 
SMALL_FIELDprotected static final int SMALL_FIELD- See Also:
 
- 
SHELL_WIDTH_OFFSETprotected static final int SHELL_WIDTH_OFFSET- See Also:
 
- 
VAR_ICON_WIDTHprotected static final int VAR_ICON_WIDTH
- 
VAR_ICON_HEIGHTprotected static final int VAR_ICON_HEIGHT
- 
meta
- 
headerSpacerprotected org.eclipse.swt.widgets.Label headerSpacer
- 
lsModprotected org.eclipse.swt.events.ModifyListener lsMod
- 
m_wTabFolderprotected org.eclipse.swt.custom.CTabFolder m_wTabFolder
 
- 
- 
Constructor Details- 
CommonStepDialog
 
- 
- 
Method Details- 
initListenersImplprotected void initListenersImpl()Can be overridden to initialize additional listeners.
- 
open- Specified by:
- openin interface- org.pentaho.di.trans.step.StepDialogInterface
 
- 
buildPreHeaderprotected void buildPreHeader()Called at the top ofbuildHeader(), can be overridden to build additional "header" elements.
- 
buildPostHeaderprotected void buildPostHeader()Called at the bottom ofbuildHeader(), can be overridden to build additional "header" elements.
- 
buildBodyprotected abstract void buildBody()
- 
buildPreviewButtonprotected org.eclipse.swt.widgets.Button buildPreviewButton()
- 
buildGetFieldsButtonprotected org.eclipse.swt.widgets.Button buildGetFieldsButton(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.events.SelectionAdapter listener) 
- 
buildCancelButtonprotected org.eclipse.swt.widgets.Button buildCancelButton()
- 
buildOkButtonprotected org.eclipse.swt.widgets.Button buildOkButton()
- 
fieldsExistprotected boolean fieldsExist()To be overridden by a preview-capable dialog, returns true by default.- Returns:
- true by default
 
- 
updatePreviewButtonStatusprotected void updatePreviewButtonStatus()To be overridden by a preview-capable step dialog.
- 
updateGetFieldsButtonStatusprotected void updateGetFieldsButtonStatus()Can be overridden by the implementing class, if the "Get fields" button is to be enabled only under certain conditions.
- 
okprotected void ok()
- 
cancelprotected void cancel()
- 
getImageprotected org.eclipse.swt.graphics.Image getImage()
- 
getPopulatedMetaReturns a new instance ofCommonStepDialogthat is populated according to dialog selection.- Returns:
- a new instance of CommonStepDialogthat is populated according to dialog selection
 
- 
populateMetaCreates a new instance ofCommonStepDialogand populates it with provided data from the dialog.- Parameters:
- meta- a new instance of- CommonStepDialog
 
- 
getTitle
- 
getDataCopy information from theCommonStepDialogmeta to the dialog fields.
- 
buildTabFolderprotected org.eclipse.swt.custom.CTabFolder buildTabFolder()
- 
layoutTabFolderprotected void layoutTabFolder()
- 
openDialog
- 
openPreviewErrorprotected void openPreviewError()
- 
openNoRowsToPreviewErrorprotected void openNoRowsToPreviewError()
- 
openNoFieldsDialogprotected void openNoFieldsDialog()
- 
openFieldsErrorDialogprotected void openFieldsErrorDialog()
 
-