|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject java.awt.AWTEvent edu.umd.cfar.lamp.apploader.misc.TableEvent
An event that indicates a user interaction on a JTable. It is a little higher-level than a MouseEvent. Note that the events are all called 'clicks', but there is nothing preventing them from being generated in other ways.
Field Summary | |
static int |
ACTION_CLICK
Indicates a click asking for an action to occur. |
static int |
ALT_CLICK
Indicates a click asking for an alternate click. |
static int |
CENTER
Places the click in the center of the cell. |
static int |
CONTEXT_CLICK
Indicates a click asking for a context information. |
static int |
EAST
Places the click in the east of the cell. |
static int |
MAIN_CLICK
Indicates is the standard click type. |
static int |
SOUTH
Places the click in the south of the cell. |
static int |
SOUTHEAST
Places the click in the southeast of the cell. |
static int |
SOUTHWEST
Places the click in the southwest of the cell. |
static int |
TABLE_EVENT_ID
An arbitrary number selected to indicate the event type. |
static int |
WEST
Places the click in the west of the cell. |
Fields inherited from class java.awt.AWTEvent |
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
TableEvent(java.lang.Object source,
int type,
int row,
int column,
int direction)
Creates a new event for the given source table of the given type at the specified cell |
Method Summary | |
int |
getColumn()
Get the column of the cell-recipient of the event. |
int |
getDirection()
Gets the direction in the cell where the event occurred, e.g. |
int |
getRow()
Get the row of the cell-recipient of the event |
int |
getType()
Get the type of interaction event. |
boolean |
onEdge()
Detects if the click was slightly to the east or south of the clicked cell. |
Methods inherited from class java.awt.AWTEvent |
consume, getID, isConsumed, paramString, setSource, toString |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CONTEXT_CLICK
public static final int MAIN_CLICK
public static final int ALT_CLICK
public static final int ACTION_CLICK
public static final int CENTER
public static final int EAST
public static final int SOUTH
public static final int SOUTHEAST
public static final int WEST
public static final int SOUTHWEST
public static final int TABLE_EVENT_ID
Constructor Detail |
public TableEvent(java.lang.Object source, int type, int row, int column, int direction)
source
- The table that contains the eventtype
- The type of eventrow
- of the cell with the eventcolumn
- column of the cell with the eventdirection
- Method Detail |
public int getColumn()
public int getRow()
public int getType()
public boolean onEdge()
true
iff the user clicked on the
edge of the cell.public int getDirection()
SOUTHWEST
of CENTER
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |