|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.swingx.rollover.RolloverController<T>
org.jdesktop.swingx.rollover.TableRolloverController<T>
public class TableRolloverController<T extends JTable>
listens to rollover properties. Repaints effected component regions. Updates link cursor.
Field Summary |
---|
Fields inherited from class org.jdesktop.swingx.rollover.RolloverController |
---|
component, EXECUTE_BUTTON_ACTIONCOMMAND |
Constructor Summary | |
---|---|
TableRolloverController()
|
Method Summary | |
---|---|
protected Point |
getFocusedCell()
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 |
rollover(Point oldLocation,
Point newLocation)
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableRolloverController()
Method Detail |
---|
protected void rollover(Point oldLocation, Point newLocation)
RolloverController
rollover
in class RolloverController<T extends JTable>
oldLocation
- the old value of the rollover location.newLocation
- the new value of the rollover location.protected boolean isClickable(Point location)
isClickable
in class RolloverController<T extends JTable>
location
- in cell coordinates, p.x == column, p.y == row.
protected RolloverRenderer getRolloverRenderer(Point location, boolean prepare)
RolloverController
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.
getRolloverRenderer
in class RolloverController<T extends JTable>
location
- a valid location in cell coordinates, p.x == column, p.y == row.
RolloverRenderer
at the given locationprotected Point getFocusedCell()
RolloverController
getFocusedCell
in class RolloverController<T extends JTable>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |