# Package com.codename1.ui.events

package com.codename1.ui.events
Observable pattern event listeners in the spirit of AWT 1.1's event dispatching architecture, all events are dispatched on the EDT (Event Dispatch Thread). See the overview documentation for further information and `com.codename1.ui.Display`.

- Related Packages
  Package
  Description
  com.codename1.ui
  Main widget package containing the component/container "composite" similar both in terminology and design to Swing/AWT.
- Class
  Description
  ActionEvent
  Event object delivered when an `ActionListener` callback is invoked
  ActionEvent.Type
  The event type, as declared when the event is created.
  ActionListener<T extends ActionEvent>
  Event callback interface invoked when a component action occurs
  ActionSource<T extends ActionEvent>
  An interface that can be implemented by any class that broadcasts ActionEvents.
  BrowserNavigationCallback
  **Important: Calls to this interface are always performed on a separate thread from the EDT! They are performed on the native webkit rendering thread or native event dispatch thread, this interface MUST NEVER block or synchronize against the EDT which WILL lead to deadlocks.
  ComponentStateChangeEvent
  An event that is fired when the state of a component is changed to and from initialized.
  DataChangedListener
  Event callback interface invoked when a `com.codename1.ui.list.ListModel` changes its state thus indicating to the view that it should refresh.
  FocusListener
  Observes focus change events for a given form and invokes the callbacks to enable us to assign functionality based on current focused component.
  MessageEvent
  Encapsulates an event that either originates outside the App (e.g. from the webpage that contains the app if it is published using the Javascript port); or whose destination is outside the app.
  MessageEvent.PromptPromise
  Encapsulates a promise that should be fulfilled when implementingn a custom permissions prompt to record or play audio.
  PointerEvent
  Immutable snapshot describing the rich detail of a pointer interaction that goes beyond the simple x/y coordinates carried by the legacy pointer callbacks.
  ScrollListener
  Invoked to indicate a scroll change events
  SelectionListener
  Invoked to indicate a selection change in the list model
  StyleListener
  Invoked to indicate a change in a `Style` property
  WheelEvent
  Event delivered to mouse wheel listeners when the wheel or a trackpad scroll gesture is moved.
  WindowEvent
  Describes a change in the native window hosting the Codename One display on desktop platforms.
  WindowEvent.Type
  The type of window change that occurred.