| Constructor and Description |
|---|
ComboField() |
ComboField(java.util.Collection options) |
ComboField(javax.swing.ComboBoxModel model) |
| Modifier and Type | Method and Description |
|---|---|
void |
doAction()
Subclasses should override this to take action whenever an action should
occur (generally when the user hits return in the field).
|
javax.swing.JComponent |
getGUI()
Returns the GUI component for this field.
|
javax.swing.JComboBox |
getJComboBox() |
int |
getSelectedIndex() |
java.lang.Object |
getValue()
Returns the current value for this field.
|
void |
setModel(javax.swing.ComboBoxModel newModel) |
void |
setOptions(java.util.ArrayList newOptions) |
void |
setOptions(java.util.Collection newOptions) |
void |
setOptions(java.lang.String... newOptions) |
void |
setSelectedIndex(int newIndex) |
void |
setValue(java.lang.Object newItem)
Sets the current value for this field.
|
void |
valueChanged(java.lang.Object newValue)
Subclasses should override this to take action whenever the selection set
changes.
|
public ComboField()
public ComboField(javax.swing.ComboBoxModel model)
public ComboField(java.util.Collection options)
public void setModel(javax.swing.ComboBoxModel newModel)
public int getSelectedIndex()
public void setSelectedIndex(int newIndex)
public java.lang.Object getValue()
GUIFieldpublic void setValue(java.lang.Object newItem)
GUIFieldpublic void setOptions(java.util.Collection newOptions)
public void setOptions(java.util.ArrayList newOptions)
public void setOptions(java.lang.String... newOptions)
public javax.swing.JComboBox getJComboBox()
public javax.swing.JComponent getGUI()
GUIFieldpublic void valueChanged(java.lang.Object newValue)
valueChanged in interface GUIField