org.jdesktop.swingx.rollover
Class RolloverController<T extends javax.swing.JComponent>

java.lang.Object
  extended by org.jdesktop.swingx.rollover.RolloverController<T>
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener
Direct Known Subclasses:
ListRolloverController, TableRolloverController, TreeRolloverController

public abstract class RolloverController<T extends javax.swing.JComponent>
extends java.lang.Object
implements java.beans.PropertyChangeListener

Controller for "live" behaviour of XXRenderers. Once installed on a component, it updates renderer's rollover state based on the component's rollover properties. Rollover client properties are Points with cell coordinates in the view coordinate system as approriate for the concrete component (Point.x == column, Point.y == row). Repaints effected component regions. Updates link cursor. Installs a click-action bound to space-released in the target's actionMap/inputMap.

Author:
Jeanette Winzenburg, Berlin

Field Summary
static java.lang.String EXECUTE_BUTTON_ACTIONCOMMAND
          the key of the rollover click action which is installed in the component's actionMap.
 
Constructor Summary
RolloverController()
           
 
Method Summary
 void install(T table)
          Install this as controller for the given component.
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 void release()
          Uninstall this as controller from the component, if any.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXECUTE_BUTTON_ACTIONCOMMAND

public static final java.lang.String EXECUTE_BUTTON_ACTIONCOMMAND
the key of the rollover click action which is installed in the component's actionMap.

See Also:
Constant Field Values
Constructor Detail

RolloverController

public RolloverController()
Method Detail

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

install

public void install(T table)
Install this as controller for the given component.

Parameters:
table - the component which has renderers to control.

release

public void release()
Uninstall this as controller from the component, if any.