|
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 FieldEditor com.ibm.etools.iseries.rse.ui.propertypages.LibQualifiedComboBoxFieldEditor
public class LibQualifiedComboBoxFieldEditor
Uniquely for IBM i, a preference field editor that allows a library qualified prompt as in:
Library: _________V
Object: _________V
Field Summary | |
---|---|
static String |
copyright
|
protected static String[] |
LIB_CONTENTS
|
Constructor Summary | |
---|---|
LibQualifiedComboBoxFieldEditor(String name,
String labelText,
String[] contents,
boolean readOnly,
Composite parent)
Constructor for LibQualifiedComboBoxFieldEditor |
Method Summary | |
---|---|
protected void |
adjustForNumColumns(int numColumns)
|
protected void |
createModifyListener()
Creates a modify text listener. |
protected void |
createSelectionListener()
Creates a selection listener. |
protected void |
doFillIntoGrid(Composite parent,
int numColumns)
Called by parent's constructor, which is too soon for us! So, we do nothing here and then do the real work later by calling ourDoFillIntoGrid(...). |
protected void |
doLoad()
|
protected void |
doLoadDefault()
|
protected void |
doStore()
Set the qualified name from the two combo boxes into the preference store. |
protected Combo |
getLibCombo()
Returns this field editor's library Combo control. |
int |
getNumberOfControls()
|
protected Combo |
getObjCombo()
Returns this field editor's object Combo control. |
protected String |
getQualifiedName()
Return the qualified name from the two combo boxes. |
Combo |
getTextControl(Composite parent)
Returns this field editor's text control. |
protected boolean |
isReadOnly()
Is this a readonly combo? |
protected boolean |
isUnqualifiedName(String name)
Check if a given object name is a special name that means the library should be disabled.. |
boolean |
isValid()
Override of parent to return validity state. |
protected void |
ourDoFillIntoGrid()
Called by parent's constructor, which is too soon for us! So, we do nothing here and then do the real work later by calling ourDoFillIntoGrid(...). |
protected void |
refreshValidState()
Override of parent to refresh validity state by checking if the input is valid. |
protected void |
selectionChanged(boolean libChanged)
Combobox selection changed |
void |
setFocus()
Set focus |
void |
setLibValidator(ISystemValidator validator)
Set the library name libValidator. |
void |
setObjValidator(ISystemValidator validator)
Set the object name libValidator. |
void |
setUnqualifiedObjectNames(String[] unqualifiedNames)
Set special values for the object name, such that when these are selected, the library prompt is to be disabled and set to "*libl". |
protected String |
toUpperCase(String name)
Uppercase name if not a quoted name |
protected void |
validateLibrary()
Validate library combo contents |
protected void |
validateObject()
Validator object combo contents |
protected void |
valueChanged(boolean libChanged)
Informs this field editor's listener, if it has one, about a change to the value ( VALUE property) provided that the old and
new values are different. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String copyright
protected static final String[] LIB_CONTENTS
Constructor Detail |
---|
public LibQualifiedComboBoxFieldEditor(String name, String labelText, String[] contents, boolean readOnly, Composite parent)
name
- - the unique ID for this editor. Used as index in preference store. Value stored as "lib/obj"labelText
- - the label textlibLabelKey
- - the library label+tooltip rb key. Will append "label" and "tooltip" to itobjLabelKey
- - the object label+tooltip rb key. Will append "label" and "tooltip" to itcontents
- - the list of strings to show in the object dropdown, as an array. The library contents are hardcoded.readOnly
- - true if the user is to be prevented from entering text into the comboparent
- - the parent composite to host this editorMethod Detail |
---|
public void setLibValidator(ISystemValidator validator)
public void setObjValidator(ISystemValidator validator)
public void setUnqualifiedObjectNames(String[] unqualifiedNames)
public int getNumberOfControls()
FieldEditor
protected void doStore()
FieldEditor
protected String getQualifiedName()
protected String toUpperCase(String name)
protected void doLoadDefault()
FieldEditor
protected void doLoad()
FieldEditor
protected void doFillIntoGrid(Composite parent, int numColumns)
FieldEditor
protected void ourDoFillIntoGrid()
FieldEditor
protected void adjustForNumColumns(int numColumns)
FieldEditor
protected Combo getLibCombo()
protected Combo getObjCombo()
public Combo getTextControl(Composite parent)
The control is created if it does not yet exist
parent
- the parent
protected boolean isReadOnly()
protected void createSelectionListener()
protected void selectionChanged(boolean libChanged)
protected void createModifyListener()
protected void validateLibrary()
protected void validateObject()
protected void valueChanged(boolean libChanged)
VALUE
property) provided that the old and
new values are different.
This hook is not called when the text is initialized (or reset to the default value) from the preference store.
protected boolean isUnqualifiedName(String name)
public boolean isValid()
protected void refreshValidState()
public void setFocus()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |