# Interface FocusListener

All Known Implementing Classes:
  `DefaultLookAndFeel`

public interface FocusListener
Observes focus change events for a given form and invokes the callbacks to enable us to assign functionality based on current focused component.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `focusGained(Component cmp)`
  Invoked when component gains focus
  `void`
  `focusLost(Component cmp)`
  Invoked when component loses focus

- ## Method Details

  - ### focusGained

    void focusGained(Component cmp)

    Invoked when component gains focus

    ###### Parameters

    - `cmp`: the component that gains focus

  - ### focusLost

    void focusLost(Component cmp)

    Invoked when component loses focus

    ###### Parameters

    - `cmp`: the component that lost focus