com.partnersoft.gui
Class ComboSelectionControl
java.lang.Object
com.partnersoft.gui.ComboSelectionControl
- All Implemented Interfaces:
- GUIControl
public class ComboSelectionControl
- extends java.lang.Object
- implements GUIControl
A wrapper for JComboBox.
- Author:
- Paul Reavis Copyright 2004 Partner Software, Inc.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComboSelectionControl
public ComboSelectionControl()
ComboSelectionControl
public ComboSelectionControl(javax.swing.ComboBoxModel model)
setModel
public void setModel(javax.swing.ComboBoxModel newModel)
getSelectedIndex
public int getSelectedIndex()
setSelectedIndex
public void setSelectedIndex(int newIndex)
getSelectedItem
public java.lang.Object getSelectedItem()
setSelectedItem
public void setSelectedItem(java.lang.Object newItem)
setOptions
public void setOptions(java.util.ArrayList newOptions)
setOptions
public void setOptions(java.lang.String... newOptions)
setOptions
public void setOptions(java.util.List newOptions)
getJComboBox
public javax.swing.JComboBox getJComboBox()
getGUI
public javax.swing.JComponent getGUI()
- Specified by:
getGUI in interface GUIControl
selectionModified
public void selectionModified()
- Subclasses should override this to take action whenever the selection set
changes.
doAction
public void doAction()
- Subclasses should override this to take action whenever an action should
occur (generally when the user hits return in the field).