Package org.pentaho.di.ui.trans.step
Class BaseStepXulDialog
java.lang.Object
org.pentaho.ui.xul.XulEventSourceAdapter
org.pentaho.ui.xul.impl.AbstractXulEventHandler
org.pentaho.di.ui.trans.step.BaseStepGenericXulDialog
org.pentaho.di.ui.trans.step.BaseStepXulDialog
- All Implemented Interfaces:
org.pentaho.di.trans.step.StepDialogInterface
,org.pentaho.ui.xul.impl.XulEventHandler
,org.pentaho.ui.xul.XulEventSource
User: nbaker Date: Jun 7, 2010
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected static final int
protected static final int
protected static final int
protected static int
protected boolean
protected DatabaseDialog
protected org.eclipse.swt.widgets.Shell
protected org.eclipse.swt.widgets.Listener
protected org.eclipse.swt.widgets.Listener
protected org.eclipse.swt.widgets.Listener
protected org.eclipse.swt.widgets.Listener
protected org.eclipse.swt.widgets.Listener
protected org.eclipse.swt.widgets.Listener
protected org.eclipse.swt.widgets.Listener
protected PropsUI
Fields inherited from class org.pentaho.di.ui.trans.step.BaseStepGenericXulDialog
baseStepMeta, bf, log, loggingObject, metaStore, parent, repository, stepMeta, stepname, transMeta, variables, wCancel, wCreate, wGet, wlStepname, wOK, wPreview, wSQL, wStepname, xulDialog
Fields inherited from class org.pentaho.ui.xul.impl.AbstractXulEventHandler
document, name, xulDomContainer
Fields inherited from class org.pentaho.ui.xul.XulEventSourceAdapter
changeSupport
-
Constructor Summary
ConstructorDescriptionBaseStepXulDialog
(String xulFile, org.eclipse.swt.widgets.Shell parent, org.pentaho.di.trans.step.BaseStepMeta baseStepMeta, org.pentaho.di.trans.TransMeta transMeta, String stepname) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Reset this dialog and its controls to a default state.void
dispose()
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) Create a new field mapping between source and target steps.protected static int
Returns the default alignment for the buttons.protected DatabaseDialog
getDatabaseDialog
(org.eclipse.swt.widgets.Shell shell) 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) 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) static final 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.org.pentaho.ui.xul.XulSettingsManager
org.eclipse.swt.widgets.Shell
getShell()
protected void
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, 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
boolean
validate()
Methods inherited from class org.pentaho.di.ui.trans.step.BaseStepGenericXulDialog
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
Methods inherited from class org.pentaho.ui.xul.impl.AbstractXulEventHandler
bind, bind, getData, getXulDomContainer, setData, setName, setXulDomContainer
Methods inherited from class org.pentaho.ui.xul.XulEventSourceAdapter
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener
-
Field Details
-
lsOK
protected org.eclipse.swt.widgets.Listener lsOK -
lsGet
protected org.eclipse.swt.widgets.Listener lsGet -
lsPreview
protected org.eclipse.swt.widgets.Listener lsPreview -
lsSQL
protected org.eclipse.swt.widgets.Listener lsSQL -
lsCreate
protected org.eclipse.swt.widgets.Listener lsCreate -
lsCancel
protected org.eclipse.swt.widgets.Listener lsCancel -
lsResize
protected org.eclipse.swt.widgets.Listener lsResize -
changed
protected boolean changed -
backupChanged
protected boolean backupChanged -
props
-
BUTTON_ALIGNMENT_CENTER
protected static final int BUTTON_ALIGNMENT_CENTER- See Also:
-
BUTTON_ALIGNMENT_LEFT
protected static final int BUTTON_ALIGNMENT_LEFT- See Also:
-
BUTTON_ALIGNMENT_RIGHT
protected static final int BUTTON_ALIGNMENT_RIGHT- See Also:
-
buttonAlignment
protected static int buttonAlignment -
databaseDialog
-
dialogShell
protected org.eclipse.swt.widgets.Shell dialogShell
-
-
Constructor Details
-
BaseStepXulDialog
-
-
Method Details
-
getSettingsManager
public org.pentaho.ui.xul.XulSettingsManager getSettingsManager()- Specified by:
getSettingsManager
in classBaseStepGenericXulDialog
-
getResourceBundle
- Specified by:
getResourceBundle
in classBaseStepGenericXulDialog
-
clear
public void clear()Description copied from class:BaseStepGenericXulDialog
Reset this dialog and its controls to a default state.- Specified by:
clear
in classBaseStepGenericXulDialog
-
validate
public boolean validate()- Specified by:
validate
in classBaseStepGenericXulDialog
-
initializeXul
protected void initializeXul() throws org.pentaho.ui.xul.XulExceptionDescription copied from class:BaseStepGenericXulDialog
The implementors of this method should call the sibling method initializeXul(XulLoder, BindingFactory, XulRunner, parent) with the desired Xul implementation classes - SWT or Swing.- Specified by:
initializeXul
in classBaseStepGenericXulDialog
- Throws:
org.pentaho.ui.xul.XulException
-
setShellImage
public void setShellImage(org.eclipse.swt.widgets.Shell shell, org.pentaho.di.trans.step.StepMetaInterface stepMetaInterface) -
dispose
public void dispose()- Specified by:
dispose
in classBaseStepGenericXulDialog
-
getShell
public org.eclipse.swt.widgets.Shell getShell() -
setSize
public void setSize()Set the shell size, based upon the previous time the geometry was saved in the Properties file. -
getButtonAlignment
protected static int getButtonAlignment()Returns the default alignment for the buttons. This is set in the LAF properties with the keyButton_Position
. The valid values are:left
center
right
center
will be used as a default- Returns:
- a constant which indicates the button alignment
-
getDatabaseDialog
-
storeScreenSize
public void storeScreenSize() -
setSize
public static void setSize(org.eclipse.swt.widgets.Shell shell) -
setSize
public static void setSize(org.eclipse.swt.widgets.Shell shell, int minWidth, int minHeight, boolean packIt) -
getFieldsFromPrevious
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) Gets unused fields from previous steps and inserts them as rows into a table view.- Parameters:
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 row
-
getFieldsFromPrevious
public static final 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.- Parameters:
comboVar
- the comboVar to populateTransMeta
- the source transformationStepMeta
- the source step
-
generateFieldMapping
public 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 Create a new field mapping between source and target steps.- Parameters:
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)- Throws:
org.pentaho.di.core.exception.KettleException
- in case something goes wrong during the field mapping
-
getFieldsFromPrevious
public static void getFieldsFromPrevious(org.pentaho.di.core.row.RowMetaInterface row, org.pentaho.ui.xul.containers.XulTree tableView, List<Object> fields, StepTableDataObject field, TableItemInsertXulListener listener) -
onHelp
public void onHelp()- Overrides:
onHelp
in classBaseStepGenericXulDialog
-