|
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.edit.ui.preferences.ComboBoxFieldEditor
public class ComboBoxFieldEditor
For string properties that have a discrete list of possibilities. Also known as a Combo box.
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
ComboBoxFieldEditor(String name,
String labelText,
String[] contents,
boolean readonly,
Composite parent)
Constructor for ComboBoxFieldEditor |
|
ComboBoxFieldEditor(String name,
String labelText,
Vector<String> 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(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 String copyright
Constructor Detail |
---|
public ComboBoxFieldEditor(String name, String labelText, Vector<String> 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(ISystemValidator validator)
protected void refreshValidState()
FieldEditor
public boolean isValid()
FieldEditor
public void setIgnoreLoadedList(boolean value)
value
- true if the initial value set in the constructor should always be use, false otherwise.
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |