|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.table.TableAction
TableAction
is responsible for defining a
mapping from a user event to an action performed on table.
For example, TableAction
can be used to map
a Shift+LeftClick to a sort event.
Field Summary | |
protected int |
action
|
static int |
COLUMN_DRAG_ACTION
Action constant for column drag. |
static int |
COLUMN_SELECT_ACTION
Action constant for column selection. |
static int |
COLUMN_SORT_ACTION
Action constant for column sort. |
static int |
COPY_ACTION
Action constant for copy range. |
protected com.klg.jclass.table.ActionInitiator |
initiator
|
static int |
PASTE_ACTION
Action constant for paste range. |
static int |
ROW_DRAG_ACTION
Action constant for row drag. |
static int |
ROW_SELECT_ACTION
Action constant for row selection. |
Constructor Summary | |
TableAction(com.klg.jclass.table.ActionInitiator initiator,
int action)
A public constructor that creates a mapping from a series of modifiers to a action. |
Method Summary | |
int |
getAction()
Gets the value of the Action property for this
TableAction instance. |
com.klg.jclass.table.ActionInitiator |
getInitiator()
Gets the ActionInitiator for this
TableAction . |
boolean |
isMatch(AWTEvent event,
int row,
int column)
Returns true if the event has a matching action set for the given row and column. |
void |
setAction(int action)
Sets the value of the action property for this TableAction
instance. |
void |
setInitiator(com.klg.jclass.table.ActionInitiator initiator)
Sets the ActionInitiator for this
TableAction . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.klg.jclass.table.ActionInitiator initiator
protected int action
public static final int COLUMN_SELECT_ACTION
public static final int COLUMN_SORT_ACTION
public static final int COLUMN_DRAG_ACTION
public static final int ROW_SELECT_ACTION
public static final int ROW_DRAG_ACTION
public static final int COPY_ACTION
public static final int PASTE_ACTION
Constructor Detail |
public TableAction(com.klg.jclass.table.ActionInitiator initiator, int action)
Method Detail |
public com.klg.jclass.table.ActionInitiator getInitiator()
ActionInitiator
for this
TableAction
.
setInitiator(com.klg.jclass.table.ActionInitiator)
public void setInitiator(com.klg.jclass.table.ActionInitiator initiator)
ActionInitiator
for this
TableAction
.
KeyActionInitiator
,
MouseActionInitiator
public int getAction()
Action
property for this
TableAction
instance.
The Action
property determines what action will be
performed when the specified AWT event occurs.
public void setAction(int action)
TableAction
instance. The Action
property determines what action will
be performed when the specified AWT event occurs.
public boolean isMatch(AWTEvent event, int row, int column)
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |