|
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.ObjectComposite
com.ibm.etools.iseries.rse.ui.widgets.QSYSBasePrompt
com.ibm.etools.iseries.rse.ui.widgets.QSYSAspDevPrompt
public class QSYSAspDevPrompt
This re-usable composite widget is for prompting the user for an ASP device description name, which is a *DEVD object of attribute ASP, only available in library QSYS
This is a commonly required parameter for many iSeries create commands. The aspdev 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 an asp devd from a remote list.
The composite is layed as follows:
ASP device description: ______________________v Browse...
#setASPDEVChangeListener(IAS400ASPDEVPromptListener)
Field Summary | |
---|---|
String[] |
ASPDEV_VALUES
|
protected ValidatorIBMiObject |
aspDevValidator
|
protected boolean |
autMode
|
static String |
copyright
|
protected IQSYSAspDevPromptListener |
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 | |
---|---|
QSYSAspDevPrompt(Composite parent,
int style,
IHost connection)
Constructor |
Method Summary | |
---|---|
protected void |
addOurButtonSelectionListener()
AspDev's Browse button pressed handler |
String |
getAspDevName()
Get the user entered or selected asp dev name. |
protected IIBMiSelectAction |
getBrowseAction(Shell shell,
IHost defaultConnection,
boolean onlyConnection)
Overridable method. |
protected boolean |
isSpecialValue(String value)
Test if given value is one of the special values... |
protected void |
populateCombo(SystemHistoryCombo combo)
Populates the library combo. |
void |
setAspDevChangeListener(IQSYSAspDevPromptListener listener)
Identify a caller that is interested in being informed of live error checking status |
void |
setAspDevName(String name)
Set the asp device name or special value displayed in the combo box. |
void |
setDefaultConnection(IHost defaultConnection)
Set the default connection to preselect when Browse is pressed. |
void |
setPromptLabel(String label)
Set the prompt label. |
void |
setSystemConnection(IHost onlyConnection)
Set the system connection to use when Browse is pressed. |
SystemMessage |
validateAspDevInput()
Validate asp device name, 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 autMode
protected IQSYSAspDevPromptListener listener
protected ValidatorIBMiObject aspDevValidator
public String[] ASPDEV_VALUES
Constructor Detail |
---|
public QSYSAspDevPrompt(Composite parent, int style, IHost connection)
parent
- Parent compositestyle
- The SWT style flags for overall composite widget. Typically just pass SWT.NULLconnection
- The connection to limit the user to selecting from.Method Detail |
---|
public void setAspDevChangeListener(IQSYSAspDevPromptListener listener)
public void setDefaultConnection(IHost defaultConnection)
setDefaultConnection
in class QSYSBasePrompt
#setSystemConnection(SystemConnection)
public void setSystemConnection(IHost onlyConnection)
#setDefaultConnection(SystemConnection)
public void setPromptLabel(String label)
setPromptLabel
in class QSYSBasePrompt
public String getAspDevName()
QSYSBasePrompt.getText()
public void setAspDevName(String name)
QSYSBasePrompt.setText(String)
protected IIBMiSelectAction getBrowseAction(Shell shell, IHost defaultConnection, boolean onlyConnection)
getBrowseAction
in class QSYSBasePrompt
protected void populateCombo(SystemHistoryCombo combo)
protected void addOurButtonSelectionListener()
addOurButtonSelectionListener
in class QSYSBasePrompt
public SystemMessage validateAspDevInput()
protected boolean isSpecialValue(String value)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |