jview
Class ComboBoxToolTip

java.lang.Object
  extended by 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.
 
Method Summary
 void actionPerformed(ActionEvent ae)
          We see if the item that generated the action event is a combo box.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tips

private List tips
The list of tool-tips that should be displayed.

Constructor Detail

ComboBoxToolTip

public ComboBoxToolTip(List tooltips)
On construct, we supply a list that hopefully has enough items to be displayed as tool tips.

Method Detail

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