Package org.zkoss.zk.ui.impl

## Class ProxyEvent

- java.lang.Object
- - org.zkoss.zk.ui.event.Event
  - - org.zkoss.zk.ui.impl.ProxyEvent

- All Implemented Interfaces:
    `java.io.Serializable`

      public class ProxyEvent
      extends Event

  Used to proxy another event. It is used internally for `Execution.postEvent(int, Component, Event)` to handle if the real target of an event is different from `Event.getTarget()`.
  Since:
    5.0.7
  Author:
    tomyeh
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ProxyEvent​(Component realTarget, Event event)` | Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `Event` | `getProxiedEvent()` | Returns the proxied event.
    `Component` | `getRealTarget()` | Returns the real target.

    - ### 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

    - #### ProxyEvent

          public ProxyEvent​(Component realTarget,
                            Event event)

      Constructor.

      Notice that `Event.getTarget()` is the same as the target of the given event. To retrieve the real target (passed thru the argument), please use `getRealTarget()` instead.

      Parameters:
        `realTarget` - the real target. If null, it means broadcast.
        `event` - the proxied event.

  - ### Method Detail

    - #### getRealTarget

          public Component getRealTarget()

      Returns the real target.

    - #### getProxiedEvent

          public Event getProxiedEvent()

      Returns the proxied event.