|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SystemPromptDialog com.ibm.etools.iseries.rse.ui.dialogs.QSYSSelectJobDialog
public class QSYSSelectJobDialog
Dialog for allowing users to select a job from a remote iSeries.
Call these methods to configure the typical functionality of the dialog
#setSystemConnection(SystemConnection)
or #setDefaultConnection(SystemConnection)
#setObjectTypes(String[])
#setMemberTypes(String[])
#setShowPropertySheet(boolean)
#enableAddMode(com.ibm.etools.systems.core.ui.IRemoteSelectionAddListener)
#setAddModeLabel(String, String)
Call these methods to configure the more advanced functionality of the dialog
#setShowNewConnectionPrompt(boolean)
and #setShowLiblFilter(boolean)
#setAutoExpandDepth(int)
#setRootLibrary(SystemConnection, String)
#addFilter(String)
or #addFilters(Vector)
setMultipleSelectionMode(boolean)
#setPreSelection(SystemConnection,String,String)
or #setPreSelection(SystemConnection,String,String)
#setSelectionValidator(com.ibm.etools.systems.core.ui.IValidatorRemoteSelection)
Call these methods to configure the text on the dialog
After running, call these methods to get the output:
getSelectedObject()
or getSelectedObjects()
#getSelectedConnection()
Field Summary | |
---|---|
protected IRemoteSelectionAddListener |
addButtonCallback
|
protected IBMiConnection |
connection
|
static String |
copyright
|
protected String |
jobFilterString
|
protected boolean |
multipleSelectionMode
|
protected int |
selectionType
|
protected QSYSSelectJobForm |
selectJobForm
|
Fields inherited from interface com.ibm.etools.iseries.rse.ui.widgets.IQSYSSelectionTypes |
---|
BROWSEFOR_ANY, BROWSEFOR_COMMAND, BROWSEFOR_CRT_COMMAND, BROWSEFOR_DTAARA, BROWSEFOR_DTAQ, BROWSEFOR_FIELD, BROWSEFOR_FILE, BROWSEFOR_JOB, BROWSEFOR_JOBD, BROWSEFOR_JOBQ, BROWSEFOR_LIBRARY, BROWSEFOR_MEMBER, BROWSEFOR_MESSAGE, BROWSEFOR_MODULE, BROWSEFOR_MSGF, BROWSEFOR_OBJECT, BROWSEFOR_PGM, BROWSEFOR_PGM_MODULE, BROWSEFOR_PGMSRVPGM, BROWSEFOR_PROCEDURE, BROWSEFOR_RECORD, BROWSEFOR_SRVPGM, Copyright |
Constructor Summary | |
---|---|
QSYSSelectJobDialog(Shell shell,
IBMiConnection connection,
int selectionType)
Constructor |
|
QSYSSelectJobDialog(Shell shell,
String title,
IBMiConnection connection,
int selectionType)
Constructor when you want to supply your own title. |
Method Summary | |
---|---|
boolean |
close()
We have to override close to ensure that we reset the form to null |
protected Control |
createInner(Composite parent)
Private method. |
protected ISystemMessageLine |
createMessageLine(Composite c)
Create message line. |
protected Control |
getInitialFocusControl()
Private method. |
boolean |
getMultipleSelectionMode()
Return the multiple selection mode as set by setMultipleSelectionMode(boolean) |
Object |
getSelectedObject()
Return selected ISeriesJob object (or first one if multiple selection enabled) |
Object[] |
getSelectedObjects()
Return all selected objects. |
protected QSYSSelectJobForm |
getSelectJobForm()
Private method. |
protected boolean |
processOK()
Private method. |
void |
setJobFilterString(String filterString)
Add a string filter to select a list of jobs to display |
void |
setMessage(String message)
Set the message shown at the top of the form |
void |
setMultipleSelectionMode(boolean multiple)
Set multiple selection mode. |
void |
setPageComplete(boolean complete)
|
void |
setPreSelection(IHost connection,
String libraryName,
String objectName)
Set an object to preselect. |
void |
setSelectionTreeToolTipText(String tip)
Set the tooltip text for the remote systems tree from which an item is selected. |
void |
setSelectionValidator(IValidatorRemoteSelection selectionValidator)
Specify a validator to use when the user selects a remote object. |
void |
setShowJobListOnStartup(boolean show)
Set to false if don't want to see the list of job for the specified job filter string as soon as the dialog comes up. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String copyright
protected IBMiConnection connection
protected QSYSSelectJobForm selectJobForm
protected String jobFilterString
protected int selectionType
protected boolean multipleSelectionMode
protected IRemoteSelectionAddListener addButtonCallback
Constructor Detail |
---|
public QSYSSelectJobDialog(Shell shell, IBMiConnection connection, int selectionType)
shell
- The shell to hang the dialog off ofconnection
- An IBMiConnection object to get job listselectionType
- An enumeration indicating the type of object to browse for, as
specified in IISeriesSelectionTypes
public QSYSSelectJobDialog(Shell shell, String title, IBMiConnection connection, int selectionType)
shell
- The shell to hang the dialog off oftitle
- The title to give the dialogconnection
- An IBMiConnection object to get job listselectionType
- An enumeration indicating the type of object to browse for, as
specified in com.ibm.etools.iseries.core.ui.widgets.IISeriesSelectionTypes
srcFilesOnly
- If the selection type is files or members, indicate whether to restrict to source filesMethod Detail |
---|
public void setShowJobListOnStartup(boolean show)
public void setMessage(String message)
public void setSelectionTreeToolTipText(String tip)
public void setJobFilterString(String filterString)
This is really a filter string versus a filter, but it is realized in the GUI as a temporary filter.
public void setPreSelection(IHost connection, String libraryName, String objectName)
public void setMultipleSelectionMode(boolean multiple)
If you set this to true you must use getSelectedObjects()
Further, if you turn this on, it has the side effect of allowing the user to select any remote object. The assumption being if you are prompting for children, you also want to allow the user to select a parent, with the meaning being that all children within the parent are implicitly selected.
To restrict what types of objects can be selected, use #setSelectionValidator(com.ibm.etools.systems.core.ui.IValidatorRemoteSelection)
public boolean getMultipleSelectionMode()
public void setSelectionValidator(IValidatorRemoteSelection selectionValidator)
protected Control getInitialFocusControl()
SystemPromptDialog#getInitialFocusControl()
protected Control createInner(Composite parent)
SystemPromptDialog#createInner(Composite)
protected QSYSSelectJobForm getSelectJobForm()
protected ISystemMessageLine createMessageLine(Composite c)
protected boolean processOK()
Called when user presses OK button. Return true to close dialog. Return false to not close dialog.
public Object getSelectedObject()
public Object[] getSelectedObjects()
setMultipleSelectionMode(boolean)
public void setPageComplete(boolean complete)
public boolean close()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |