|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The listener interface for receiving mouse-related grid events (press, release, click, enter, and exit) on a cell in a grid.
The class that is to process these events
either implements this interface (and all the methods it
contains) or extends the abstract GridAdapter
class
(overriding only the methods of interest).
The listener object created from that class is then registered with a
component using the grid's JSmartGrid.addGridListener(com.eliad.swing.GridListener)
method. A cell event is generated when the mouse is pressed, released
and clicked. A cell event is also generated when
the mouse cursor enters or leaves a cell.
When a cell event
occurs the relevant method in the listener object is invoked, and
the GridEvent
is passed to it.
Notes:
Method Summary | |
void |
gridFocusGained(GridEvent e)
Invoked when the focus enters cell. |
void |
gridFocusLost(GridEvent e)
Invoked when the focus enters cell. |
void |
gridMouseClicked(GridEvent e)
Invoked when the mouse is clicked on a cell. |
void |
gridMouseDragged(GridEvent e)
Invoked when a mouse button is pressed on a cell. |
void |
gridMouseEntered(GridEvent e)
Invoked when the mouse enters a cell. |
void |
gridMouseExited(GridEvent e)
Invoked when the mouse exits a cell. |
void |
gridMouseMoved(GridEvent e)
Invoked when a mouse button is released on a cell. |
void |
gridMousePressed(GridEvent e)
Invoked when a mouse button is pressed on a cell. |
void |
gridMouseReleased(GridEvent e)
Invoked when a mouse button is released on a cell. |
Method Detail |
public void gridMouseClicked(GridEvent e)
public void gridMousePressed(GridEvent e)
public void gridMouseReleased(GridEvent e)
public void gridMouseEntered(GridEvent e)
public void gridMouseExited(GridEvent e)
public void gridMouseDragged(GridEvent e)
public void gridMouseMoved(GridEvent e)
public void gridFocusGained(GridEvent e)
public void gridFocusLost(GridEvent e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |