Class ProxyEvent

java.lang.Object
org.zkoss.zk.ui.event.Event
org.zkoss.zk.ui.impl.ProxyEvent
All Implemented Interfaces:
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:
  • Constructor Details

    • 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 Details

    • getRealTarget

      public Component getRealTarget()
      Returns the real target.
    • getProxiedEvent

      public Event getProxiedEvent()
      Returns the proxied event.