Class
zebkit.ui.event.FocusManager
extends <zebkit.ui.event.Manager> |
<zebkit.ui.event> |
Focus manager class defines the strategy of focus traversing among hierarchy of UI components. It keeps current focus owner component and provides API to change current focus component
zebkit.ui.event.FocusManager
(
)
public | void | compEnabled (c) |
public | void | compRemoved (p, i, c) |
public | void | compShown (c) |
public | <zebkit.ui.Panel> | findFocusable (c) |
public | <Boolean> | hasFocus (c) |
public | <Boolean> | isFocusable (c) |
public | void | keyPressed (e) |
public | void | pointerPressed (e) |
public | void | requestFocus (c) |
public
void
compEnabled (c )
Component enabled event handler Parameters:
|
public
void
compRemoved (p, i, c )
Component removed event handler Parameters:
|
public
<zebkit.ui.Panel>
findFocusable (c )
Find next candidate to grab focus starting from the given component. Parameters:
Returns:
<zebkit.ui.Panel>
a next component to gain focus. |
public
<Boolean>
hasFocus (c )
Test if the given component is a focus owner Parameters:
Returns:
<Boolean>
true if the given component holds focus |
public
<Boolean>
isFocusable (c )
Test if the given component can catch focus Parameters:
Returns:
<Boolean>
true if the given component can catch a focus |
public
void
keyPressed (e )
Key pressed event handler. Parameters:
|
public
void
pointerPressed (e )
Pointer pressed event handler. Parameters:
|
public
void
requestFocus (c )
Force to pass a focus to the given UI component Parameters:
|