|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.util.gui.FocusUtils
Class FocusUtils defines a set of static utility methods related to component focus.
Method Summary | |
static void |
disableFocusComponents(java.awt.Container contObj,
java.awt.Component keepFocusObj)
Disables focusability on all components held by the given container or any subcontainers of it, except for any component matching the 'keepFocusObj' component or that is any type of menu item. |
static java.awt.Component |
findFirstFocusableComponent(java.awt.Container contObj,
java.lang.Class preferredType)
Finds the first component of the preferred class-type among all the components held by the given container or any subcontainers of it. |
static java.awt.Component |
findFocusedComponent(java.awt.Container contObj)
Finds the first focused component held by the given container or any subcontainers of it |
static void |
restoreTabFocusTraversal(java.awt.Container containerObj)
Restores the focus-traversal function of the "Tab" key. |
static void |
setComponentFocusDisabled(java.awt.Component compObj)
Disables focusability on the given component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void setComponentFocusDisabled(java.awt.Component compObj)
compObj
- the component to use.public static void disableFocusComponents(java.awt.Container contObj, java.awt.Component keepFocusObj)
contObj
- the container to use.keepFocusObj
- the component that should retain focusability,
or null for none.public static java.awt.Component findFirstFocusableComponent(java.awt.Container contObj, java.lang.Class preferredType)
contObj
- the container to use.preferredType
- the preferred class-type to be found.
public static java.awt.Component findFocusedComponent(java.awt.Container contObj)
contObj
- the container to use.
public static void restoreTabFocusTraversal(java.awt.Container containerObj)
containerObj
- the component to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |