|
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.FocusManager
Since in JDK1.4, a different focus mechanism is used, an object implementing
the FocusModel
interface is required to use the correct
mechanism for the current environment.
Field Summary | |
protected com.klg.jclass.table.ComponentModel |
componentHandler
|
protected com.klg.jclass.table.EditTraverseHandler |
editTraverseHandler
|
protected com.klg.jclass.table.JCTable |
table
|
Method Summary | |
abstract com.klg.jclass.table.ComponentModel |
createDefaultComponentModel()
Creates the default component handler. |
protected com.klg.jclass.table.ComponentModel |
createDefaultComponentModel(String className)
Creates the default component handler. |
abstract com.klg.jclass.table.EditTraverseHandler |
createDefaultEditTraverseHandler()
Creates the default edit handler. |
abstract 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 |
abstract void |
handleControlTab(boolean isShift,
boolean doCommit)
The user has hit CTRL-TAB or CTRL-SHIFT-TAB. |
abstract boolean |
isFocusTraversable(Component c)
Can this component receive the focus |
boolean |
requestFocus()
This method does nothing and is meant to be overridden |
boolean |
requestFocus(Component c)
This method does nothing and is meant to be overridden |
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 |
abstract 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. |
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 com.klg.jclass.table.EditTraverseHandler editTraverseHandler
protected com.klg.jclass.table.ComponentModel componentHandler
Method Detail |
public com.klg.jclass.table.JCTable getTable()
getTable
in interface FocusModel
public void setTable(com.klg.jclass.table.JCTable table)
setTable
in interface FocusModel
table
- The new table that uses this focus managerpublic boolean requestFocus(Component c)
requestFocus
in interface FocusModel
c
- The component on which to request focus
public boolean requestFocus()
requestFocus
in interface FocusModel
public com.klg.jclass.table.EditTraverseHandler getEditTraverseHandler()
getEditTraverseHandler
in interface FocusModel
public void setEditTraverseHandler(com.klg.jclass.table.EditTraverseHandler editTraverseHandler)
setEditTraverseHandler
in interface FocusModel
editTraverseHandler
- The new edit handlerpublic abstract com.klg.jclass.table.EditTraverseHandler createDefaultEditTraverseHandler()
public com.klg.jclass.table.ComponentModel getComponentModel()
getComponentModel
in interface FocusModel
public void setComponentModel(com.klg.jclass.table.ComponentModel componentHandler)
setComponentModel
in interface FocusModel
componentHandler
- The new compnnent handler for the tablepublic abstract com.klg.jclass.table.ComponentModel createDefaultComponentModel()
createDefaultComponentModel
in interface FocusModel
protected com.klg.jclass.table.ComponentModel createDefaultComponentModel(String className)
className
- The name of the class to be instantiated as the component
handler.public abstract boolean isFocusTraversable(Component c)
isFocusTraversable
in interface FocusModel
c
- The component whose focusability is in question
public abstract Component findFocusOwner(Component c)
Component
of the specified
Component
that is the focus owner, if any.
findFocusOwner
in interface FocusModel
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 abstract void handleControlTab(boolean isShift, boolean doCommit)
handleControlTab
in interface FocusModel
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 abstract void transferFocusCycle()
transferFocusCycle
in interface FocusModel
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |