public abstract class BaseStepXulDialog extends BaseStepGenericXulDialog
Modifier and Type | Field and Description |
---|---|
protected boolean |
backupChanged |
protected static int |
BUTTON_ALIGNMENT_CENTER |
protected static int |
BUTTON_ALIGNMENT_LEFT |
protected static int |
BUTTON_ALIGNMENT_RIGHT |
protected static int |
buttonAlignment |
protected boolean |
changed |
protected DatabaseDialog |
databaseDialog |
protected org.eclipse.swt.widgets.Shell |
dialogShell |
protected org.eclipse.swt.widgets.Listener |
lsCancel |
protected org.eclipse.swt.widgets.Listener |
lsCreate |
protected org.eclipse.swt.widgets.Listener |
lsGet |
protected org.eclipse.swt.widgets.Listener |
lsOK |
protected org.eclipse.swt.widgets.Listener |
lsPreview |
protected org.eclipse.swt.widgets.Listener |
lsResize |
protected org.eclipse.swt.widgets.Listener |
lsSQL |
protected PropsUI |
props |
baseStepMeta, bf, log, loggingObject, metaStore, parent, repository, stepMeta, stepname, transMeta, variables, wCancel, wCreate, wGet, wlStepname, wOK, wPreview, wSQL, wStepname, xulDialog
Constructor and Description |
---|
BaseStepXulDialog(String xulFile,
org.eclipse.swt.widgets.Shell parent,
BaseStepMeta baseStepMeta,
TransMeta transMeta,
String stepname) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Reset this dialog and its controls to a default state.
|
void |
dispose() |
static void |
generateFieldMapping(org.eclipse.swt.widgets.Shell shell,
RowMetaInterface sourceFields,
RowMetaInterface targetFields,
List<SourceToTargetMapping> fieldMapping)
Create a new field mapping between source and target steps.
|
protected static int |
getButtonAlignment()
Returns the default alignment for the buttons.
|
protected DatabaseDialog |
getDatabaseDialog(org.eclipse.swt.widgets.Shell shell) |
static void |
getFieldsFromPrevious(ComboVar comboVar,
TransMeta transMeta,
StepMeta stepMeta)
Gets fields from previous steps and populate a ComboVar.
|
static void |
getFieldsFromPrevious(RowMetaInterface row,
org.pentaho.ui.xul.containers.XulTree tableView,
int keyColumn,
int[] nameColumn,
int[] dataTypeColumn,
int lengthColumn,
int precisionColumn,
TableItemInsertListener listener)
Gets unused fields from previous steps and inserts them as rows into a table view.
|
static void |
getFieldsFromPrevious(RowMetaInterface row,
org.pentaho.ui.xul.containers.XulTree tableView,
List<Object> fields,
StepTableDataObject field,
TableItemInsertXulListener listener) |
ResourceBundle |
getResourceBundle() |
org.pentaho.ui.xul.XulSettingsManager |
getSettingsManager() |
org.eclipse.swt.widgets.Shell |
getShell() |
protected void |
initializeXul()
The implementors of this method should call the sibling method initializeXul(XulLoder, BindingFactory, XulRunner,
parent) with the desired Xul implementation classes - SWT or Swing.
|
void |
onHelp() |
void |
setShellImage(org.eclipse.swt.widgets.Shell shell,
StepMetaInterface stepMetaInterface) |
void |
setSize()
Set the shell size, based upon the previous time the geometry was saved in the Properties file.
|
static void |
setSize(org.eclipse.swt.widgets.Shell shell) |
static void |
setSize(org.eclipse.swt.widgets.Shell shell,
int minWidth,
int minHeight,
boolean packIt) |
void |
storeScreenSize() |
boolean |
validate() |
addDatabases, addDatabases, close, getBindingFactory, getClassForMessages, getEventHandlers, getMetaStore, getName, getPlugin, getRepository, initializeXul, isBasic, isDebug, isDetailed, isRowLevel, logBasic, logBasic, logDebug, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logMinimal, logRowlevel, logRowlevel, onAccept, onCancel, open, selectDatabase, setMetaStore, setModalParent, setRepository, showClearDataMessage, showMessage, showPromptMessage, showPromptMessage
bind, bind, getData, getXulDomContainer, setData, setName, setXulDomContainer
protected org.eclipse.swt.widgets.Listener lsOK
protected org.eclipse.swt.widgets.Listener lsGet
protected org.eclipse.swt.widgets.Listener lsPreview
protected org.eclipse.swt.widgets.Listener lsSQL
protected org.eclipse.swt.widgets.Listener lsCreate
protected org.eclipse.swt.widgets.Listener lsCancel
protected org.eclipse.swt.widgets.Listener lsResize
protected boolean changed
protected boolean backupChanged
protected PropsUI props
protected static final int BUTTON_ALIGNMENT_CENTER
protected static final int BUTTON_ALIGNMENT_LEFT
protected static final int BUTTON_ALIGNMENT_RIGHT
protected static int buttonAlignment
protected DatabaseDialog databaseDialog
protected org.eclipse.swt.widgets.Shell dialogShell
public BaseStepXulDialog(String xulFile, org.eclipse.swt.widgets.Shell parent, BaseStepMeta baseStepMeta, TransMeta transMeta, String stepname)
public org.pentaho.ui.xul.XulSettingsManager getSettingsManager()
getSettingsManager
in class BaseStepGenericXulDialog
public ResourceBundle getResourceBundle()
getResourceBundle
in class BaseStepGenericXulDialog
public void clear()
BaseStepGenericXulDialog
clear
in class BaseStepGenericXulDialog
public boolean validate()
validate
in class BaseStepGenericXulDialog
protected void initializeXul() throws org.pentaho.ui.xul.XulException
BaseStepGenericXulDialog
initializeXul
in class BaseStepGenericXulDialog
org.pentaho.ui.xul.XulException
public void setShellImage(org.eclipse.swt.widgets.Shell shell, StepMetaInterface stepMetaInterface)
public void dispose()
dispose
in class BaseStepGenericXulDialog
public org.eclipse.swt.widgets.Shell getShell()
public void setSize()
protected static int getButtonAlignment()
Button_Position
. The valid values are:
left
center
right
center
will be used as a defaultprotected DatabaseDialog getDatabaseDialog(org.eclipse.swt.widgets.Shell shell)
public void storeScreenSize()
public static void setSize(org.eclipse.swt.widgets.Shell shell)
public static void setSize(org.eclipse.swt.widgets.Shell shell, int minWidth, int minHeight, boolean packIt)
public static final void getFieldsFromPrevious(RowMetaInterface row, org.pentaho.ui.xul.containers.XulTree tableView, int keyColumn, int[] nameColumn, int[] dataTypeColumn, int lengthColumn, int precisionColumn, TableItemInsertListener listener)
row
- the input fieldstableView
- the table view to modifykeyColumn
- the column in the table view to match with the names of the fields, checks for existance if >0nameColumn
- the column numbers in which the name should end up indataTypeColumn
- the target column numbers in which the data type should end up inlengthColumn
- the length column where the length should end up in (if >0)precisionColumn
- the length column where the precision should end up in (if >0)listener
- A listener that you can use to do custom modifications to the inserted table item, based on a value from
the provided rowpublic static final void getFieldsFromPrevious(ComboVar comboVar, TransMeta transMeta, StepMeta stepMeta)
comboVar
- the comboVar to populateTransMeta
- the source transformationStepMeta
- the source steppublic static final void generateFieldMapping(org.eclipse.swt.widgets.Shell shell, RowMetaInterface sourceFields, RowMetaInterface targetFields, List<SourceToTargetMapping> fieldMapping) throws KettleException
shell
- the shell of the parent windowsourceFields
- the source fieldstargetFields
- the target fieldsfieldMapping
- the list of source to target mappings to default to (can be empty but not null)KettleException
- in case something goes wrong during the field mappingpublic static void getFieldsFromPrevious(RowMetaInterface row, org.pentaho.ui.xul.containers.XulTree tableView, List<Object> fields, StepTableDataObject field, TableItemInsertXulListener listener)
public void onHelp()
onHelp
in class BaseStepGenericXulDialog
Copyright © 2019 Hitachi Vantara. All rights reserved.