|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
EditTraverseHandler controls the cell traversal and editor
display/commit/cancel logic. It also fires TraverseCell and
EditCell events as required.
| Field Summary | |
static int |
DOWN
|
static int |
HORIZONTAL
|
static int |
LEFT
|
static int |
RIGHT
|
static int |
UP
|
static int |
VERTICAL
|
| Method Summary | |
boolean |
cancel(boolean hide)
Cancels the current edit on the given table, if an edit is in progress |
void |
checkAndReparentEditor()
Check to see if editor component needs reparenting. |
boolean |
commit(boolean hide)
Commits the current edit on the table. |
com.klg.jclass.cell.JCCellEditor |
getCellEditor()
Returns the current cell editor. |
int |
getEditColumn()
Get the column of the current cell being edited. |
int |
getEditRow()
Get the row of the current cell being edited. |
Component |
getFocusableChild(Component c)
Return the component if it is focusable, otherwise the first kid which is focusable. |
void |
move(int direction,
int value)
Move the component. |
void |
repositionEditor()
Repositions the editor. |
void |
setCellEditor(com.klg.jclass.cell.JCCellEditor ed)
Sets the cell editor. |
void |
setFocusOnEditor()
Set focus on the component if it is focusable or to the first focusable child. |
void |
setHeight(int value)
Sets the height of the edit component. |
void |
setWidth(int value)
Sets the width of the edit component. |
boolean |
traverse(int row,
int column,
boolean select,
AWTEvent event,
int traverse_type,
boolean show_editor)
Traverse to the specified cell. |
void |
traverseInitial()
Traverses to the top-left cell. |
| Field Detail |
public static final int LEFT
public static final int RIGHT
public static final int UP
public static final int DOWN
public static final int HORIZONTAL
public static final int VERTICAL
| Method Detail |
public com.klg.jclass.cell.JCCellEditor getCellEditor()
null if none.public void setCellEditor(com.klg.jclass.cell.JCCellEditor ed)
ed - The new cell editorpublic int getEditRow()
public int getEditColumn()
public boolean traverse(int row,
int column,
boolean select,
AWTEvent event,
int traverse_type,
boolean show_editor)
row - The row to which to traversecolumn - The column to which to traverseselect - Should the cell be selectedevent - The event that caused this traverse (null if none)traverse_type - The type of traversal (right, left, down, up, home, ...)show_editor - Display the component, if called programatically
public void traverseInitial()
public void checkAndReparentEditor()
public void setWidth(int value)
value - The new widthpublic void setHeight(int value)
value - The new heightpublic void repositionEditor()
public void move(int direction,
int value)
direction - The direction of movement, horizontal or verticalvalue - The amount in pixels of movementpublic boolean cancel(boolean hide)
hide - determines whether the editor is hidden after the commit.
public boolean commit(boolean hide)
hide - determines whether the editor is hidden after the commit.
public void setFocusOnEditor()
public Component getFocusableChild(Component c)
c - The component whose focus or children's focus is being investigated
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||