|
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.QSYSCCSIDPrompt
public class QSYSCCSIDPrompt
This is a base class for a re-usable composite widget for prompting the user for a CCSID. This is a common parameter on a number of iSeries commands.
The composite is layed as follows:
pppppppp: ______________________v
Child classes specify the prompt label and tooltip
Field Summary | |
---|---|
protected static String[] |
CCSID_VALUES_WITH_CMDDFT
|
protected static String[] |
CCSID_VALUES_WITHOUT_CMDDFT
|
protected ValidatorQSYSCCSIDValue |
ccsidValidator
|
static String |
copyright
|
protected Label |
fillerLabel
|
protected int |
gridColumns
|
protected IQSYSCCSIDPromptListener |
listener
|
protected Combo |
promptCombo
|
protected Label |
promptLabel
|
protected boolean |
showCmdDft
|
protected boolean |
testing
|
Constructor Summary | |
---|---|
QSYSCCSIDPrompt(Composite parent,
int style)
Constructor when *CMDDFT is to be shown as an option in the list |
|
QSYSCCSIDPrompt(Composite parent,
int style,
boolean showCmdDft)
Constructor when *CMDDFT is not to be shown as an option in the list |
|
QSYSCCSIDPrompt(Composite parent,
int style,
boolean showCmdDft,
int fillerLabelSpan)
Constructor that allows for a filler label at the end for the purpose of lining up the combo to be the same size as the combo for other composite widgets that have a button to their right. |
Method Summary | |
---|---|
void |
addModifyListener(ModifyListener listener)
Register a listener interested in entry field modify events |
void |
addSelectionChangedListener(ISelectionChangedListener listener)
Register a listener interested in an item is selected in the combo box |
void |
addSelectionListener(SelectionListener listener)
Register a listener interested in an item is selected in the combo box |
static Combo |
createCombo(Composite parent,
boolean readonly)
Creates a new combobox instance and sets the default layout data. |
Combo |
getCombo()
Return the combo box widget |
int |
getGridColumns()
Return the number of grid data columns within this composite. |
String[] |
getItems()
Get the items in the combo field |
Label |
getPromptLabel()
Get the prompt Label object |
ISelection |
getSelection()
|
String |
getText()
Get the user entered or selected name. |
void |
lineUpWith(IBMiConnectionCombo otherWidget)
If a composite widget like this is used more than once on the same page, it is nice to line up the columns. |
void |
lineUpWith(QSYSBasePrompt otherWidget)
If a composite widget like this is used more than once on the same page, it is nice to line up the columns. |
void |
lineUpWith(QSYSCCSIDPrompt otherWidget)
If a composite widget like this is used more than once on the same page, it is nice to line up the columns. |
protected Composite |
prepareComposite(int numColumns)
Prepares this composite control and sets the default layout data. |
void |
removeModifyListener(ModifyListener listener)
Remove a previously set entry field listener. |
void |
removeSelectionChangedListener(ISelectionChangedListener listener)
Remove a previously set combo box selection listener. |
void |
removeSelectionListener(SelectionListener listener)
Remove a previously set combo box selection listener. |
void |
setCCSIDChangeListener(IQSYSCCSIDPromptListener listener)
Identify caller that is interested in being informed of live error checking status |
void |
setEnabled(boolean enabled)
Disable/Enable all the child controls. |
void |
setFillerLabelWidthHint(Control otherWidget)
Set filler label width hint, based on the width of another widget |
void |
setFillerLabelWidthHint(int widthHint)
Set filler label width hint |
boolean |
setFocus()
Set the focus to the combo field |
void |
setItems(String[] items)
Set the items in the combo field |
void |
setPromptLabel(String label)
Set the prompt label |
void |
setSelection(ISelection selection)
|
void |
setText(String name)
Set the value displayed in the combo box |
void |
setToolTipText(String tip)
Set the tooltip text for the combo field |
void |
setWidthHint(int widthHint)
Set the width hint for this whole composite Default is computed from children by the layout. |
SystemMessage |
validateCCSIDInput()
Validate CCSID values as they are entered |
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 promptLabel
protected Combo promptCombo
protected Label fillerLabel
protected int gridColumns
protected boolean showCmdDft
protected boolean testing
protected ValidatorQSYSCCSIDValue ccsidValidator
protected IQSYSCCSIDPromptListener listener
protected static final String[] CCSID_VALUES_WITH_CMDDFT
protected static final String[] CCSID_VALUES_WITHOUT_CMDDFT
Constructor Detail |
---|
public QSYSCCSIDPrompt(Composite parent, int style)
parent
- Parent compositestyle
- The SWT style flags for overall composite widget. Typically just pass SWT.NULLpublic QSYSCCSIDPrompt(Composite parent, int style, boolean showCmdDft)
parent
- Parent compositestyle
- The SWT style flags for overall composite widget. Typically just pass SWT.NULLshowCmdDft
- True if you want "*CMDDFT" as an option in the listpublic QSYSCCSIDPrompt(Composite parent, int style, boolean showCmdDft, int fillerLabelSpan)
parent
- Parent compositestyle
- The SWT style flags for overall composite widget. Typically just pass SWT.NULLshowCmdDft
- True if you want "*CMDDFT" as an option in the listfillerLabelSpan
- The number of columns the filler label is to spanMethod Detail |
---|
public void lineUpWith(QSYSBasePrompt otherWidget)
public void lineUpWith(QSYSCCSIDPrompt otherWidget)
public void lineUpWith(IBMiConnectionCombo otherWidget)
public void setText(String name)
public String getText()
public Combo getCombo()
public void setWidthHint(int widthHint)
public void setFillerLabelWidthHint(int widthHint)
public void setFillerLabelWidthHint(Control otherWidget)
public int getGridColumns()
public void setItems(String[] items)
public String[] getItems()
public void setEnabled(boolean enabled)
public void setPromptLabel(String label)
public Label getPromptLabel()
public void setToolTipText(String tip)
public boolean setFocus()
public void setCCSIDChangeListener(IQSYSCCSIDPromptListener listener)
public void addSelectionListener(SelectionListener listener)
removeSelectionListener(SelectionListener)
public void removeSelectionListener(SelectionListener listener)
addSelectionListener(SelectionListener)
public void addModifyListener(ModifyListener listener)
removeModifyListener(ModifyListener)
public void removeModifyListener(ModifyListener listener)
addModifyListener(ModifyListener)
protected Composite prepareComposite(int numColumns)
Number
- of columns the new group will contain.public static Combo createCombo(Composite parent, boolean readonly)
Does NOT set the widthHint as that causes problems. Instead the combo will consume what space is available within this composite.
parent
- composite to put the button into.public void addSelectionChangedListener(ISelectionChangedListener listener)
#removeSelectionChangedListener(SelectionChangedListener)
public void removeSelectionChangedListener(ISelectionChangedListener listener)
#addSelectionChangedListener(SelectionChangedListener)
public ISelection getSelection()
public void setSelection(ISelection selection)
public SystemMessage validateCCSIDInput()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |