|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.preference.FieldEditor
com.ibm.etools.iseries.editor.preferences.ComboBoxFieldEditor
For string properties that have a discrete list of possibilities. Also known as a Combo box.
Field Summary | |
---|---|
static String |
copyright
|
Fields inherited from class org.eclipse.jface.preference.FieldEditor |
---|
HORIZONTAL_GAP, IS_VALID, VALUE |
Constructor Summary | |
---|---|
ComboBoxFieldEditor(String name,
String labelText,
String[] contents,
boolean readonly,
Composite parent)
Constructor for ComboBoxFieldEditor |
|
ComboBoxFieldEditor(String name,
String labelText,
Vector contents,
boolean readonly,
Composite parent)
Constructor for ComboBoxFieldEditor |
Method Summary | |
---|---|
protected void |
adjustForNumColumns(int numColumns)
|
void |
createModifyListener()
Creates a selection listener. |
void |
createSelectionListener()
Creates a selection listener. |
protected void |
doFillIntoGrid(Composite parent,
int numColumns)
|
protected void |
doLoad()
|
protected void |
doLoadDefault()
|
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. |
boolean |
isValid()
|
protected void |
refreshValidState()
|
void |
selectionChanged()
Combobox selection changed |
void |
setHelp(String contextId)
Method setHelp. |
void |
setIgnoreLoadedList(boolean value)
set whether or not the combo box control should display the values set when constructed, or use the values loaded from the preferences. |
void |
setToolTipText(String tip)
Allows setting of tooltip text |
void |
setValidator(com.ibm.etools.systems.core.ui.validators.ISystemValidator validator)
Method setValidator Sets the validator to be used to check if the contents are valid |
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 ComboBoxFieldEditor(String name, String labelText, Vector contents, boolean readonly, Composite parent)
name
- field editor's namelabelText
- the label to the left of the combocontents
- the list of given optionsreadonly
- whether the text box can be editedparent
- parent compositepublic ComboBoxFieldEditor(String name, String labelText, String[] contents, boolean readonly, Composite parent)
name
- field editor's name
labelText the label to the left of the combo
contents the list of given options
readonly whether the text box can be edited
parent parent compositeMethod Detail |
protected 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 getTextControl()
public Combo getTextControl(Composite parent)
The control is created if it does not yet exist
parent
- the parent
public void setToolTipText(String tip)
public void createSelectionListener()
public void createModifyListener()
public void selectionChanged()
public void setHelp(String contextId)
contextId
- the context ID for the helppublic void setValidator(com.ibm.etools.systems.core.ui.validators.ISystemValidator validator)
protected void refreshValidState()
FieldEditor.refreshValidState()
public boolean isValid()
FieldEditor.isValid()
public void setIgnoreLoadedList(boolean value)
value
- true if the initial value set in the constructor should always be use, false otherwise.
|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |