StepMetaType
- public abstract class CommonStepDialog<StepMetaType extends CommonStepMeta> extends BaseStepDialog implements StepDialogInterface
BaseStepDialog
that creates many of the common UI components.BaseStepDialog.FieldsChoiceDialogProvider
Modifier and Type | Field and Description |
---|---|
protected static int |
ELEMENT_SPACING |
protected org.eclipse.swt.widgets.Label |
footerSpacer |
protected org.eclipse.swt.widgets.Label |
headerSpacer |
protected static int |
LABEL_SPACING |
protected org.eclipse.swt.events.ModifyListener |
lsMod |
protected org.eclipse.swt.custom.CTabFolder |
m_wTabFolder |
protected static int |
MARGIN_SIZE |
protected static int |
MEDIUM_FIELD |
protected static int |
MEDIUM_SMALL_FIELD |
protected StepMetaType |
meta |
protected static int |
SHELL_WIDTH_OFFSET |
protected static int |
SMALL_FIELD |
protected static int |
VAR_ICON_HEIGHT |
protected static int |
VAR_ICON_WIDTH |
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 and Description |
---|
CommonStepDialog(org.eclipse.swt.widgets.Shell parent,
Object meta,
TransMeta tr,
String sname) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
buildBody() |
protected org.eclipse.swt.widgets.Button |
buildCancelButton() |
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 |
buildOkButton() |
protected void |
buildPostFooter()
Called at the bottom of
buildFooter() , can be overridden to build additional "footer" elements. |
protected void |
buildPostHeader()
Called at the bottom of
buildHeader() , can be overridden to build additional "header" elements. |
protected void |
buildPreFooter()
Called at the top of
buildFooter() , can be overridden to build additional "footer" elements. |
protected void |
buildPreHeader()
Called at the top of
buildHeader() , can be overridden to build additional "header" elements. |
protected org.eclipse.swt.widgets.Button |
buildPreviewButton() |
protected org.eclipse.swt.custom.CTabFolder |
buildTabFolder() |
protected void |
cancel() |
protected boolean |
fieldsExist()
To be overridden by a preview-capable dialog, returns true by default.
|
abstract void |
getData(StepMetaType meta)
Copy information from the
StepMetaType meta to the dialog fields. |
protected org.eclipse.swt.graphics.Image |
getImage() |
protected abstract StepMetaType |
getPopulatedMeta()
Returns a new instance of
StepMetaType that is populated according to dialog selection. |
protected abstract String |
getTitle() |
protected void |
initListenersImpl()
Can be overridden to initialize additional listeners.
|
protected void |
layoutTabFolder() |
protected void |
ok() |
String |
open() |
protected void |
openDialog(String title,
String message,
int dialogType) |
protected void |
openFieldsErrorDialog() |
protected void |
openNoFieldsDialog() |
protected void |
openNoRowsToPreviewError() |
protected void |
openPreviewError() |
protected abstract void |
populateMeta(StepMetaType meta)
Creates a new instance of
StepMetaType and populates it with provided data from the dialog. |
protected void |
updateGetFieldsButtonStatus()
Can be overridden by the implementing class, if the "Get fields" button is to be enabled only under certain
conditions.
|
protected void |
updatePreviewButtonStatus()
To be overridden by a preview-capable step dialog.
|
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, positionBottomRightButtons, rightAlignButtons, selectDatabase, setButtonPositions, setMetaStore, setMinimalShellHeight, setRepository, setShellImage, setSize, setSize, setSize, setSize, setTraverseOrder, storeScreenSize, toString
checkSubclass, getParent, getStyle, getText, setText
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setMetaStore, setRepository
protected static final int MARGIN_SIZE
protected static final int LABEL_SPACING
protected static final int ELEMENT_SPACING
protected static final int MEDIUM_FIELD
protected static final int MEDIUM_SMALL_FIELD
protected static final int SMALL_FIELD
protected static final int SHELL_WIDTH_OFFSET
protected static final int VAR_ICON_WIDTH
protected static final int VAR_ICON_HEIGHT
protected final StepMetaType extends CommonStepMeta meta
protected org.eclipse.swt.widgets.Label footerSpacer
protected org.eclipse.swt.widgets.Label headerSpacer
protected org.eclipse.swt.events.ModifyListener lsMod
protected org.eclipse.swt.custom.CTabFolder m_wTabFolder
protected void initListenersImpl()
public String open()
open
in interface StepDialogInterface
protected void buildPreHeader()
buildHeader()
, can be overridden to build additional "header" elements.protected void buildPostHeader()
buildHeader()
, can be overridden to build additional "header" elements.protected abstract void buildBody()
protected void buildPreFooter()
buildFooter()
, can be overridden to build additional "footer" elements.protected void buildPostFooter()
buildFooter()
, can be overridden to build additional "footer" elements.protected org.eclipse.swt.widgets.Button buildPreviewButton()
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 buildCancelButton()
protected org.eclipse.swt.widgets.Button buildOkButton()
protected boolean fieldsExist()
protected void updatePreviewButtonStatus()
protected void updateGetFieldsButtonStatus()
protected void ok()
protected void cancel()
protected org.eclipse.swt.graphics.Image getImage()
protected abstract StepMetaType getPopulatedMeta()
StepMetaType
that is populated according to dialog selection.StepMetaType
that is populated according to dialog selectionprotected abstract void populateMeta(StepMetaType meta)
StepMetaType
and populates it with provided data from the dialog.meta
- a new instance of StepMetaType
protected abstract String getTitle()
public abstract void getData(StepMetaType meta)
StepMetaType
meta to the dialog fields.protected org.eclipse.swt.custom.CTabFolder buildTabFolder()
protected void layoutTabFolder()
protected void openPreviewError()
protected void openNoRowsToPreviewError()
protected void openNoFieldsDialog()
protected void openFieldsErrorDialog()
Copyright © 2019 Hitachi Vantara. All rights reserved.