|
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 SystemBaseDialogAction com.ibm.etools.iseries.rse.ui.actions.select.QSYSSelectJobAction
public class QSYSSelectJobAction
A reusable dialog for prompting for an object on a remote iSeries system.
This dialog offers a tree view for selecting the iSeries jobs
Browse for job
.--------------------------------------.
| Conn1 |
| - Job(1) |
| - Job(2) |
| .... |
| .... |
| .... |
| - Job(n) |
.--------------------------------------.
To configure the dialog, call these input methods:
#setShowPropertySheet(boolean)
or #setShowPropertySheet(boolean,boolean)
#enableAddMode(IAS400AddObjectListener)
#setSystemConnection(SystemConnection)
or #setDefaultConnection(SystemConnection)
#addLibraryFilter(String)
#addObjectFilter(String)
#setObjectTypes(String[])
#setRootLibrary(SystemConnection, String)
To override the default prompt labels and tooltip text, call these input methods:
After running, call these methods to get the output:
getSelectedObject()
or #getSelectedAS400Objects()
#getSelectedConnection()
#getSelectedLibraryName()
#getSelectedObjectName()
or #getSelectedObjectNames()
Field Summary | |
---|---|
protected IBMiConnection |
connection
|
static String |
copyright
|
protected static IQSYSJob[] |
EMPTY_JOB_ARRAY
|
protected static String[] |
EMPTY_STRING_ARRAY
|
protected String |
jobFilterString
|
protected boolean |
multipleSelectionMode
|
protected String |
preSelectObjectName
|
protected int |
selectionType
|
protected QSYSSelectJobDialog |
selectJobDialog
|
protected boolean |
showJobListOnStartup
|
protected String |
title
|
protected String |
treeTip
|
protected String |
verbage
|
Constructor Summary | |
---|---|
QSYSSelectJobAction(Shell shell,
String title,
String tooltip,
IBMiConnection connection,
int selectionType)
Base constructor used by child classes, to supply their own action label. |
Method Summary | |
---|---|
protected Dialog |
createDialog(Shell shell)
If you decide to use the supplied run method as is, then you must override this method to create and return the dialog that is displayed by the default run method implementation. |
IBMiConnection |
getConnection()
Getter method for connection |
protected Object |
getDialogValue(Dialog dialog)
Required by parent. |
IQSYSJob |
getSelectedObject()
Return selected AS400 object. |
IQSYSJob[] |
getSelectedObjects()
Return all selected objects. |
protected QSYSSelectJobDialog |
getSelectJobDialog(Shell shell)
This is the overridable point for the dialog. |
void |
reset()
Reset all attributes to initial values. |
void |
setConnection(IBMiConnection connection)
Set the system connection to use. |
void |
setDialogTitle(String title)
Set the dialog title. |
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. |
void |
setMultipleSelectionMode(boolean multiple)
Set multiple selection mode. |
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 This allows you to decide if OK should be enabled or not for that 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 int selectionType
protected QSYSSelectJobDialog selectJobDialog
protected IBMiConnection connection
protected String jobFilterString
protected String title
protected String verbage
protected String treeTip
protected String preSelectObjectName
protected boolean showJobListOnStartup
protected boolean multipleSelectionMode
protected static final IQSYSJob[] EMPTY_JOB_ARRAY
protected static final String[] EMPTY_STRING_ARRAY
Constructor Detail |
---|
public QSYSSelectJobAction(Shell shell, String title, String tooltip, IBMiConnection connection, int selectionType)
Method Detail |
---|
public void setConnection(IBMiConnection connection)
public void setShowJobListOnStartup(boolean show)
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 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 void setSelectionValidator(IValidatorRemoteSelection selectionValidator)
public void reset()
public void setDialogTitle(String title)
public void setMessage(String message)
public void setSelectionTreeToolTipText(String tip)
public IQSYSJob[] getSelectedObjects()
It will always return null if the user cancelled the dialog.
setMultipleSelectionMode(boolean)
public IQSYSJob getSelectedObject()
public IBMiConnection getConnection()
protected Dialog createDialog(Shell shell)
If you override run with your own, then simply implement this to return null as it won't be used.
#run()
protected QSYSSelectJobDialog getSelectJobDialog(Shell shell)
protected Object getDialogValue(Dialog dialog)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |