|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFieldEditor
com.ibm.etools.systems.core.ui.propertypages.SystemComboBoxFieldEditor
For string properties that have a discrete list of possibilities.
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
SystemComboBoxFieldEditor(String name,
ResourceBundle rb,
String rbKey,
String[] contents,
boolean readOnly,
Composite parent)
Constructor for SystemComboBoxFieldEditor, using an array for the contents, and specifying a resource bundle and key, from which we will retrieve the label and the tooltip text |
|
SystemComboBoxFieldEditor(String name,
String labelText,
String[] contents,
boolean readOnly,
Composite parent)
Constructor for SystemComboBoxFieldEditor, using an array for the contents |
|
SystemComboBoxFieldEditor(String name,
String labelText,
Vector contents,
boolean readOnly,
Composite parent)
Constructor for SystemComboBoxFieldEditor, using a Vector for the contents |
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)
This is called by our parent's constructor, which is too soon for us! |
protected void |
doLoad()
|
protected void |
doLoadDefault()
|
protected void |
doOurFillIntoGrid()
Create controls |
protected void |
doStore()
|
int |
getNumberOfControls()
|
Combo |
getTextControl()
Returns this field editor's Combo control. |
Combo |
getTextControl(Composite parent)
Returns this field editor's text control. |
protected boolean |
isReadOnly()
Is this a readonly combo? |
boolean |
isValid()
Override of parent to return validity state. |
protected void |
refreshValidState()
Override of parent to refresh validity state by checking if the input is valid. |
protected void |
selectionChanged()
Combobox selection changed |
void |
setFocus()
Set focus |
void |
setMassager(ISystemMassager massager)
Set the massager that is used to affect the user-entered text before saving it to the preference store |
void |
setToolTipText(String tip)
Allows setting of tooltip text |
void |
setValidator(ISystemValidator validator)
If this combobox is editable, set the validator to use here per keystroke |
protected void |
validate()
Validate contents of combo field |
protected void |
valueChanged()
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 final String copyright
Constructor Detail |
public SystemComboBoxFieldEditor(String name, String labelText, Vector contents, boolean readOnly, Composite parent)
name
- - the unique ID for this editor. Used as index in preference storelabelText
- - the label to show as the prompt preceding the dropdowncontents
- - the list of strings to show in the dropdown, as a vectorreadOnly
- - true if the user is to be prevented from entering text into the comboparent
- - the parent composite to host this editorpublic SystemComboBoxFieldEditor(String name, String labelText, String[] contents, boolean readOnly, Composite parent)
name
- - the unique ID for this editor. Used as index in preference storelabelText
- - the label to show as the prompt preceding the dropdowncontents
- - the list of strings to show in the dropdown, as an arrayreadOnly
- - true if the user is to be prevented from entering text into the comboparent
- - the parent composite to host this editorpublic SystemComboBoxFieldEditor(String name, ResourceBundle rb, String rbKey, String[] contents, boolean readOnly, Composite parent)
name
- - the unique ID for this editor. Used as index in preference storerb
- - the resource bundle from which to retrieve the mrirbKey
- - the key into the resource bundle, to get the label (+"label") and tooltip text (+"tooltip")contents
- - the list of strings to show in the dropdown, as an arrayreadOnly
- - true if the user is to be prevented from entering text into the comboparent
- - the parent composite to host this editorMethod Detail |
public void setValidator(ISystemValidator validator)
public void setMassager(ISystemMassager massager)
public int getNumberOfControls()
FieldEditor
protected void doStore()
FieldEditor
protected void doLoadDefault()
FieldEditor
protected void doLoad()
FieldEditor
protected void doFillIntoGrid(Composite parent, int numColumns)
FieldEditor
protected void doOurFillIntoGrid()
protected void adjustForNumColumns(int numColumns)
FieldEditor
public Combo getTextControl()
public Combo getTextControl(Composite parent)
The control is created if it does not yet exist
parent
- the parent
public void setToolTipText(String tip)
protected boolean isReadOnly()
protected void createSelectionListener()
protected void selectionChanged()
protected void createModifyListener()
protected void validate()
protected void valueChanged()
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.
public boolean isValid()
protected void refreshValidState()
public void setFocus()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |