Package org.jdesktop.swingx.rollover
Class TableRolloverController<T extends JTable>
java.lang.Object
org.jdesktop.swingx.rollover.RolloverController<T>
org.jdesktop.swingx.rollover.TableRolloverController<T>
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
listens to rollover properties. Repaints effected component regions. Updates
link cursor.
- Author:
- Jeanette Winzenburg
-
Field Summary
Fields inherited from class org.jdesktop.swingx.rollover.RolloverController
component, EXECUTE_BUTTON_ACTIONCOMMAND
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Point
The coordinates of the focused cell in view coordinates.protected RolloverRenderer
getRolloverRenderer
(Point location, boolean prepare) Returns the rolloverRenderer at the given location.protected boolean
isClickable
(Point location) overridden to return false if cell editable.protected void
called on change of client property Rollover_Key.Methods inherited from class org.jdesktop.swingx.rollover.RolloverController
click, createExecuteButtonAction, hasRollover, install, propertyChange, registerExecuteButtonAction, release, unregisterExecuteButtonAction
-
Constructor Details
-
TableRolloverController
public TableRolloverController()
-
-
Method Details
-
rollover
Description copied from class:RolloverController
called on change of client property Rollover_Key.- Specified by:
rollover
in classRolloverController<T extends JTable>
- Parameters:
oldLocation
- the old value of the rollover location.newLocation
- the new value of the rollover location.
-
isClickable
overridden to return false if cell editable.- Overrides:
isClickable
in classRolloverController<T extends JTable>
- Parameters:
location
- in cell coordinates, p.x == column, p.y == row.- Returns:
- true if the cell at the given location is clickable
- See Also:
-
getRolloverRenderer
Description copied from class:RolloverController
Returns 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:
getRolloverRenderer
in classRolloverController<T extends JTable>
- Parameters:
location
- a valid location in cell coordinates, p.x == column, p.y == row.- Returns:
RolloverRenderer
at the given location
-
getFocusedCell
Description copied from class:RolloverController
The 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 < 0 is interpreted as "outside".- Specified by:
getFocusedCell
in classRolloverController<T extends JTable>
- Returns:
- the location of the focused cell.
-