|
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.InputHandler
InputHandler
provides copy/paste support for
KeyInputHandler
and MouseInputHandler
.
Field Summary | |
protected boolean |
SELECTING
|
protected com.klg.jclass.table.JCTable |
table
|
Constructor Summary | |
InputHandler(com.klg.jclass.table.JCTable table)
|
Method Summary | |
void |
getCellPosition(int x,
int y,
com.klg.jclass.table.JCCellPosition cp)
Sets the given JCCellPosition with the cell found at the x,y coordinates. |
boolean |
isAlt(int modifiers)
Returns true if the modifier contains an ALT key. |
boolean |
isCell(int row,
int column)
Returns true if the row/column is a cell. |
boolean |
isControl(int modifiers)
Returns true if the modifier contains a control key. |
boolean |
isCopyAction(AWTEvent event,
int row,
int column)
Returns true if the given event is mapped to a copy action. |
boolean |
isLabel(int row,
int column)
Returns true if the row/column is a label. |
boolean |
isMeta(int modifiers)
Returns true if the modifier contains a META key. |
boolean |
isPasteAction(AWTEvent event,
int row,
int column)
Returns true if the given event is mapped to a paste action. |
boolean |
isShift(int modifiers)
Returns true if the modifier is a shift key. |
protected void |
loadPasteData(Vector cells)
Pastes the given vector of cells into the current location. |
void |
performCopyAction()
Executes a copy action using the system clipboard. |
void |
performPasteAction()
Executes a paste action using the system clipboard. |
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.JCTable table
protected boolean SELECTING
Constructor Detail |
public InputHandler(com.klg.jclass.table.JCTable table)
Method Detail |
public void getCellPosition(int x, int y, com.klg.jclass.table.JCCellPosition cp)
public boolean isShift(int modifiers)
public boolean isControl(int modifiers)
public boolean isAlt(int modifiers)
public boolean isMeta(int modifiers)
public boolean isCell(int row, int column)
public boolean isLabel(int row, int column)
public boolean isCopyAction(AWTEvent event, int row, int column)
public boolean isPasteAction(AWTEvent event, int row, int column)
public void performCopyAction()
public void performPasteAction()
protected void loadPasteData(Vector cells)
All cells paste independently. As a result, individual values may be rejected by the datasource.
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |