public class StubEvent extends Event
StubComponent
.
The target component (Event.getTarget()
) is the nearest non-stub
parent. While the stub component causes the event to be sent can be
found by use of getId(org.zkoss.zk.ui.Component, java.lang.String)
, if it is assigned with an ID.
Constructor and Description |
---|
StubEvent(java.lang.String name,
Component target,
java.lang.String cmd,
java.lang.String uuid,
java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> data)
Constructs a check-relevant event.
|
StubEvent(StubEvent evt,
Component target) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommand()
Returns the command of the AU request, such as onChange.
|
java.lang.String |
getId()
Returns the ID of the stub component sending the request,
or null if not available.
|
java.util.Map<java.lang.String,java.lang.Object> |
getRequestData()
Returns the data carried in the request.
|
static StubEvent |
getStubEvent(AuRequest request)
Converts an AU request to a stub event.
|
java.lang.String |
getUuid()
Returns the UUID of the stub component sending the request.
|
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString
public StubEvent(java.lang.String name, Component target, java.lang.String cmd, java.lang.String uuid, java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> data)
id
- the ID of the stub component causes this event.public static final StubEvent getStubEvent(AuRequest request)
public java.lang.String getId()
public java.lang.String getCommand()
public java.lang.String getUuid()
public java.util.Map<java.lang.String,java.lang.Object> getRequestData()
AuRequest
).Copyright © 2005-2023 Potix Corporation. All Rights Reserved.