| java.lang.Object org.zkoss.zk.ui.event.Event
All known Subclasses: org.zkoss.zk.ui.event.BookmarkEvent, org.zkoss.mil.event.CommandEvent, org.zkoss.zk.ui.event.MouseEvent, org.zkoss.zk.ui.event.SelectEvent, org.zkoss.zk.ui.event.ZIndexEvent, org.zkforge.timeline.event.BandScrollEvent, org.zkoss.zul.event.PageSizeEvent, org.zkoss.zul.event.PagingEvent, org.zkoss.zk.ui.event.OpenEvent, org.zkoss.zul.event.ColSizeEvent, org.zkoss.zkplus.databind.BindingSaveEvent, org.zkoss.zk.ui.event.ClientInfoEvent, org.zkoss.zk.ui.event.InputEvent, org.zkoss.zk.ui.event.SelectionEvent, org.zkoss.zk.ui.event.ScrollEvent, org.zkoss.zk.ui.event.KeyEvent, org.zkoss.zk.ui.event.UploadEvent, org.zkoss.zk.ui.event.CreateEvent, org.zkoss.zk.ui.event.CheckEvent, org.zkoss.zk.ui.event.MoveEvent, org.zkoss.zk.ui.event.SizeEvent, org.zkoss.zk.ui.event.ForwardEvent,
Event | public class Event (Code) | | An event sent to the event handler of a component.
author: tomyeh See Also: Component |
Method Summary | |
public Object | getData() Returns the data accompanies with this event, or null if not available. | final public String | getName() Returns the event name. | final public Page | getPage() Returns the page owning this event, or null if broadcast. | final public Component | getTarget() Returns the target component that receives this event,
or null if broadcast. | public boolean | isPropagatable() Returns whether this event is propagatable. | public void | stopPropagation() Stops the propagation for this event. | public String | toString() |
Event | public Event(String name, Component target)(Code) | | Constructs a simple event.
Parameters: target - the component to receive this event,or null to indicate broadcasting the event to all root components. |
Event | public Event(String name, Component target, Object data)(Code) | | Constructs a simple event.
Parameters: target - the component to receive this event,or null to indicate broadcasting the event to all root components. Parameters: data - an arbitary data |
getData | public Object getData()(Code) | | Returns the data accompanies with this event, or null if not available.
|
getName | final public String getName()(Code) | | Returns the event name.
|
getPage | final public Page getPage()(Code) | | Returns the page owning this event, or null if broadcast.
|
getTarget | final public Component getTarget()(Code) | | Returns the target component that receives this event,
or null if broadcast.
|
stopPropagation | public void stopPropagation()(Code) | | Stops the propagation for this event.
|
|
|