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 voidaddItem(java.lang.String item)intgetSelectedIndex()java.lang.StringgetSelectedItem()voiditemStateChanged(java.awt.event.ItemEvent e)voidremoveAllItems()voidsetEditable(boolean b)voidsetSelectedIndex(int index)voidsetSelectedItem(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:
itemStateChangedin interfacejava.awt.event.ItemListener
-
removeAllItems
public void removeAllItems()
- Specified by:
removeAllItemsin interfaceGenericComboBox
-
addItem
public void addItem(java.lang.String item)
- Specified by:
addItemin interfaceGenericComboBox
-
getSelectedIndex
public int getSelectedIndex()
- Specified by:
getSelectedIndexin interfaceGenericComboBox
-
getSelectedItem
public java.lang.String getSelectedItem()
- Specified by:
getSelectedItemin interfaceGenericComboBox
-
setSelectedIndex
public void setSelectedIndex(int index)
- Specified by:
setSelectedIndexin interfaceGenericComboBox
-
setSelectedItem
public void setSelectedItem(java.lang.String item)
- Specified by:
setSelectedItemin interfaceGenericComboBox
-
setEditable
public void setEditable(boolean b)
- Specified by:
setEditablein interfaceGenericComboBox
-
-