Package org.zkoss.zk.ui.event

## Class StateChangeEvent

- java.lang.Object
- - org.zkoss.zk.ui.event.Event
  - - org.zkoss.zk.ui.event.StateChangeEvent

- All Implemented Interfaces:
    `java.io.Serializable`
  Direct Known Subclasses:
    `StateChangeEvent`

      public class StateChangeEvent
      extends Event

  Represents an event that state of component was changed.
  Since:
    9.6.0
  Author:
    leon
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `StateChangeEvent​(java.lang.String name, Component target, java.lang.Integer state)` | Constructs the state change event.

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `int` | `getState()` | Returns the current state that has been changed.
    `static StateChangeEvent` | `getStateChangeEvent​(AuRequest request)` | Returns the event of StateChangeEvent with the given request.

    - ### Methods inherited from class org.zkoss.zk.ui.event.Event

      `getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString`

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### StateChangeEvent

          public StateChangeEvent​(java.lang.String name,
                                  Component target,
                                  java.lang.Integer state)

      Constructs the state change event.
      Parameters:
        `state` - the state being changed.

  - ### Method Detail

    - #### getStateChangeEvent

          public static StateChangeEvent getStateChangeEvent​(AuRequest request)

      Returns the event of StateChangeEvent with the given request.
      Since:
        10.0.0

    - #### getState

          public int getState()

      Returns the current state that has been changed.
      Returns:
        the current state.