JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Class TableAction

java.lang.Object
  |
  +--com.klg.jclass.table.TableAction
All Implemented Interfaces:
Serializable

public class TableAction
extends Object
implements Serializable

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.

See Also:
Serialized Form

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

initiator

protected com.klg.jclass.table.ActionInitiator initiator

action

protected int action

COLUMN_SELECT_ACTION

public static final int COLUMN_SELECT_ACTION
Action constant for column selection.

See Also:
Constant Field Values

COLUMN_SORT_ACTION

public static final int COLUMN_SORT_ACTION
Action constant for column sort.

See Also:
Constant Field Values

COLUMN_DRAG_ACTION

public static final int COLUMN_DRAG_ACTION
Action constant for column drag.

See Also:
Constant Field Values

ROW_SELECT_ACTION

public static final int ROW_SELECT_ACTION
Action constant for row selection.

See Also:
Constant Field Values

ROW_DRAG_ACTION

public static final int ROW_DRAG_ACTION
Action constant for row drag.

See Also:
Constant Field Values

COPY_ACTION

public static final int COPY_ACTION
Action constant for copy range.

See Also:
Constant Field Values

PASTE_ACTION

public static final int PASTE_ACTION
Action constant for paste range.

See Also:
Constant Field Values
Constructor Detail

TableAction

public 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 Detail

getInitiator

public com.klg.jclass.table.ActionInitiator getInitiator()
Gets the ActionInitiator for this TableAction.

See Also:
setInitiator(com.klg.jclass.table.ActionInitiator)

setInitiator

public void setInitiator(com.klg.jclass.table.ActionInitiator initiator)
Sets the ActionInitiator for this TableAction.

See Also:
KeyActionInitiator, MouseActionInitiator

getAction

public int getAction()
Gets the value of the Action property for this TableAction instance. The Action property determines what action will be performed when the specified AWT event occurs.


setAction

public void setAction(int action)
Sets the value of the action property for this TableAction instance. The Action property determines what action will be performed when the specified AWT event occurs.


isMatch

public boolean isMatch(AWTEvent event,
                       int row,
                       int column)
Returns true if the event has a matching action set for the given row and column.


Copyright © 2004 Quest Software Inc..
All rights reserved.