|
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 Composite com.ibm.etools.iseries.rse.ui.widgets.QSYSBasePrompt com.ibm.etools.iseries.rse.ui.widgets.QSYSLibraryPrompt
public class QSYSLibraryPrompt
This re-usable composite widget is for prompting the user for a library name. The library name widget is a combo that lists special values and previously entered (historical) names. Beside the combo is a button with a Browse label for selecting a library from a remote list.
The composite is layed as follows:
Library: ______________________v Browse...
You must specify whether this prompt is for a generic library name like ABC* or a scalar library name like ABC1. Beyond appropriate error checking it also affects the special-values contents of the dropdown. Both will show *LIBL and *CURLIB, but only Generic library prompts will support *ALL, *ALLUSR and *USRLIBL.
setLibraryChangeListener(IQSYSLibraryPromptListener)
Field Summary | |
---|---|
protected boolean |
allowCurLib
|
protected boolean |
allowGeneric
|
protected boolean |
allowLibl
|
static String |
copyright
|
protected ValidatorIBMiLibrary |
libValidator
|
protected IQSYSLibraryPromptListener |
listener
|
Fields inherited from class com.ibm.etools.iseries.rse.ui.widgets.QSYSBasePrompt |
---|
browseAction, browseButton, defaultConnection, enableBrowse, gridColumns, ignoreChanges, onlyConnection, promptCombo, promptLabel, rb, showNewConnection, testing |
Constructor Summary | |
---|---|
QSYSLibraryPrompt(Composite parent)
Constructor when generic names are allowed and no special style is desired for the composite |
|
QSYSLibraryPrompt(Composite parent,
int style)
Constructor when generic names are allowed |
|
QSYSLibraryPrompt(Composite parent,
int style,
boolean allowSpecialAndGenericLibs)
Constructor when you only want to allow real library names, not generic or *libl or *curlib, or you want to allow everything including *libl, *curlib, *alllibl, *usrlibl, etc |
|
QSYSLibraryPrompt(Composite parent,
int style,
boolean allowGeneric,
boolean allowLibl)
Constructor with all possible options |
|
QSYSLibraryPrompt(Composite parent,
int style,
boolean allowGeneric,
boolean allowLibl,
String historyKey)
Constructor with all possible options including ability to specify your own history key to use |
|
QSYSLibraryPrompt(Composite parent,
int style,
boolean allowSpecialAndGenericLibs,
String historyKey)
Constructor when you only want to allow real library names, not generic or *libl or *curlib and want to specify your own history key for the combo, or you want to allow everything including *libl, *curlib, *alllibl, *usrlibl, etc |
Method Summary | |
---|---|
protected void |
addOurButtonSelectionListener()
Library's Browse button pressed handler |
boolean |
allowsGeneric()
Returns whether generics are allowed. |
protected IIBMiSelectAction |
getBrowseAction(Shell shell,
IHost defaultConnection,
boolean onlyConnection)
Overridable method. |
String |
getLibraryName()
Get the user entered or selected library name. |
ValidatorIBMiLibrary |
getLibraryValidator()
Get the library validator in case you want to effect it. |
protected void |
populateCombo(SystemHistoryCombo combo,
boolean allowGeneric,
boolean allowLibl)
Populates the library combo. |
void |
removeLibraryChangeListener()
Clear listener set by call to setLibraryChangeListener |
void |
setDefaultConnection(IHost defaultConnection)
Set the default connection to preselect when Browse is pressed. |
void |
setIHost(IHost onlyConnection)
Set the system connection to use when Browse is pressed. |
void |
setLibraryChangeListener(IQSYSLibraryPromptListener listener)
Identify caller that is interested in being informed of live error checking status |
void |
setLibraryName(String name)
Set the library name displayed in the combo box. |
void |
setLibraryPromptLabel(String label)
Set the library prompt label. |
void |
setLibraryValidator(ValidatorIBMiLibrary libValidator)
Set the library validator for syntax checking. |
SystemMessage |
validateLibInput()
Validate library string, as it is typed, or in batch if you wish to call directly. |
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 boolean allowGeneric
protected boolean allowLibl
protected boolean allowCurLib
protected IQSYSLibraryPromptListener listener
protected ValidatorIBMiLibrary libValidator
Constructor Detail |
---|
public QSYSLibraryPrompt(Composite parent)
parent
- Parent composite#setDefaultHost(IHost)
public QSYSLibraryPrompt(Composite parent, int style)
parent
- Parent compositestyle
- The SWT style flags for overall composite widget. Typically just pass SWT.NULL#setDefaultHost(IHost)
public QSYSLibraryPrompt(Composite parent, int style, boolean allowSpecialAndGenericLibs)
parent
- Parent compositestyle
- The SWT style flags for overall composite widget. Typically just pass SWT.NULLboolean
- Pass false to only allow a real library name, pass true to allow generic names and *CURLIB and *LIBL#setDefaultHost(IHost)
public QSYSLibraryPrompt(Composite parent, int style, boolean allowSpecialAndGenericLibs, String historyKey)
parent
- Parent compositestyle
- The SWT style flags for overall composite widget. Typically just pass SWT.NULLboolean
- Pass false to only allow a real library name, pass true to allow generic names and *CURLIB and *LIBLhistoryKey
- The key to use for the history, or null to use our default. Only needed if you want a unique history.#setDefaultHost(IHost)
public QSYSLibraryPrompt(Composite parent, int style, boolean allowGeneric, boolean allowLibl)
parent
- Parent compositestyle
- The SWT style flags for overall composite widget. Typically just pass SWT.NULLallowGeneric
- Pass true to allow generic names in the entry fieldallowLibl
- Pass false if allowGeneric is false, to restrict user from entering/selecting "*LIBL"#setDefaultHost(IHost)
public QSYSLibraryPrompt(Composite parent, int style, boolean allowGeneric, boolean allowLibl, String historyKey)
parent
- Parent compositestyle
- The SWT style flags for overall composite widget. Typically just pass SWT.NULLallowGeneric
- Pass true to allow generic names in the entry fieldallowLibl
- Pass false if allowGeneric is false, to restrict user from entering/selecting "*LIBL"historyKey
- The key to use for the history, or null to use our default. Only needed if you want a unique history.#setDefaultHost(IHost)
Method Detail |
---|
public void setLibraryChangeListener(IQSYSLibraryPromptListener listener)
public void removeLibraryChangeListener()
public void setDefaultConnection(IHost defaultConnection)
setDefaultConnection
in class QSYSBasePrompt
setIHost(IHost)
public void setIHost(IHost onlyConnection)
#setDefaultHost(IHost)
public void setLibraryPromptLabel(String label)
public String getLibraryName()
QSYSBasePrompt.getText()
public void setLibraryName(String name)
QSYSBasePrompt.setText(String)
public void setLibraryValidator(ValidatorIBMiLibrary libValidator)
public ValidatorIBMiLibrary getLibraryValidator()
public boolean allowsGeneric()
protected IIBMiSelectAction getBrowseAction(Shell shell, IHost defaultConnection, boolean onlyConnection)
getBrowseAction
in class QSYSBasePrompt
protected void populateCombo(SystemHistoryCombo combo, boolean allowGeneric, boolean allowLibl)
protected void addOurButtonSelectionListener()
addOurButtonSelectionListener
in class QSYSBasePrompt
public SystemMessage validateLibInput()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |