org.jdesktop.swingx.rollover
Class RolloverController<T extends javax.swing.JComponent>
- java.lang.Object
-
- 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.PropertyChangeListenerController 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 appropriate 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.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringEXECUTE_BUTTON_ACTIONCOMMANDthe key of the rollover click action which is installed in the component's actionMap.
-
Constructor Summary
Constructors Constructor and Description RolloverController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidinstall(T table)Install this as controller for the given component.voidpropertyChange(java.beans.PropertyChangeEvent evt)voidrelease()Uninstall this as controller from the component, if any.
-
-
-
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
-
-
Method Detail
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChangein interfacejava.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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG