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

Constructor:
zebkit.ui.event.FocusManager ( )


public void compEnabled (c)

Component enabled event handler


Parameters:
public void compRemoved (p, i, c)

Component removed event handler


Parameters:
public void compShown (c)

Component shown 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:

public <zebkit.ui.Panel> focusOwner

Reference to the current focus owner component.