# Class ComponentStateChangeEvent

java.lang.Object
com.codename1.ui.events.ActionEvent
com.codename1.ui.events.ComponentStateChangeEvent

public class ComponentStateChangeEvent extends ActionEvent
An event that is fired when the state of a component is changed to and from initialized.

- ## Nested Class Summary

  ### Nested classes/interfaces inherited from class ActionEvent

  `ActionEvent.Type`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ComponentStateChangeEvent(Component source, boolean initialized)`
  Creates a ComponentStateChangeEvent.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `isInitialized()`
  Indicates if the component state is initialized.

  ### Methods inherited from class ActionEvent

  `consume, getActualComponent, getCommand, getComponent, getDraggedComponent, getDropTarget, getEventType, getKeyEvent, getProgress, getSource, getX, getY, isConsumed, isLongEvent, isPointerPressedDuringDrag, setPointerPressedDuringDrag`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ComponentStateChangeEvent

    public ComponentStateChangeEvent(Component source, boolean initialized)

    Creates a ComponentStateChangeEvent.

    ###### Parameters

    - `source`: The component whose state has changed.

    - `initialized`: True if the component state changed to initialized. False otherwise.

- ## Method Details

  - ### isInitialized

    public boolean isInitialized()

    Indicates if the component state is initialized.

    ###### Returns

    True if the component state changed to initialized.