public class ComboFieldEditor
extends FieldEditor
Constructor and Description |
---|
ComboFieldEditor(java.lang.String name,
java.lang.String labelText,
java.lang.String[][] entryNamesAndValues,
Composite parent)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
adjustForNumColumns(int numColumns) |
protected void |
doFillIntoGrid(Composite parent,
int numColumns) |
protected void |
doLoad() |
protected void |
doLoadDefault() |
protected void |
doStore() |
Combo |
getComboBoxControl(Composite parent)
Lazily create and return the Combo control.
|
int |
getNumberOfControls() |
java.lang.String |
getSelectedValue() |
protected java.lang.String |
getValueForName(java.lang.String name)
Given the name (label) of an entry, return the corresponding value.
|
protected void |
updateComboForValue(java.lang.String value)
Set the name in the combo widget to match the specified value.
|
public ComboFieldEditor(java.lang.String name, java.lang.String labelText, java.lang.String[][] entryNamesAndValues, Composite parent)
name
- the name of the preference this field editor works onlabelText
- the label text of the field editorentryNamesAndValues
- Array holding the combo bo entries and valuesparent
- the parent of the field editor's controlprotected void adjustForNumColumns(int numColumns)
FieldEditor#adjustForNumColumns(int)
protected void doFillIntoGrid(Composite parent, int numColumns)
FieldEditor#doFillIntoGrid(Composite, int)
protected void doLoad()
FieldEditor#doLoad()
protected void doLoadDefault()
FieldEditor#doLoadDefault()
protected void doStore()
FieldEditor#doStore()
public int getNumberOfControls()
FieldEditor#getNumberOfControls()
public Combo getComboBoxControl(Composite parent)
protected java.lang.String getValueForName(java.lang.String name)
protected void updateComboForValue(java.lang.String value)
public java.lang.String getSelectedValue()
NULL
if nothing is selected.