Package com.actelion.research.gui.swing
Class SwingComboBox
- java.lang.Object
-
- com.actelion.research.gui.swing.SwingComponent
-
- com.actelion.research.gui.swing.SwingComboBox
-
- All Implemented Interfaces:
GenericComboBox
,GenericComponent
,java.awt.event.ItemListener
,java.util.EventListener
public class SwingComboBox extends SwingComponent implements GenericComboBox, java.awt.event.ItemListener
-
-
Constructor Summary
Constructors Constructor Description SwingComboBox()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addItem(java.lang.String item)
int
getSelectedIndex()
java.lang.String
getSelectedItem()
void
itemStateChanged(java.awt.event.ItemEvent e)
void
removeAllItems()
void
setEditable(boolean b)
void
setSelectedIndex(int index)
void
setSelectedItem(java.lang.String item)
-
Methods inherited from class com.actelion.research.gui.swing.SwingComponent
getComponent, getEventConsumer, setEnabled, setEventConsumer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.actelion.research.gui.generic.GenericComponent
getEventConsumer, setEnabled, setEventConsumer
-
-
-
-
Method Detail
-
itemStateChanged
public void itemStateChanged(java.awt.event.ItemEvent e)
- Specified by:
itemStateChanged
in interfacejava.awt.event.ItemListener
-
removeAllItems
public void removeAllItems()
- Specified by:
removeAllItems
in interfaceGenericComboBox
-
addItem
public void addItem(java.lang.String item)
- Specified by:
addItem
in interfaceGenericComboBox
-
getSelectedIndex
public int getSelectedIndex()
- Specified by:
getSelectedIndex
in interfaceGenericComboBox
-
getSelectedItem
public java.lang.String getSelectedItem()
- Specified by:
getSelectedItem
in interfaceGenericComboBox
-
setSelectedIndex
public void setSelectedIndex(int index)
- Specified by:
setSelectedIndex
in interfaceGenericComboBox
-
setSelectedItem
public void setSelectedItem(java.lang.String item)
- Specified by:
setSelectedItem
in interfaceGenericComboBox
-
setEditable
public void setEditable(boolean b)
- Specified by:
setEditable
in interfaceGenericComboBox
-
-