public class ALDSwingComponentComboBox extends ALDSwingComponent implements ItemListener
JComboBox.
This component wraps a JComboBox thereby triggering value change
events and adding support for tooltips.
| Modifier and Type | Class and Description |
|---|---|
protected class |
ALDSwingComponentComboBox.ComboBoxTooltipRenderer
Tooltip renderer class, adds a tooltip to each item in the combobox.
|
| Modifier and Type | Field and Description |
|---|---|
protected JComboBox |
compComboBox
Associated Swing component.
|
listenerList| Constructor and Description |
|---|
ALDSwingComponentComboBox(Vector<ALDSwingComponentComboBoxItem> its)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
disableComponent()
Method to disable the component, i.e. all graphical elements, to
prohibit parameter changes.
|
void |
dispose()
Releases all resources, i.e. closes all sub-windows.
|
void |
enableComponent()
Method to enable the component with all graphical elements again.
|
JComboBox |
getJComponent()
Method to request the provider's GUI element.
|
void |
itemStateChanged(ItemEvent e) |
void |
setSelectedItem(Object obj)
Selects the item associated with the given object.
|
addValueChangeEventListener, fireALDSwingValueChangeEvent, removeValueChangeEventListenerprotected JComboBox compComboBox
public ALDSwingComponentComboBox(Vector<ALDSwingComponentComboBoxItem> its)
itms - Set of items to be shown in combobox.public JComboBox getJComponent()
ALDSwingComponentgetJComponent in class ALDSwingComponentpublic void itemStateChanged(ItemEvent e)
itemStateChanged in interface ItemListenerpublic void setSelectedItem(Object obj)
obj - Object which should be selected.public void disableComponent()
ALDSwingComponentdisableComponent in class ALDSwingComponentpublic void enableComponent()
ALDSwingComponentenableComponent in class ALDSwingComponentpublic void dispose()
ALDSwingComponentdispose in class ALDSwingComponentCopyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.