Class ListRolloverController<T extends JList>
java.lang.Object
org.jdesktop.swingx.rollover.RolloverController<T>
org.jdesktop.swingx.rollover.ListRolloverController<T>
- All Implemented Interfaces:
PropertyChangeListener, EventListener
listens to rollover properties. Repaints effected component regions.
Updates link cursor.
-
Field Summary
FieldsFields inherited from class RolloverController
component, EXECUTE_BUTTON_ACTIONCOMMAND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PointThe coordinates of the focused cell in view coordinates.protected RolloverRenderergetRolloverRenderer(Point location, boolean prepare) Returns the rolloverRenderer at the given location.protected voidcalled on change of client property Rollover_Key.private voidsetRolloverCursor(Point location) something weird: cursor in JList behaves different from JTable? Hmm ..Methods inherited from class RolloverController
click, createExecuteButtonAction, hasRollover, install, isClickable, propertyChange, registerExecuteButtonAction, release, unregisterExecuteButtonAction
-
Field Details
-
oldCursor
-
-
Constructor Details
-
ListRolloverController
public ListRolloverController()
-
-
Method Details
-
rollover
Description copied from class:RolloverControllercalled on change of client property Rollover_Key.- Specified by:
rolloverin classRolloverController<T extends JList>- Parameters:
oldLocation- the old value of the rollover location.newLocation- the new value of the rollover location.
-
setRolloverCursor
something weird: cursor in JList behaves different from JTable? Hmm .. no: using the table code snippets seems to fix #503-swingx- Parameters:
location-
-
getRolloverRenderer
Description copied from class:RolloverControllerReturns the rolloverRenderer at the given location.The result may be null if there is none or if rollover is not enabled. If the prepare flag is true, the renderer will be prepared with value and state as appropriate for the given location. Note: PRE - the location must be valid in cell coordinate space.
- Specified by:
getRolloverRendererin classRolloverController<T extends JList>- Parameters:
location- a valid location in cell coordinates, p.x == column, p.y == row.prepare-- Returns:
RolloverRendererat the given location
-
getFocusedCell
Description copied from class:RolloverControllerThe coordinates of the focused cell in view coordinates. This method is called if the click action is invoked by a keyStroke. The returned cell coordinates should be related to what is typically interpreted as "focused" in the context of the component. p.x == focused column, p.y == focused row. A null return value or any coordinate value of invalid input: '<' 0 is interpreted as "outside".- Specified by:
getFocusedCellin classRolloverController<T extends JList>- Returns:
- the location of the focused cell.
-