|
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 com.ibm.etools.iseries.rse.ui.widgets.QSYSSelectJobForm
public class QSYSSelectJobForm
A reusable form for prompting for a library, object or member on a remote iSeries system.
This form is designed to look and feel like the Windows Browse For dialogs. That means there is only two controls: an output label to show what is selected and a tree viewer for finding the item to select. Unlike we Windows, we don't let the user type in a name.
Call these methods to configure the typical functionality of the dialog
#setConnection(ISeriesConnection)
Call these methods to configure the more advanced functionality of the dialog
setShowNewConnectionPrompt(boolean)
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:
Field Summary | |
---|---|
protected int |
autoExpandDepth
|
protected Object |
caller
|
protected boolean |
callerInstanceOfSystemPromptDialog
|
protected boolean |
callerInstanceOfWizardPage
|
protected IBMiConnection |
connection
|
protected boolean |
contentsCreated
|
static String |
copyright
|
protected boolean |
initDone
|
protected QSYSSelectJobAPIProvider |
inputProvider
|
protected String |
jobFilterString
|
protected Vector |
listeners
|
protected ISystemMessageLine |
msgLine
|
protected boolean |
multipleSelectionMode
|
protected Text |
nameEntryValue
|
protected SystemRemoteObjectMatcher |
objectMatcher
|
protected Composite |
outerParent
|
protected Object[] |
outputObjects
|
protected ISystemFilter |
preSelectFilter
|
protected Composite |
ps_composite
|
protected ResourceBundle |
rb
|
protected int |
selectionType
|
protected IValidatorRemoteSelection |
selectionValidator
|
protected boolean |
showJobListOnStartup
|
protected Label |
spacer1
|
protected Label |
spacer2
|
protected SystemViewForm |
tree
|
protected String |
treeTip
|
protected String |
verbage
|
protected Label |
verbageLabel
|
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 | |
---|---|
QSYSSelectJobForm(ISystemMessageLine msgLine,
Object caller,
IBMiConnection connection,
int selectionType)
Constructor |
Method Summary | |
---|---|
void |
addSelectionChangedListener(ISelectionChangedListener l)
Add a listener to selection change events in the tree |
protected void |
clearErrorMessage()
|
Control |
createContents(Shell shell,
Composite parent)
In this method, we populate the given SWT container with widgets and return the container to the caller. |
ISystemFilter |
createFilterByPrompting(ISystemFilter filterPrompt,
Shell shell)
Prompt the user to create a new filter as a result of the user expanding a promptable transient filter. |
IBMiConnection |
getConnection()
Return selected connection |
protected Object |
getFirstSelection(ISelection selection)
Return first item currently selected. |
Control |
getInitialFocusControl()
Return control to recieve initial focus |
boolean |
getMultipleSelectionMode()
Return the multiple selection mode state |
Object |
getSelectedObject()
Return first selected object |
Object[] |
getSelectedObjects()
Return all selected objects. |
protected Object[] |
getSelections(ISelection selection)
Return all items currently selected. |
SystemViewForm |
getSystemViewForm()
Return the embedded System Tree object. |
boolean |
isPageComplete()
This method can be called by the dialog or wizard page host, to decide whether to enable or disable the next, final or ok buttons. |
void |
removeSelectionChangedListener(ISelectionChangedListener l)
Remove a listener for selection change events |
void |
selectionChanged(SelectionChangedEvent selectionChangeEvent)
User selected something in the tree. |
void |
setConnection(IBMiConnection connection)
Set the connection to restrict the user to seeing |
protected void |
setErrorMessage(SystemMessage msg)
|
void |
setJobFilterString(String filterString)
Add a string filter to select a list of jobs to display |
void |
setMessage(String message)
Set the message shown as the text at the top of the form. |
void |
setMessageLine(ISystemMessageLine msgLine)
Often the message line is null at the time of instantiation, so we have to call this after it is created. |
void |
setMultipleSelectionMode(boolean multiple)
Set multiple selection mode. |
void |
setPageComplete()
Inform caller of page-complete status of this form |
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 file or folder. |
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. |
void |
setShowNewConnectionPrompt(boolean show)
Set to true if a "New Connection..." special connection is to be shown for creating new connections |
boolean |
verify()
Completes processing of the wizard page or dialog. |
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 Label verbageLabel
protected Label spacer1
protected Label spacer2
protected Text nameEntryValue
protected SystemViewForm tree
protected ISystemMessageLine msgLine
protected Composite outerParent
protected Composite ps_composite
protected String verbage
protected String treeTip
protected int selectionType
protected boolean showJobListOnStartup
protected boolean multipleSelectionMode
protected SystemRemoteObjectMatcher objectMatcher
protected Vector listeners
protected IValidatorRemoteSelection selectionValidator
protected Object[] outputObjects
protected IBMiConnection connection
protected QSYSSelectJobAPIProvider inputProvider
protected ISystemFilter preSelectFilter
protected String jobFilterString
protected ResourceBundle rb
protected boolean initDone
protected boolean contentsCreated
protected boolean callerInstanceOfWizardPage
protected boolean callerInstanceOfSystemPromptDialog
protected Object caller
protected int autoExpandDepth
Constructor Detail |
---|
public QSYSSelectJobForm(ISystemMessageLine msgLine, Object caller, IBMiConnection connection, int selectionType)
msgLine
- A GUI widget capable of writing error messages to.caller
- The wizardpage or dialog hosting this form.selectionType
- An enumeration indicating the type of object to browse for, as
specified in IISeriesSelectionTypes
srcFilesOnly
- If the selection type is files or members, indicate whether to restrict to source filessetConnection(IBMiConnection)
,
setShowNewConnectionPrompt(boolean)
,
setSelectionTreeToolTipText(String)
Method Detail |
---|
public void setConnection(IBMiConnection connection)
public void setShowJobListOnStartup(boolean show)
public void setShowNewConnectionPrompt(boolean show)
public void setSelectionTreeToolTipText(String tip)
public void setMessage(String message)
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 ISystemFilter createFilterByPrompting(ISystemFilter filterPrompt, Shell shell)
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 members, say, you also want to allow the user to select a file, with the meaning being that all members within the file are implicitly selected.
public void addSelectionChangedListener(ISelectionChangedListener l)
public void removeSelectionChangedListener(ISelectionChangedListener l)
public void setSelectionValidator(IValidatorRemoteSelection selectionValidator)
public Object getSelectedObject()
public Object[] getSelectedObjects()
setMultipleSelectionMode(boolean)
public IBMiConnection getConnection()
public SystemViewForm getSystemViewForm()
public boolean getMultipleSelectionMode()
public void setMessageLine(ISystemMessageLine msgLine)
public Control getInitialFocusControl()
public Control createContents(Shell shell, Composite parent)
parent
- The parent compositepublic boolean verify()
public void selectionChanged(SelectionChangedEvent selectionChangeEvent)
protected Object getFirstSelection(ISelection selection)
protected Object[] getSelections(ISelection selection)
public boolean isPageComplete()
public void setPageComplete()
protected void clearErrorMessage()
protected void setErrorMessage(SystemMessage msg)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |