Class ObjectListener

java.lang.Object
ucar.unidata.util.ObjectListener
All Implemented Interfaces:
ActionListener, ItemListener, KeyListener, MouseListener, WindowListener, EventListener, ChangeListener

public class ObjectListener extends Object implements MouseListener, ActionListener, KeyListener, WindowListener, ItemListener, ChangeListener
Implements ActionListener and MouseListener (and others) interfaces and holds an arbitrary object. This can be used to pass state into anonymous listener objects without having the defined as final in the creation scope of the listener. This also servers like the MouseAdapter - i.e., it implements all of the methods required in the various interfaces. A derived class does not need to implement all of the required methods - just the ones they need.