|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.iseries.core.ui.widgets.ISeriesSelectQSYSForm
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
setSystemConnection(SystemConnection)
or setDefaultConnection(SystemConnection)
setObjectTypes(String[])
setMemberTypes(String[])
setShowPropertySheet(boolean)
enableAddMode(com.ibm.etools.systems.core.ui.IRemoteSelectionAddListener)
Call these methods to configure the more advanced functionality of the dialog
setShowNewConnectionPrompt(boolean)
and setShowLiblFilter(boolean)
setAutoExpandDepth(int)
setRootLibrary(SystemConnection, String)
or..
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:
Field Summary | |
---|---|
protected com.ibm.etools.systems.core.ui.IRemoteSelectionAddListener |
addButtonCallback
|
protected boolean |
addMode
|
protected int |
autoExpandDepth
|
protected Object |
caller
|
protected boolean |
callerInstanceOfSystemPromptDialog
|
protected boolean |
callerInstanceOfWizardPage
|
protected boolean |
contentsCreated
|
protected Hashtable |
convertedObjects
|
static String |
copyright
|
protected com.ibm.etools.systems.model.SystemConnection |
defaultConnection
|
protected com.ibm.etools.systems.filters.SystemFilter[] |
defaultFilters
|
protected boolean |
forceDefaultFiltersNull
|
protected boolean |
initDone
|
protected ISeriesSelectQSYSObjectAPIProvider |
inputProvider
|
protected com.ibm.etools.systems.filters.impl.SystemFilterSimpleImpl |
liblQuickFilter
|
protected Vector |
listeners
|
protected com.ibm.etools.systems.core.ui.messages.ISystemMessageLine |
msgLine
|
protected boolean |
multipleSelectionMode
|
protected Text |
nameEntryValue
|
protected com.ibm.etools.systems.core.SystemRemoteObjectMatcher |
objectMatcher
|
protected Composite |
outerParent
|
protected com.ibm.etools.systems.model.SystemConnection |
outputConnection
|
protected Object[] |
outputObjects
|
protected com.ibm.etools.systems.filters.SystemFilter |
preSelectFilter
|
protected com.ibm.etools.systems.core.ui.view.SystemPropertySheetForm |
ps
|
protected Composite |
ps_composite
|
protected ResourceBundle |
rb
|
protected int |
selectionType
|
protected com.ibm.etools.systems.core.ui.validators.IValidatorRemoteSelection |
selectionValidator
|
protected boolean |
showLiblFilter
|
protected boolean |
showPropertySheet
|
protected boolean |
showYourLibrariesPrompt
|
protected Label |
spacer1
|
protected Label |
spacer2
|
protected com.ibm.etools.systems.model.SystemRegistry |
sr
|
protected boolean |
srcFilesOnly
|
protected com.ibm.etools.systems.core.ui.view.SystemViewForm |
tree
|
protected String |
treeTip
|
protected String |
verbage
|
protected Label |
verbageLabel
|
Fields inherited from interface com.ibm.etools.systems.core.ISystemMessages |
---|
FILEMSG_ARCHIVE_CORRUPTED, FILEMSG_COPY_FILE_FAILED, FILEMSG_COPY_ROOT, FILEMSG_CREATE_FILE_FAILED, FILEMSG_CREATE_FILE_FAILED_EXIST, FILEMSG_CREATE_FOLDER_FAILED, FILEMSG_CREATE_FOLDER_FAILED_EXIST, FILEMSG_CREATE_RESOURCE_NOTVISIBLE, FILEMSG_DELETE_FILE_FAILED, FILEMSG_DELETING, FILEMSG_DESTINATION_CONFLICTING, FILEMSG_DESTINATION_EMPTY, FILEMSG_ERROR_NOFILETYPES, FILEMSG_EXPORT_ERROR, FILEMSG_EXPORT_FAILED, FILEMSG_EXPORT_NONE_SELECTED, FILEMSG_EXPORT_PROBLEMS, FILEMSG_FILE_NOTFOUND, FILEMSG_FOLDER_IS_FILE, FILEMSG_FOLDER_NOTEMPTY, FILEMSG_FOLDER_NOTFOUND, FILEMSG_FOLDER_NOTFOUND_WANTTOCREATE, FILEMSG_IMPORT_ERROR, FILEMSG_IMPORT_FAILED, FILEMSG_IMPORT_FILTERING, FILEMSG_IMPORT_NONE_SELECTED, FILEMSG_IMPORT_PROBLEMS, FILEMSG_IMPORT_SELF, FILEMSG_IO_ERROR, FILEMSG_MOVE_FILE_FAILED, FILEMSG_MOVE_TARGET_DESCENDS_FROM_SOUCE, FILEMSG_MOVE_TARGET_EQUALS_SOURCE, FILEMSG_NOT_WRITABLE, FILEMSG_RENAME_FILE_FAILED, FILEMSG_RENAME_RESOURCE_NOTVISIBLE, FILEMSG_SECURITY_ERROR, FILEMSG_SOURCE_EMPTY, FILEMSG_SOURCE_IS_FILE, FILEMSG_TARGET_EXISTS, FILEMSG_VALIDATE_FILEFILTERSTRING_EMPTY, FILEMSG_VALIDATE_FILEFILTERSTRING_NOINCLUDES, FILEMSG_VALIDATE_FILEFILTERSTRING_NOTUNIQUE, FILEMSG_VALIDATE_FILEFILTERSTRING_NOTVALID, MSG_ADDTO_VIRTUAL_DEST, MSG_CACHE_UNABLE_TO_SYNCH, MSG_CACHE_UPLOAD_BEFORE_DELETE, MSG_COMBINETO_VIRTUAL_DEST, MSG_COMM_AUTH_FAILED, MSG_COMM_CLIENT_OLDER_WARNING, MSG_COMM_CONNECT_FAILED, MSG_COMM_DAEMON_NOTSTARTED, MSG_COMM_ENVVAR_DUPLICATE, MSG_COMM_ENVVAR_INVALIDCHAR, MSG_COMM_ENVVAR_NONAME, MSG_COMM_INCOMPATIBLE_PROTOCOL, MSG_COMM_INCOMPATIBLE_UPDATE, MSG_COMM_INVALID_LOGIN, MSG_COMM_PORT_WARNING, MSG_COMM_PWD_BLANKFIELD, MSG_COMM_PWD_EXISTS, MSG_COMM_PWD_INVALID, MSG_COMM_PWD_MISMATCH, MSG_COMM_REXEC_NOTSTARTED, MSG_COMM_SERVER_NOTSTARTED, MSG_COMM_SERVER_OLDER_WARNING, MSG_CONFIRM_CHANGES, MSG_CONFIRM_CHANGES_CANCELABLE, MSG_CONFIRM_DELETE, MSG_CONFIRM_DELETE_USERACTION, MSG_CONFIRM_DELETE_USERTYPE, MSG_CONFIRM_DELETEPROFILE, MSG_CONFIRM_DELETEREMOTE, MSG_CONFIRM_ENABLE_CLASSIC_HELP, MSG_CONFIRM_RELOADRSE, MSG_CONNECT_CANCELLED, MSG_CONNECT_DAEMON_FAILED, MSG_CONNECT_DAEMON_FAILED_EXCEPTION, MSG_CONNECT_FAILED, MSG_CONNECT_PROGRESS, MSG_CONNECT_SSL_EXCEPTION, MSG_CONNECT_UNKNOWNHOST, MSG_CONNECTING_TO_SERVER, MSG_CONNECTION_DELETED, MSG_CONNECTWITHPORT_PROGRESS, MSG_CONVERTTO_VIRTUAL_DEST, MSG_COPY_PROGRESS, MSG_COPYCONNECTION_PROGRESS, MSG_COPYCONNECTIONS_PROGRESS, MSG_COPYFILTER_PROGRESS, MSG_COPYFILTERPOOL_COMPLETE, MSG_COPYFILTERPOOL_PROGRESS, MSG_COPYFILTERPOOLS_PROGRESS, MSG_COPYFILTERS_PROGRESS, MSG_COPYFILTERSTRING_PROGRESS, MSG_COPYFILTERSTRINGS_PROGRESS, MSG_COPYGENERIC_PROGRESS, MSG_COPYSUBSYSTEMS_PROGRESS, MSG_COPYTHINGGENERIC_PROGRESS, MSG_DEST_NOT_IN_SOURCE, MSG_DEST_TARGET_READONLY, MSG_DISCONNECT_CANCELLED, MSG_DISCONNECT_FAILED, MSG_DISCONNECT_PROGRESS, MSG_DISCONNECTWITHPORT_PROGRESS, MSG_DOWNLOAD_ALREADY_OPEN_IN_EDITOR, MSG_DOWNLOAD_NO_WRITE, MSG_DOWNLOAD_PROGRESS, MSG_DOWNLOADING_PROGRESS, MSG_ERROR_CONNECTION_NOTFOUND, MSG_ERROR_ENABLE_CLASSIC_HELP, MSG_ERROR_EXTENSION_EMPTY, MSG_ERROR_FILE_NOTFOUND, MSG_ERROR_FILENAME_INVALID, MSG_ERROR_FOLDER_NOTFOUND, MSG_ERROR_FOLDERORFILE_NOTFOUND, MSG_ERROR_GENERAL, MSG_ERROR_LIST_TITLE, MSG_ERROR_PROFILE_NOTFOUND, MSG_ERROR_UNEXPECTED, MSG_EXCEPTION_DELETING, MSG_EXCEPTION_MOVING, MSG_EXCEPTION_OCCURRED, MSG_EXCEPTION_RENAMING, MSG_EXPAND_CANCELLED, MSG_EXPAND_CONNECTIONCREATED, MSG_EXPAND_EMPTY, MSG_EXPAND_FAILED, MSG_EXPAND_FILTERCREATED, MSG_EXPAND_PREFIX, MSG_EXTRACT_PROGRESS, MSG_FILE_INUSE, MSG_FILTERPOOL_CREATED, MSG_FOLDER_INUSE, MSG_GENERIC_E, MSG_GENERIC_E_HELP, MSG_GENERIC_E_TWOPARMS_HELP, MSG_GENERIC_I, MSG_GENERIC_I_HELP, MSG_GENERIC_I_TWOPARMS_HELP, MSG_GENERIC_Q, MSG_GENERIC_Q_HELP, MSG_GENERIC_Q_TWOPARMS_HELP, MSG_GENERIC_U, MSG_GENERIC_U_HELP, MSG_GENERIC_U_TWOPARMS_HELP, MSG_GENERIC_W, MSG_GENERIC_W_HELP, MSG_GENERIC_W_TWOPARMS_HELP, MSG_HOSTNAME_NOTFOUND, MSG_HOSTNAME_VERIFYING, MSG_IMPORT_EXPORT_UNABLE_TO_USE_CONNECTION, MSG_IMPORT_EXPORT_UNEXPECTED_EXCEPTION, MSG_INITIALIZING_SERVER, MSG_LIST_CANCELLED, MSG_LIST_PREFIX, MSG_LOADING_PROFILE_SHOULDBE_ACTIVATED, MSG_LOADING_PROFILE_SHOULDNOTBE_DEACTIVATED, MSG_MOVE_PROGRESS, MSG_MOVECONNECTION_PROGRESS, MSG_MOVECONNECTIONS_PROGRESS, MSG_MOVEFILTER_PROGRESS, MSG_MOVEFILTERPOOL_COMPLETE, MSG_MOVEFILTERPOOL_PROGRESS, MSG_MOVEFILTERPOOLS_PROGRESS, MSG_MOVEFILTERS_PROGRESS, MSG_MOVEFILTERSTRING_PROGRESS, MSG_MOVEFILTERSTRINGS_PROGRESS, MSG_MOVEGENERIC_PROGRESS, MSG_MOVETHINGGENERIC_PROGRESS, MSG_OFFLINE_CANT_CONNECT, MSG_OPERATION_CANCELLED, MSG_OPERATION_DISCONNECTED, MSG_OPERATION_FAILED, MSG_OPERATION_FINISHED, MSG_OPERATION_RUNNING, MSG_OPERTION_STOPPED, MSG_PERCENT_DONE, MSG_PREFIX, MSG_QUERY_PROGRESS, MSG_QUERY_PROPERTIES_PROGRESS, MSG_REMOTE_JAR_EXPORT_OVERWRITE_FILE, MSG_REMOTE_SEARCH_INVALID_REGEX, MSG_RENAMEFILTER_FAILED, MSG_RESOLVE_PROGRESS, MSG_RESTORE_FAILED, MSG_RUN_PROGRESS, MSG_SAVE_CHANGES_PENDING, MSG_SAVE_FAILED, MSG_SAVING_PROGRESS, MSG_SET_PROGRESS, MSG_SET_PROPERTIES_PROGRESS, MSG_STARTING_SERVER_VIA_DAEMON, MSG_STARTING_SERVER_VIA_REXEC, MSG_SYNCHRONIZE_PROGRESS, MSG_TRANSFER_INVALID, MSG_UCMD_INVOCATION_EMPTY, MSG_UDA_LOAD_ERROR, MSG_UDA_ROOTTAG_ERROR, MSG_UFF_PATTERN_EMPTY, MSG_UFF_PATTERN_INVALID_REGEX, MSG_UNDERCONSTRUCTION, MSG_UPDATEFILTER_FAILED, MSG_UPLOAD_FILE_EXISTS, MSG_UPLOAD_PROGRESS, MSG_UPLOADING_PROGRESS, MSG_VALIDATE_ARCHIVE_NAME, MSG_VALIDATE_COMPILELABEL_EMPTY, MSG_VALIDATE_COMPILELABEL_NOTUNIQUE, MSG_VALIDATE_COMPILELABEL_NOTVALID, MSG_VALIDATE_COMPILESTRING_EMPTY, MSG_VALIDATE_COMPILESTRING_NOTVALID, MSG_VALIDATE_CONNECTIONNAME_EMPTY, MSG_VALIDATE_CONNECTIONNAME_NOTUNIQUE, MSG_VALIDATE_CONNECTIONNAME_NOTUNIQUE_OTHERPROFILE, MSG_VALIDATE_CONNECTIONNAME_NOTVALID, MSG_VALIDATE_ENTRY_EMPTY, MSG_VALIDATE_ENTRY_NOTUNIQUE, MSG_VALIDATE_ENTRY_NOTVALID, MSG_VALIDATE_FILENAME_NOTVALID, MSG_VALIDATE_FILTERNAME_EMPTY, MSG_VALIDATE_FILTERNAME_NOTUNIQUE, MSG_VALIDATE_FILTERNAME_NOTVALID, MSG_VALIDATE_FILTERPOOLNAME_EMPTY, MSG_VALIDATE_FILTERPOOLNAME_NOTUNIQUE, MSG_VALIDATE_FILTERPOOLNAME_NOTVALID, MSG_VALIDATE_FILTERSTRING_ALREADYEXISTS, MSG_VALIDATE_FILTERSTRING_DUPLICATES, MSG_VALIDATE_FILTERSTRING_EMPTY, MSG_VALIDATE_FILTERSTRING_NOTUNIQUE, MSG_VALIDATE_FILTERSTRING_NOTVALID, MSG_VALIDATE_FOLDERNAME_NOTVALID, MSG_VALIDATE_HOSTNAME_EMPTY, MSG_VALIDATE_NAME_EMPTY, MSG_VALIDATE_NAME_NOTUNIQUE, MSG_VALIDATE_NAME_NOTVALID, MSG_VALIDATE_NOT_NUMERIC, MSG_VALIDATE_NUMBER_EMPTY, MSG_VALIDATE_NUMBER_NOTVALID, MSG_VALIDATE_NUMBER_OUTOFRANGE, MSG_VALIDATE_PASSWORD_EMPTY, MSG_VALIDATE_PASSWORD_EXPIRED, MSG_VALIDATE_PATH_EMPTY, MSG_VALIDATE_PATH_NOTUNIQUE, MSG_VALIDATE_PATH_NOTVALID, MSG_VALIDATE_PORT_EMPTY, MSG_VALIDATE_PORT_NOTVALID, MSG_VALIDATE_PROFILENAME_EMPTY, MSG_VALIDATE_PROFILENAME_NOTUNIQUE, MSG_VALIDATE_PROFILENAME_NOTVALID, MSG_VALIDATE_PROFILENAME_RESERVED, MSG_VALIDATE_RENAME_EMPTY, MSG_VALIDATE_RENAME_NOTUNIQUE, MSG_VALIDATE_RENAME_NOTVALID, MSG_VALIDATE_RENAME_OLDEQUALSNEW, MSG_VALIDATE_SRCTYPE_EMPTY, MSG_VALIDATE_SRCTYPE_NOTUNIQUE, MSG_VALIDATE_SRCTYPE_NOTVALID, MSG_VALIDATE_UDACMD_EMPTY, MSG_VALIDATE_UDACMD_NOTVALID, MSG_VALIDATE_UDACMT_EMPTY, MSG_VALIDATE_UDACMT_NOTVALID, MSG_VALIDATE_UDANAME_EMPTY, MSG_VALIDATE_UDANAME_NOTUNIQUE, MSG_VALIDATE_UDANAME_NOTVALID, MSG_VALIDATE_UDTNAME_EMPTY, MSG_VALIDATE_UDTNAME_NOTUNIQUE, MSG_VALIDATE_UDTNAME_NOTVALID, MSG_VALIDATE_UDTTYPES_EMPTY, MSG_VALIDATE_UDTTYPES_NOTVALID, MSG_VALIDATE_USERID_EMPTY, MSG_VALIDATE_USERID_NOTVALID, MSG_WIZARD_PAGE_ERROR, NEW_FILE_ACTION, NEW_FILE_WIZARD, NEW_FOLDER_ACTION, NEW_FOLDER_WIZARD, PLUGIN_ID, PREFIX, RESID_PREFIX |
Fields inherited from interface com.ibm.etools.iseries.core.ui.widgets.IISeriesSelectionTypes |
---|
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 | |
---|---|
ISeriesSelectQSYSForm(com.ibm.etools.systems.core.ui.messages.ISystemMessageLine msgLine,
Object caller,
int selectionType,
boolean srcFilesOnly)
Constructor |
Method Summary | |
---|---|
void |
addFilter(String filterString)
Add a filter that users can expand to start their search. |
void |
addFilter(com.ibm.etools.systems.filters.SystemFilter filter)
Add a filter that users can expand to start their search. |
void |
addFilters(Vector filterStrings)
Add one or more filters that users can expand to start their search. |
protected com.ibm.etools.systems.filters.SystemFilter[] |
addQuickFilter(com.ibm.etools.systems.filters.SystemFilter newFilter)
Add a filter to the default filter list |
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. |
com.ibm.etools.systems.filters.SystemFilter |
createFilterByPrompting(com.ibm.etools.systems.filters.SystemFilter filterPrompt,
Shell shell)
Prompt the user to create a new filter as a result of the user expanding a promptable transient filter (one of the ones created above). |
protected com.ibm.etools.systems.filters.impl.SystemFilterSimpleImpl |
createQuickFilter(String name,
String filterString)
Create a transient filter given the name and filter string |
void |
enableAddMode(com.ibm.etools.systems.core.ui.IRemoteSelectionAddListener caller)
Enable Add mode. |
protected com.ibm.etools.systems.core.ui.view.ISystemViewElementAdapter |
getAdapter(Object o)
Returns the implementation of ISystemViewElement for the given object. |
protected Object |
getFirstSelection(ISelection selection)
Return first item currently selected. |
Control |
getInitialFocusControl()
Return control to recieve initial focus |
protected com.ibm.etools.systems.filters.impl.SystemFilterSimpleImpl |
getLiblQuickFilter()
Create a commonly needed transient filter for *LIBL |
boolean |
getMultipleSelectionMode()
Return the multiple selection mode state |
protected com.ibm.etools.systems.filters.SystemFilter[] |
getQuickFilters()
Build and return array of transient filters to be shown when the user expands a connection |
protected com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter |
getRemoteAdapter(Object o)
Returns the implementation of ISystemRemoteElement for the given object. |
com.ibm.etools.systems.model.SystemConnection |
getSelectedConnection()
Return selected connection |
Object |
getSelectedObject()
Return first selected object |
Object[] |
getSelectedObjects()
Return all selected objects. |
protected Object[] |
getSelections(ISelection selection)
Return all items currently selected. |
protected Shell |
getShell()
Return shell of parent dialog or wizard |
com.ibm.etools.systems.core.ui.view.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 e)
User selected something in the tree. |
void |
setAutoExpandDepth(int depth)
Specify the zero-based auto-expand level for the tree. |
void |
setDefaultConnection(com.ibm.etools.systems.model.SystemConnection conn)
Set the connection to pre-select and expand |
protected void |
setErrorMessage(String msg)
|
protected void |
setErrorMessage(com.ibm.etools.systems.core.messages.SystemMessage msg)
|
void |
setMemberTypes(String[] mbrTypes)
Set the members types and attributes to subset by, when the selection mode is members |
void |
setMessage(String message)
Set the message shown as the text at the top of the form. |
void |
setMessageLine(com.ibm.etools.systems.core.ui.messages.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. |
protected void |
setNameText(String text)
Set the hidden name field that enables the OK button |
void |
setObjectTypes(String[] objTypes)
Set the object types and attributes to subset by, when the selection mode is anything but libraries. |
void |
setPageComplete()
Inform caller of page-complete status of this form |
void |
setPreSelection(com.ibm.etools.systems.model.SystemConnection connection,
String libraryName)
Set an library to preselect. |
void |
setPreSelection(com.ibm.etools.systems.model.SystemConnection connection,
String libraryName,
String objectName)
Set an object to preselect. |
void |
setRootLibrary(ISeriesLibrary library)
Set the root library from which to start listing objects. |
void |
setRootLibrary(com.ibm.etools.systems.model.SystemConnection connection,
String libraryName)
Set the root library from which to start listing objects. |
void |
setSelectionTreeToolTipText(String tip)
Set the tooltip text for the remote systems tree from which an item is selected. |
void |
setSelectionValidator(com.ibm.etools.systems.core.ui.validators.IValidatorRemoteSelection selectionValidator)
Specify a validator to use when the user selects a remote file or folder. |
void |
setShowLiblFilter(boolean show)
Set to false to not show "*LIBL" library filter on initial expand of a connection. |
void |
setShowNewConnectionPrompt(boolean show)
Set to true if a "New Connection..." special connection is to be shown for creating new connections |
void |
setShowPropertySheet(boolean show)
Show the property sheet on the right hand side, to show the properties of the selected object. |
void |
setShowYourLibrariesPrompt(boolean show)
Set to false to not show "YourLibraries..." special filter prompt |
void |
setSystemConnection(com.ibm.etools.systems.model.SystemConnection conn)
Set the connection to restrict the user to seeing |
boolean |
toggleShowPropertySheet(Shell shell,
Control contents)
Show or hide the property sheet. |
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 com.ibm.etools.systems.core.ui.view.SystemViewForm tree
protected com.ibm.etools.systems.core.ui.view.SystemPropertySheetForm ps
protected com.ibm.etools.systems.core.ui.messages.ISystemMessageLine msgLine
protected Composite outerParent
protected Composite ps_composite
protected com.ibm.etools.systems.model.SystemRegistry sr
protected String verbage
protected String treeTip
protected int selectionType
protected boolean srcFilesOnly
protected boolean showLiblFilter
protected boolean showPropertySheet
protected boolean showYourLibrariesPrompt
protected boolean forceDefaultFiltersNull
protected boolean addMode
protected boolean multipleSelectionMode
protected com.ibm.etools.systems.core.SystemRemoteObjectMatcher objectMatcher
protected com.ibm.etools.systems.model.SystemConnection defaultConnection
protected com.ibm.etools.systems.core.ui.IRemoteSelectionAddListener addButtonCallback
protected Vector listeners
protected com.ibm.etools.systems.core.ui.validators.IValidatorRemoteSelection selectionValidator
protected Object[] outputObjects
protected com.ibm.etools.systems.model.SystemConnection outputConnection
protected ResourceBundle rb
protected ISeriesSelectQSYSObjectAPIProvider inputProvider
protected com.ibm.etools.systems.filters.impl.SystemFilterSimpleImpl liblQuickFilter
protected Hashtable convertedObjects
protected com.ibm.etools.systems.filters.SystemFilter[] defaultFilters
protected com.ibm.etools.systems.filters.SystemFilter preSelectFilter
protected boolean initDone
protected boolean contentsCreated
protected Object caller
protected boolean callerInstanceOfWizardPage
protected boolean callerInstanceOfSystemPromptDialog
protected int autoExpandDepth
Constructor Detail |
public ISeriesSelectQSYSForm(com.ibm.etools.systems.core.ui.messages.ISystemMessageLine msgLine, Object caller, int selectionType, boolean srcFilesOnly)
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 filessetSystemConnection(SystemConnection)
,
setShowNewConnectionPrompt(boolean)
,
setSelectionTreeToolTipText(String)
Method Detail |
public void setSystemConnection(com.ibm.etools.systems.model.SystemConnection conn)
public void setDefaultConnection(com.ibm.etools.systems.model.SystemConnection conn)
public void setShowNewConnectionPrompt(boolean show)
public void setShowYourLibrariesPrompt(boolean show)
public void setShowLiblFilter(boolean show)
public void setMessage(String message)
public void setSelectionTreeToolTipText(String tip)
public void addFilter(String filterString)
This is really a filter string versus a filter, but it is realized in the GUI as a temporary filter.
public void addFilter(com.ibm.etools.systems.filters.SystemFilter filter)
This is really a filter versus a filter string, so you can decide on the name
public void addFilters(Vector filterStrings)
These are really filter strings versus filters, but they are realized in the GUI as temporary filters.
public void setRootLibrary(com.ibm.etools.systems.model.SystemConnection connection, String libraryName)
Not applicable for select-library mode.
connection
- The connection to the remote system containing the root librarylibraryName
- The name of the library to start listing frompublic void setRootLibrary(ISeriesLibrary library)
Not applicable for select-library mode.
library
- An ISeriesLibrary objectpublic void setPreSelection(com.ibm.etools.systems.model.SystemConnection connection, String libraryName)
public void setPreSelection(com.ibm.etools.systems.model.SystemConnection connection, String libraryName, String objectName)
public void setObjectTypes(String[] objTypes)
Each String can be a simple type like "*FILE" or a type and attribute, colon-separated, like "*FILE:DSPF".
Here are the default object types per selection type:
if (selectionType == BROWSEFOR_FILE)
setObjectTypes(new String[] {"*FILE:*"});
else if (selectionType == BROWSEFOR_MEMBER)
setObjectTypes(new String[] {"*FILE:PF-*"});
else if (selectionType == BROWSEFOR_FIELD)
setObjectTypes(new String[] {"*FILE:PF-DTA"});
else if (selectionType == BROWSEFOR_RECORD)
setObjectTypes(new String[] {"*FILE:DSPF", "*FILE:PRTF"});
else if (selectionType == BROWSEFOR_COMMAND)
setObjectTypes(new String[] {"*CMD"});
public void setMemberTypes(String[] mbrTypes)
Each String can be a simple type like "RPG" or a generic string like "RPG*"
public void setAutoExpandDepth(int depth)
public void setShowPropertySheet(boolean show)
Default is false
public void enableAddMode(com.ibm.etools.systems.core.ui.IRemoteSelectionAddListener caller)
The caller will be called back when any remote object(s) is/are selected to decide whether to enable the Add button. It is also called when Add is pressed.
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(com.ibm.etools.systems.core.ui.validators.IValidatorRemoteSelection selectionValidator)
public Object getSelectedObject()
public Object[] getSelectedObjects()
setMultipleSelectionMode(boolean)
public com.ibm.etools.systems.model.SystemConnection getSelectedConnection()
public com.ibm.etools.systems.core.ui.view.SystemViewForm getSystemViewForm()
public boolean getMultipleSelectionMode()
public void setMessageLine(com.ibm.etools.systems.core.ui.messages.ISystemMessageLine msgLine)
public Control getInitialFocusControl()
public boolean toggleShowPropertySheet(Shell shell, Control contents)
shell
- Use getShell() in your dialog or wizard pagecontents
- Use getContents() in your dialog or wizard page
public Control createContents(Shell shell, Composite parent)
parent
- The parent compositepublic boolean verify()
protected void setNameText(String text)
protected com.ibm.etools.systems.core.ui.view.ISystemViewElementAdapter getAdapter(Object o)
protected com.ibm.etools.systems.core.ui.view.ISystemRemoteElementAdapter getRemoteAdapter(Object o)
public void selectionChanged(SelectionChangedEvent e)
selectionChanged
in interface ISelectionChangedListener
protected Object getFirstSelection(ISelection selection)
protected Object[] getSelections(ISelection selection)
public boolean isPageComplete()
public void setPageComplete()
protected void clearErrorMessage()
protected void setErrorMessage(String msg)
protected void setErrorMessage(com.ibm.etools.systems.core.messages.SystemMessage msg)
protected com.ibm.etools.systems.filters.SystemFilter[] getQuickFilters()
protected com.ibm.etools.systems.filters.SystemFilter[] addQuickFilter(com.ibm.etools.systems.filters.SystemFilter newFilter)
protected com.ibm.etools.systems.filters.impl.SystemFilterSimpleImpl createQuickFilter(String name, String filterString)
protected com.ibm.etools.systems.filters.impl.SystemFilterSimpleImpl getLiblQuickFilter()
public com.ibm.etools.systems.filters.SystemFilter createFilterByPrompting(com.ibm.etools.systems.filters.SystemFilter filterPrompt, Shell shell) throws Exception
createFilterByPrompting
in interface com.ibm.etools.systems.core.ui.view.ISystemSelectRemoteObjectAPIProviderCaller
Exception
protected Shell getShell()
|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |