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 forExecution.postEvent(int, Component, Event)
to handle if the real target of an event is different fromEvent.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
-
-
-
-
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 usegetRealTarget()
instead.- Parameters:
realTarget
- the real target. If null, it means broadcast.event
- the proxied event.
-
-