com.eliad.swing
Class GridEvent
java.lang.Object
|
+--java.util.EventObject
|
+--com.eliad.swing.GridEvent
- public class GridEvent
- extends java.util.EventObject
The equivalent of MouseEvent
with
logical (cells or spans) coordinates.
- Version:
- 1.0 00/05/25
- Author:
- Patrick Mérissert-Coffinières
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
GridEvent(JSmartGrid source,
java.awt.event.InputEvent ie,
int row,
int column,
int rowCount,
int columnCount)
Constructs an input event for a given cell. |
Methods inherited from class java.util.EventObject |
getSource,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
GridEvent
public GridEvent(JSmartGrid source,
java.awt.event.InputEvent ie,
int row,
int column,
int rowCount,
int columnCount)
- Constructs an input event for a given cell.
- Parameters:
row
- the row of the cell where the event took place.colum
- the column of the cell where the event took place.
getRow
public int getRow()
- Returns:
- the row of the cell where the event took place.
getColumn
public int getColumn()
- Returns:
- the column of the cell where the event took place.
getRowCount
public int getRowCount()
- Returns:
- the row count of the span where the event took place if any,
1 if none.
getColumnCount
public int getColumnCount()
- Returns:
- the column count of the span where the event took place if any,
1 if none.
getSourceEvent
public java.awt.event.InputEvent getSourceEvent()