|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeReporter
de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponent
de.unihalle.informatik.Alida.dataio.provider.swing.components.ALDSwingComponentComboBox
public class ALDSwingComponentComboBox
Alida-specific Swing component linked to a JComboBox
.
This component wraps a JComboBox
thereby triggering value change
events and adding support for tooltips.
Nested Class Summary | |
---|---|
protected class |
ALDSwingComponentComboBox.ComboBoxTooltipRenderer
Tooltip renderer class, adds a tooltip to each item in the combobox. |
Field Summary | |
---|---|
protected javax.swing.JComboBox |
compComboBox
Associated Swing component. |
Fields inherited from class de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeReporter |
---|
listenerList |
Constructor Summary | |
---|---|
ALDSwingComponentComboBox(java.util.Vector<ALDSwingComponentComboBoxItem> its)
Default constructor. |
Method Summary | |
---|---|
void |
disableComponent()
Method to disable the component, i.e. all graphical elements, to prohibit parameter changes. |
void |
enableComponent()
Method to enable the component with all graphical elements again. |
javax.swing.JComboBox |
getJComponent()
Method to request the provider's GUI element. |
void |
itemStateChanged(java.awt.event.ItemEvent e)
|
void |
setSelectedItem(java.lang.Object obj)
Selects the item associated with the given object. |
Methods inherited from class de.unihalle.informatik.Alida.dataio.provider.swing.events.ALDSwingValueChangeReporter |
---|
addValueChangeEventListener, fireALDSwingValueChangeEvent, removeValueChangeEventListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.swing.JComboBox compComboBox
Constructor Detail |
---|
public ALDSwingComponentComboBox(java.util.Vector<ALDSwingComponentComboBoxItem> its)
itms
- Set of items to be shown in combobox.Method Detail |
---|
public void disableComponent()
ALDSwingComponent
disableComponent
in class ALDSwingComponent
public void enableComponent()
ALDSwingComponent
enableComponent
in class ALDSwingComponent
public javax.swing.JComboBox getJComponent()
ALDSwingComponent
getJComponent
in class ALDSwingComponent
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
public void setSelectedItem(java.lang.Object obj)
obj
- Object which should be selected.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |