|
Rational Developer for Power Systems Software V8.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSystemBaseDialogAction
com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseDialogAction
com.ibm.etools.iseries.rse.ui.actions.select.IBMiSelectAbstractAction
com.ibm.etools.iseries.rse.ui.actions.select.QSYSSelectFieldAction
public class QSYSSelectFieldAction
A reusable action for a dialog prompting for a field within a *FILE object on a remote iSeries system. The user is given a tree view to drill down and select from.
Browse for field
.---------------------------------------------.
| + Library1 |
| - Library2 |
| + File1 |
| - File2 |
| + Record1 |
| - Record2 |
| Field1 |
| Field2 |
| Field3 |
| + Record3 |
| + File3 |
| + Library3 |
.---------------------------------------------.
To configure the dialog, call these input methods:
setFileType(String) or setFileTypes(String[])
IBMiSelectAbstractAction.setShowPropertySheet(boolean) or IBMiSelectAbstractAction.setShowPropertySheet(boolean,boolean)
#enableAddMode(IAS400AddFieldListener)
#setSystemConnection(SystemConnection) or #setDefaultConnection(SystemConnection)
IBMiSelectAbstractAction.addLibraryFilter(String)
addFileFilter(String)
#setRootLibrary(SystemConnection, String)
To override the default prompt labels and tooltip text, call these input methods:
IBMiSelectAbstractAction.setMessage(String)
IBMiSelectAbstractAction.setDialogTitle(String)
IBMiSelectAbstractAction.setSelectionTreeToolTipText(String)
After running, call these methods to get the output:
getSelectedField() or getSelectedFields()
IBMiSelectAbstractAction.getSelectedConnection()
getSelectedFieldName() or getSelectedFieldNames()
getSelectedRecordName()
getSelectedFileName()
getSelectedLibraryName()
| Field Summary | |
|---|---|
static String |
copyright
|
protected static IQSYSFileField[] |
EMPTY_FIELD_ARRAY
|
protected String |
objType
|
| Fields inherited from class com.ibm.etools.iseries.rse.ui.actions.select.IBMiSelectAbstractAction |
|---|
addButton, addButtonCallback, addFilterStrings, addLabel, addToolTipText, autoExpandDepth, defaultConnection, dlg, EMPTY_OBJECT_ARRAY, EMPTY_STRING_ARRAY, multipleSelectionMode, objTypes, onlyConnection, outputConnection, preSelectLibraryName, preSelectObjectName, rootLibraryName, selectionType, showLiblFilter, showNewConnectionPrompt, showPropertySheet, showPropertySheetDetailsButton, showPropertySheetDetailsButtonInitialState, showYourLibrariesPrompt, title, treeTip, verbage |
| Fields inherited from interface com.ibm.etools.iseries.rse.ui.actions.select.IQSYSSelectFieldAction |
|---|
Copyright |
| Constructor Summary | |
|---|---|
|
QSYSSelectFieldAction(Shell shell)
Base constructor that offers the default configuration of the dialog All iseries connections are listed, and the first one is selected There is a "New Connection..." special connection object to create new iSeries connections All defaults can be changed via set methods. |
protected |
QSYSSelectFieldAction(Shell shell,
String label,
String tooltip)
Base constructor used by child classes, to supply their own action label. |
| Method Summary | |
|---|---|
void |
addFieldFilter(String filterString)
Add a field name filter consistent with field filter string syntax: |
void |
addFileFilter(String fileFilter)
Add a file filter to the initial list shown when a connection is expanded The file name can be simple or generic and must be qualified, as in LIB/FILE* |
IQSYSFileField |
getSelectedField()
Return selected field. |
String |
getSelectedFieldName()
Return selected field's name |
String[] |
getSelectedFieldNames()
Return selected field names |
IQSYSFileField[] |
getSelectedFields()
Return selected fields. |
String |
getSelectedFileName()
Return selected field's file name |
String |
getSelectedLibraryName()
Return selected field's library name |
String |
getSelectedName()
Return selected name. |
String |
getSelectedRecordName()
Return selected field's record name |
void |
reset()
Reset all attributes to initial values. |
void |
setFileType(String fileType)
Set the file type for the files to list fields in. |
void |
setFileTypes(String[] fileTypes)
Set the file types for the files to list members in. |
| Methods inherited from class com.ibm.etools.iseries.rse.ui.actions.select.IBMiSelectAbstractAction |
|---|
addFilter, addLibraryFilter, createDialog, enableAddMode, enableAddMode, getDialogValue, getFileSubSystem, getSelectDialog, getSelected, getSelectedConnection, getSelectedObjects, setAddModeLabel, setAutoExpandDepth, setDefaultConnection, setDialogTitle, setMessage, setMultipleSelectionMode, setObjectTypes, setPreSelection, setPreSelection, setRootLibrary, setSelectionTreeToolTipText, setSelectionValidator, setShowLiblFilter, setShowNewConnectionPrompt, setShowPropertySheet, setShowPropertySheet, setShowYourLibrariesPrompt, setSystemConnection |
| Methods inherited from class com.ibm.etools.iseries.rse.ui.actions.QSYSSystemBaseDialogAction |
|---|
getIBMiConnection, updateSelection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ibm.etools.iseries.rse.ui.actions.select.IIBMiSelectAction |
|---|
addFilter, addLibraryFilter, getSelected, getSelectedConnection, getSelectedObjects, setDefaultConnection, setDialogTitle, setMessage, setMultipleSelectionMode, setSelectionTreeToolTipText, setShowNewConnectionPrompt, setShowPropertySheet, setShowYourLibrariesPrompt, setSystemConnection |
| Field Detail |
|---|
public static final String copyright
protected String objType
protected static final IQSYSFileField[] EMPTY_FIELD_ARRAY
| Constructor Detail |
|---|
public QSYSSelectFieldAction(Shell shell)
protected QSYSSelectFieldAction(Shell shell,
String label,
String tooltip)
| Method Detail |
|---|
public void addFieldFilter(String filterString)
LIB/FILE RCDNAME(R1) FLDNAME(F*)
addFieldFilter in interface IQSYSSelectFieldActionpublic void addFileFilter(String fileFilter)
addFileFilter in interface IQSYSSelectFieldActionpublic void setFileType(String fileType)
The default is *FILE:PF-DTA
For convenience you can skip the *FILE and just pass an attribute.
public void setFileTypes(String[] fileTypes)
The default is *FILE:PF-DTA
public void reset()
reset in interface IIBMiSelectActionreset in class IBMiSelectAbstractActionpublic String getSelectedName()
getSelectedName in interface IIBMiSelectActiongetSelectedField()public String getSelectedLibraryName()
getSelectedLibraryName in interface IIBMiSelectActiongetSelectedField()public String getSelectedFileName()
getSelectedFileName in interface IQSYSSelectFieldActiongetSelectedField()public String getSelectedRecordName()
getSelectedRecordName in interface IQSYSSelectFieldActiongetSelectedField()public String getSelectedFieldName()
getSelectedFieldName in interface IQSYSSelectFieldActiongetSelectedField()public String[] getSelectedFieldNames()
getSelectedField()public IQSYSFileField getSelectedField()
getSelectedField in interface IQSYSSelectFieldActionpublic IQSYSFileField[] getSelectedFields()
|
Rational Developer for Power Systems Software V8.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||