public abstract class BaseStepXulDialog extends BaseStepGenericXulDialog
loggingObject
Constructor and Description |
---|
BaseStepXulDialog(String xulFile,
org.eclipse.swt.widgets.Shell parent,
org.pentaho.di.trans.step.BaseStepMeta baseStepMeta,
org.pentaho.di.trans.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,
org.pentaho.di.core.row.RowMetaInterface sourceFields,
org.pentaho.di.core.row.RowMetaInterface targetFields,
List<org.pentaho.di.core.SourceToTargetMapping> fieldMapping)
Create a new field mapping between source and target steps.
|
static void |
getFieldsFromPrevious(ComboVar comboVar,
org.pentaho.di.trans.TransMeta transMeta,
org.pentaho.di.trans.step.StepMeta stepMeta)
Gets fields from previous steps and populate a ComboVar.
|
static void |
getFieldsFromPrevious(org.pentaho.di.core.row.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(org.pentaho.di.core.row.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() |
void |
onHelp() |
void |
setShellImage(org.eclipse.swt.widgets.Shell shell,
org.pentaho.di.trans.step.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, getMetaStore, getName, getRepository, 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
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
public void setShellImage(org.eclipse.swt.widgets.Shell shell, org.pentaho.di.trans.step.StepMetaInterface stepMetaInterface)
public void dispose()
dispose
in class BaseStepGenericXulDialog
public org.eclipse.swt.widgets.Shell getShell()
public void setSize()
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(org.pentaho.di.core.row.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, org.pentaho.di.trans.TransMeta transMeta, org.pentaho.di.trans.step.StepMeta stepMeta)
comboVar
- the comboVar to populateTransMeta
- the source transformationStepMeta
- the source steppublic static final void generateFieldMapping(org.eclipse.swt.widgets.Shell shell, org.pentaho.di.core.row.RowMetaInterface sourceFields, org.pentaho.di.core.row.RowMetaInterface targetFields, List<org.pentaho.di.core.SourceToTargetMapping> fieldMapping) throws org.pentaho.di.core.exception.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)org.pentaho.di.core.exception.KettleException
- in case something goes wrong during the field mappingpublic static void getFieldsFromPrevious(org.pentaho.di.core.row.RowMetaInterface row, org.pentaho.ui.xul.containers.XulTree tableView, List<Object> fields, StepTableDataObject field, TableItemInsertXulListener listener)
public void onHelp()
onHelp
in class BaseStepGenericXulDialog