|
Rational Developer for i 7.5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
com.ibm.etools.iseries.rse.ui.widgets.QSYSBasePrompt
com.ibm.etools.iseries.rse.ui.widgets.QSYSProgramObjectPrompt
com.ibm.etools.iseries.rse.ui.widgets.QSYSModulePrompt
com.ibm.etools.systems.as400.debug.sep.ui.QSYSProcedurePrompt
public class QSYSProcedurePrompt
This composite widget is for prompting the user for a procedure name. The widget is part of service entry point support
The object 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 object from a remote list.
Of course objects are qualified by library names so this also prompts for the library.
The module names and procedure names are extracted from program object information, not from the library system.
The composite is layed as follows:
Library: ______________________v Browse...
* Program
______________________v Browse...
* Service Program
______________________v Browse...
* Module
______________________v Browse...
* Procedure
______________________v Browse...
You must specify whether this prompt is for a generic object name like ABC* or a scalar object name like ABC1. Beyond appropriate error checking it also affects the special-values contents of the dropdown. You also must specify whether this prompt for exported procedures or all procedures.
| Nested Class Summary | |
|---|---|
protected class |
QSYSProcedurePrompt.ProgramObjectListener
|
| Field Summary | |
|---|---|
protected String |
ALL
|
protected QSYSSelectProcedureAction |
browseProcedureAction
|
protected Button |
browseProcedureButton
|
protected QSYSSelectProgramModuleAction |
browseProgramModuleAction
|
protected boolean |
exportedOnly
|
protected boolean |
modify
|
protected QSYSModuleProcedureValidator |
moduleProcedureValidator
|
protected ISeriesObjectFilterString |
procedureFilterString
|
protected ValidatorIBMiObject |
procedureValidator
|
protected SystemHistoryCombo |
promptProcedureCombo
|
protected Label |
promptProcedureLabel
|
| Fields inherited from class com.ibm.etools.iseries.rse.ui.widgets.QSYSModulePrompt |
|---|
browseModuleAction, browseModuleButton, copyright, moduleFilterString, moduleValidator, promptModuleCombo, promptModuleLabel |
| Fields inherited from class com.ibm.etools.iseries.rse.ui.widgets.QSYSProgramObjectPrompt |
|---|
allowEmpty, allowGeneric, allowLibl, browseProgramButton, browseServiceProgramButton, CURLIB, filterString, LIBL, libValidator, listener, objTypes, PGM, pgmValidator, programRadioButton, promptProgramCombo, promptProgramLabel, promptServiceProgramCombo, promptServiceProgramLabel, serviceProgramRadioButton, SRVPGM |
| Fields inherited from class com.ibm.etools.iseries.rse.ui.widgets.QSYSBasePrompt |
|---|
browseAction, browseButton, defaultConnection, enableBrowse, gridColumns, ignoreChanges, onlyConnection, promptCombo, promptLabel, rb, showNewConnection, testing |
| Fields inherited from class org.eclipse.swt.widgets.Control |
|---|
handle |
| Fields inherited from interface com.ibm.etools.iseries.rse.ui.widgets.IIBMiProgramPromptTypes |
|---|
PGMTYPE_PGM, PGMTYPE_PGM_OR_SRVPGM, PGMTYPE_SRVPGM |
| Constructor Summary | |
|---|---|
QSYSProcedurePrompt(Composite parent,
int pgmType,
boolean exportedOnly,
boolean modifyOnly)
|
|
QSYSProcedurePrompt(Composite parent,
int style,
boolean allowGeneric,
boolean allowLibl,
int pgmType,
boolean exportedOnly,
boolean modifyOnly)
|
|
QSYSProcedurePrompt(Composite parent,
int style,
int pgmType,
boolean exportedOnly,
boolean modifyOnly)
|
|
| Method Summary | |
|---|---|
void |
addBrowseButtonSelectionListener(SelectionListener listener)
Register a listener interested in when the either the library or object or module or procedure browse button is selected |
protected void |
addModuleButtonSelectionListener()
Enables our browse button for modules. |
protected void |
addProcedureButtonSelectionListener()
Enables our browse button for procedures. |
void |
addProcedureModifyListener(ModifyListener listener)
Register a listener interested in procedure entry field modify events |
void |
addSelectionListener(SelectionListener listener)
Register a listener interested in an item is selected in either the library combo box or the object combo box or the module object combo box or the procedure combo box |
protected void |
enableModuleProcedure(boolean enabled)
Enable module and procedure widgets respected with the internal dependency rules. |
protected QSYSSelectProgramModuleAction |
getModuleBrowseAction(Shell shell)
Overridable method. |
protected QSYSSelectProcedureAction |
getProcedureBrowseAction(Shell shell)
Returns action to be called when Browse... |
Button |
getProcedureBrowseButton()
Return the procedure Browse... |
SystemHistoryCombo |
getProcedureCombo()
Return the combo box widget for the procedure prompt |
String[] |
getProcedureItems()
Get the items in the procedure combo field |
String |
getProcedureName()
Get the user entered or selected procedure name. |
protected void |
populateModuleCombo(SystemHistoryCombo combo,
boolean allowGeneric)
Populates our module combo. |
protected void |
populateProcedureCombo(SystemHistoryCombo combo,
boolean allowGeneric)
Populates our procedure combo. |
void |
removeBrowseButtonSelectionListener(SelectionListener listener)
Remove a previously set browse button selection listener. |
void |
removeProcedureModifyListener(ModifyListener listener)
Remove a previously set module entry field listener. |
void |
removeSelectionListener(SelectionListener listener)
Remove a previously set combo box selection listener. |
protected String |
resolveCurLib()
Resolve current lib set in iSeries connection properties |
void |
setEnabled(boolean enabled)
Disable/Enable all the child controls. |
void |
setProcedureBrowseButtonFocus()
Set the focus to the procedure browse button |
boolean |
setProcedureFocus()
Set the focus to the procedure combo field |
void |
setProcedureItems(String[] items)
Set the items in the procedure combo field |
void |
setProcedureName(String name)
Set the procedure name displayed in the combo box. |
void |
updateHistory()
Update the history with current entry field setting. |
SystemMessage |
validateLibInput()
Validate library string, as it is typed, or in batch if you wish to call directly. |
String |
validateModule(boolean reInit)
Validate module name string, as it is typed, or in batch if you wish to call directly. |
String |
validateProcedure(boolean reInit)
Validate porcedure name. |
SystemMessage |
validateProgramInput()
Validate program name string, as it is typed, or in batch if you wish to call directly. |
String |
validateProgramSupportSEP()
Validate if program object is non-OPM and debuggable |
| Methods inherited from class com.ibm.etools.iseries.rse.ui.widgets.QSYSModulePrompt |
|---|
addModuleModifyListener, getModuleBrowseAction, getModuleBrowseButton, getModuleCombo, getModuleFilterString, getModuleItems, getModuleName, removeModuleModifyListener, setModuleBrowseButtonFocus, setModuleBrowseButtonToolTipText, setModuleChangeListener, setModuleFocus, setModuleItems, setModuleName, setModulePromptLabel, setModuleToolTipText, setModuleValidator, setSystemConnection, validateModuleInput, validateObjInput |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
|---|
changed, checkSubclass, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setLayout, setLayoutDeferred, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
|---|
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
|---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Label promptProcedureLabel
protected SystemHistoryCombo promptProcedureCombo
protected Button browseProcedureButton
protected ISeriesObjectFilterString procedureFilterString
protected ValidatorIBMiObject procedureValidator
protected boolean exportedOnly
protected boolean modify
protected final String ALL
protected QSYSSelectProgramModuleAction browseProgramModuleAction
protected QSYSSelectProcedureAction browseProcedureAction
protected QSYSModuleProcedureValidator moduleProcedureValidator
| Constructor Detail |
|---|
public QSYSProcedurePrompt(Composite parent,
int pgmType,
boolean exportedOnly,
boolean modifyOnly)
parent -
public QSYSProcedurePrompt(Composite parent,
int style,
int pgmType,
boolean exportedOnly,
boolean modifyOnly)
parent - style -
public QSYSProcedurePrompt(Composite parent,
int style,
boolean allowGeneric,
boolean allowLibl,
int pgmType,
boolean exportedOnly,
boolean modifyOnly)
parent - style - allowGeneric - allowLibl - allowEmpty - | Method Detail |
|---|
public SystemHistoryCombo getProcedureCombo()
public String getProcedureName()
QSYSBasePrompt.getText()
public void setProcedureName(String name)
QSYSBasePrompt.setText(String)
public Button getProcedureBrowseButton()
public void setProcedureItems(String[] items)
public String[] getProcedureItems()
public void setEnabled(boolean enabled)
setEnabled in class QSYSModulePromptprotected void enableModuleProcedure(boolean enabled)
public boolean setProcedureFocus()
public void setProcedureBrowseButtonFocus()
public void addSelectionListener(SelectionListener listener)
addSelectionListener in class QSYSModulePromptremoveSelectionListener(SelectionListener)public void removeSelectionListener(SelectionListener listener)
removeSelectionListener in class QSYSModulePromptaddSelectionListener(SelectionListener)public void addBrowseButtonSelectionListener(SelectionListener listener)
addBrowseButtonSelectionListener in class QSYSModulePrompt#removeNewButtonSelectionListener(SelectionListener)public void removeBrowseButtonSelectionListener(SelectionListener listener)
removeBrowseButtonSelectionListener in class QSYSModulePrompt#addNewButtonSelectionListener(SelectionListener)public void addProcedureModifyListener(ModifyListener listener)
QSYSModulePrompt.removeModuleModifyListener(ModifyListener)public void removeProcedureModifyListener(ModifyListener listener)
QSYSModulePrompt.addModuleModifyListener(ModifyListener)public void updateHistory()
This is called automatically for you when setText is called. However, for non-readonly versions, you should still call this yourself when OK is successfully pressed on the dialog box.
updateHistory in class QSYSModulePrompt
protected void populateModuleCombo(SystemHistoryCombo combo,
boolean allowGeneric)
populateModuleCombo in class QSYSModulePrompt
protected void populateProcedureCombo(SystemHistoryCombo combo,
boolean allowGeneric)
protected void addProcedureButtonSelectionListener()
protected QSYSSelectProcedureAction getProcedureBrowseAction(Shell shell)
public SystemMessage validateLibInput()
validateLibInput in class QSYSModulePromptpublic SystemMessage validateProgramInput()
public String validateProgramSupportSEP()
throws SystemMessageException
SystemMessageExceptionpublic String validateModule(boolean reInit)
public String validateProcedure(boolean reInit)
protected QSYSSelectProgramModuleAction getModuleBrowseAction(Shell shell)
protected void addModuleButtonSelectionListener()
addModuleButtonSelectionListener in class QSYSModulePromptprotected String resolveCurLib()
|
Rational Developer for i 7.5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||