public class ComboSelectionControl extends java.lang.Object implements GUIControl
| Constructor and Description |
|---|
ComboSelectionControl() |
ComboSelectionControl(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() |
javax.swing.JComboBox |
getJComboBox() |
int |
getSelectedIndex() |
java.lang.Object |
getSelectedItem() |
void |
selectionModified()
Subclasses should override this to take action whenever the selection set
changes.
|
void |
setModel(javax.swing.ComboBoxModel newModel) |
void |
setOptions(java.util.ArrayList newOptions) |
void |
setOptions(java.util.List newOptions) |
void |
setOptions(java.lang.String... newOptions) |
void |
setSelectedIndex(int newIndex) |
void |
setSelectedItem(java.lang.Object newItem) |
public ComboSelectionControl()
public ComboSelectionControl(javax.swing.ComboBoxModel model)
public void setModel(javax.swing.ComboBoxModel newModel)
public int getSelectedIndex()
public void setSelectedIndex(int newIndex)
public java.lang.Object getSelectedItem()
public void setSelectedItem(java.lang.Object newItem)
public void setOptions(java.util.ArrayList newOptions)
public void setOptions(java.lang.String... newOptions)
public void setOptions(java.util.List newOptions)
public javax.swing.JComboBox getJComboBox()
public javax.swing.JComponent getGUI()
getGUI in interface GUIControlpublic void selectionModified()
public void doAction()