com.eliad.swing
Interface GridListener

All Known Implementing Classes:
GridAdapter

public interface GridListener
extends java.util.EventListener

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

gridMouseClicked

public void gridMouseClicked(GridEvent e)
Invoked when the mouse is clicked on a cell.

gridMousePressed

public void gridMousePressed(GridEvent e)
Invoked when a mouse button is pressed on a cell.

gridMouseReleased

public void gridMouseReleased(GridEvent e)
Invoked when a mouse button is released on a cell.

gridMouseEntered

public void gridMouseEntered(GridEvent e)
Invoked when the mouse enters a cell.

gridMouseExited

public void gridMouseExited(GridEvent e)
Invoked when the mouse exits a cell.

gridMouseDragged

public void gridMouseDragged(GridEvent e)
Invoked when a mouse button is pressed on a cell.

gridMouseMoved

public void gridMouseMoved(GridEvent e)
Invoked when a mouse button is released on a cell.

gridFocusGained

public void gridFocusGained(GridEvent e)
Invoked when the focus enters cell.

gridFocusLost

public void gridFocusLost(GridEvent e)
Invoked when the focus enters cell.