jview
Class ComboBoxToolTip
java.lang.Object
jview.ComboBoxToolTip
- All Implemented Interfaces:
- ActionListener, EventListener
public class ComboBoxToolTip
- extends Object
- implements ActionListener
An action listener for combo boxes that should change their tool-tip
whenever the selected field changes.
|
Field Summary |
private List |
tips
The list of tool-tips that should be displayed. |
|
Constructor Summary |
ComboBoxToolTip(List tooltips)
On construct, we supply a list that hopefully has enough items
to be displayed as tool tips. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tips
private List tips
- The list of tool-tips that should be displayed.
ComboBoxToolTip
public ComboBoxToolTip(List tooltips)
- On construct, we supply a list that hopefully has enough items
to be displayed as tool tips.
actionPerformed
public void actionPerformed(ActionEvent ae)
- We see if the item that generated the action event is a combo box.
If so, we grab the index and update the tool tip on that combo.
- Specified by:
actionPerformed in interface ActionListener