org.pentaho.di.ui.job.entry
Class JobEntryDialog

java.lang.Object
  extended by Dialog
      extended by org.pentaho.di.ui.job.entry.JobEntryDialog
Direct Known Subclasses:
JobEntryAbortDialog, JobEntryAddResultFilenamesDialog, JobEntryCheckDbConnectionsDialog, JobEntryCheckFilesLockedDialog, JobEntryColumnsExistDialog, JobEntryConnectedToRepositoryDialog, JobEntryCopyFilesDialog, JobEntryCopyMoveResultFilenamesDialog, JobEntryCreateFileDialog, JobEntryCreateFolderDialog, JobEntryDelayDialog, JobEntryDeleteFileDialog, JobEntryDeleteFilesDialog, JobEntryDeleteFoldersDialog, JobEntryDeleteResultFilenamesDialog, JobEntryDosToUnixDialog, JobEntryDTDValidatorDialog, JobEntryEvalDialog, JobEntryEvalFilesMetricsDialog, JobEntryEvalTableContentDialog, JobEntryExportRepositoryDialog, JobEntryFileCompareDialog, JobEntryFileExistsDialog, JobEntryFilesExistDialog, JobEntryFolderIsEmptyDialog, JobEntryFoldersCompareDialog, JobEntryFTPDeleteDialog, JobEntryFTPDialog, JobEntryFTPPUTDialog, JobEntryFTPSGetDialog, JobEntryFTPSPUTDialog, JobEntryGetPOPDialog, JobEntryHTTPDialog, JobEntryJobDialog, JobEntryMailDialog, JobEntryMailValidatorDialog, JobEntryMoveFilesDialog, JobEntryMSAccessBulkLoadDialog, JobEntryMsgBoxInfoDialog, JobEntryMssqlBulkLoadDialog, JobEntryMysqlBulkFileDialog, JobEntryMysqlBulkLoadDialog, JobEntryPGPDecryptFilesDialog, JobEntryPGPEncryptFilesDialog, JobEntryPGPVerifyDialog, JobEntryPingDialog, JobEntrySetVariablesDialog, JobEntrySFTPDialog, JobEntrySFTPPUTDialog, JobEntryShellDialog, JobEntrySimpleEvalDialog, JobEntrySNMPTrapDialog, JobEntrySpecialDialog, JobEntrySQLDialog, JobEntrySSH2GETDialog, JobEntrySSH2PUTDialog, JobEntrySuccessDialog, JobEntrySyslogDialog, JobEntryTableExistsDialog, JobEntryTalendJobExecDialog, JobEntryTransDialog, JobEntryTruncateTablesDialog, JobEntryUnZipDialog, JobEntryWaitForFileDialog, JobEntryWaitForSQLDialog, JobEntryWebServiceAvailableDialog, JobEntryWriteToFileDialog, JobEntryWriteToLogDialog, JobEntryXMLWellFormedDialog, JobEntryXSDValidatorDialog, JobEntryXSLTDialog, JobEntryZipFileDialog

public class JobEntryDialog
extends Dialog

The JobEntryDialog class is responsible for constructing and opening the settings dialog for the job entry. Whenever the user opens the job entry settings in Spoon, it will instantiate the dialog class passing in the JobEntryInterface object and call the

open()
method on the dialog. SWT is the native windowing environment of Spoon, and it is typically the framework used for implementing job entry dialogs.


Field Summary
static LoggingObjectInterface loggingObject
          The loggingObject for the dialog
 
Constructor Summary
JobEntryDialog(Shell parent, JobEntryInterface jobEntry, Repository rep, JobMeta jobMeta)
          Instantiates a new job entry dialog.
 
Method Summary
 CCombo addConnectionLine(Composite parent, Control previous, int middle, int margin)
          Adds the connection line for the given parent and previous control, and returns a combo box UI component
 CCombo addConnectionLine(Composite parent, Control previous, int middle, int margin, Label wlConnection, Button wbnConnection, Button wbeConnection)
          Adds the connection line for the given parent and previous control, and returns a combo box UI component
 void addDatabases(CCombo wConnection)
          Adds the databases from the job metadata to the combo box.
 void selectDatabase(CCombo wConnection, String name)
          Selects a database from the combo box
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loggingObject

public static final LoggingObjectInterface loggingObject
The loggingObject for the dialog

Constructor Detail

JobEntryDialog

public JobEntryDialog(Shell parent,
                      JobEntryInterface jobEntry,
                      Repository rep,
                      JobMeta jobMeta)
Instantiates a new job entry dialog.

Parameters:
parent - the parent shell
jobEntry - the job entry interface
rep - the repository
jobMeta - the job metadata object
Method Detail

addConnectionLine

public CCombo addConnectionLine(Composite parent,
                                Control previous,
                                int middle,
                                int margin)
Adds the connection line for the given parent and previous control, and returns a combo box UI component

Parameters:
parent - the parent composite object
previous - the previous control
middle - the middle
margin - the margin
Returns:
the combo box UI component

addConnectionLine

public CCombo addConnectionLine(Composite parent,
                                Control previous,
                                int middle,
                                int margin,
                                Label wlConnection,
                                Button wbnConnection,
                                Button wbeConnection)
Adds the connection line for the given parent and previous control, and returns a combo box UI component

Parameters:
parent - the parent composite object
previous - the previous control
middle - the middle
margin - the margin
wlConnection - the connection label
wbnConnection - the "new connection" button
wbeConnection - the "edit connection" button
Returns:
the combo box UI component

addDatabases

public void addDatabases(CCombo wConnection)
Adds the databases from the job metadata to the combo box.

Parameters:
wConnection - the w connection

selectDatabase

public void selectDatabase(CCombo wConnection,
                           String name)
Selects a database from the combo box

Parameters:
wConnection - the combo box list of connections
name - the name