|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Since in JDK1.4, a different focus mechanism is used, an object implementing
the FocusManager
interface is required to use the correct
mechanism for the current environment.
Method Summary | |
com.klg.jclass.table.ComponentModel |
createDefaultComponentModel()
Creates the default Component handler. |
Component |
findFocusOwner(Component c)
Return the child Component of the specified
Component that is the focus owner, if any. |
com.klg.jclass.table.ComponentModel |
getComponentModel()
Returns the current component handler. |
com.klg.jclass.table.EditTraverseHandler |
getEditTraverseHandler()
Returns the edit handler for the table. |
com.klg.jclass.table.JCTable |
getTable()
Return the table for this focus manager |
void |
handleControlTab(boolean isShift,
boolean doCommit)
The user has hit CTRL-TAB or CTRL-SHIFT-TAB. |
boolean |
isFocusTraversable(Component c)
Can this component receive the focus |
boolean |
requestFocus()
Gets table to request focus. |
boolean |
requestFocus(Component c)
Gets the passed in component to request focus. |
void |
setComponentModel(com.klg.jclass.table.ComponentModel componentHandler)
Sets a new component handler for the table |
void |
setEditTraverseHandler(com.klg.jclass.table.EditTraverseHandler editTraverseHandler)
Sets a new edit handler for the table |
void |
setTable(com.klg.jclass.table.JCTable table)
Set the table that uses this focus manager |
void |
transferFocusCycle()
In JDK 1.4 or later, we need to make sure that when table has the focus that we are within table's current focus cycle rather than any focus cycle of a container that table happens to be in. |
Method Detail |
public com.klg.jclass.table.JCTable getTable()
public void setTable(com.klg.jclass.table.JCTable table)
table
- The new table that uses this focus managerpublic boolean requestFocus(Component c)
c
- The component who will request the focus.
public boolean requestFocus()
public com.klg.jclass.table.EditTraverseHandler getEditTraverseHandler()
public void setEditTraverseHandler(com.klg.jclass.table.EditTraverseHandler editTraverseHandler)
editTraverseHandler
- The new edit handlerpublic com.klg.jclass.table.ComponentModel getComponentModel()
public void setComponentModel(com.klg.jclass.table.ComponentModel componentHandler)
componentHandler
- The new compnnent handler for the tablepublic com.klg.jclass.table.ComponentModel createDefaultComponentModel()
public boolean isFocusTraversable(Component c)
c
- The component whose focusability is in question
public Component findFocusOwner(Component c)
Component
of the specified
Component
that is the focus owner, if any.
c
- the root of the Component
hierarchy to search for the
focus owner
null
if there is no focus owner, or
if the focus owner is not c
, or a descendant of
c
public void handleControlTab(boolean isShift, boolean doCommit)
isShift
- True if the shift key has been hit.doCommit
- Do a commit edit before traversing. This is needed the user
is editing a cell when he/she hits CTRL-TAB or CTRL-SHIFT-TAB.public void transferFocusCycle()
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |