本文整理了Java中org.zkoss.zk.ui.Execution.postEvent()
方法的一些代码示例,展示了Execution.postEvent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Execution.postEvent()
方法的具体详情如下:
包路径:org.zkoss.zk.ui.Execution
类名称:Execution
方法名:postEvent
[英]Queues the give event for the specified target to this execution. The target could be different from Event#getTarget.
[中]将指定目标的给定事件排队到此执行。目标可能与事件#getTarget不同。
代码示例来源:origin: org.zkoss.zk/zk
/** Queues the give event for the specified target to this execution.
* The target could be different from {@link Event#getTarget}.
* @param realTarget the target component that will receive the event.
* If null, it means broadcast, i.e., all root components will receive
* this event.
* <br/>Notice that postEvent(n, event) is the same as postEvent(n, event.getTarget(), event),
* but different from postEvent(n, 0, event).
* @since 5.0.7
*/
public static final void postEvent(Component realTarget, Event event) {
Executions.getCurrent().postEvent(0, realTarget, event);
}
代码示例来源:origin: org.zkoss.zk/zk
/** Queues the give event for the specified target to this execution.
* The target could be different from {@link Event#getTarget}.
* @param priority the priority of the event. The default priority is 0
* and the higher value means higher priority.
* @param realTarget the target component that will receive the event.
* If null, it means broadcast, i.e., all root components will receive
* this event.
* <br/>Notice that postEvent(n, event) is the same as postEvent(n, event.getTarget(), event),
* but different from postEvent(n, 0, event).
* @since 5.0.7
*/
public static final void postEvent(int priority, Component realTarget, Event event) {
Executions.getCurrent().postEvent(priority, realTarget, event);
}
代码示例来源:origin: org.zkoss.zk/zk
public void postEvent(Event evt) {
exec().postEvent(evt);
}
代码示例来源:origin: org.zkoss.zk/zk
public void postEvent(int priority, Component realTarget, Event evt) {
exec().postEvent(priority, realTarget, evt);
}
代码示例来源:origin: org.zkoss.zk/zk
public void postEvent(int priority, Event evt) {
exec().postEvent(priority, evt);
}
代码示例来源:origin: org.zkoss.zk/zk
/** Posts an event to the current execution.
*
* <p>The priority of the event is assumed to be 0. Refer to
* {@link #postEvent(int, Event)}.
*
* <p>On the other hand, the event sent by {@link #sendEvent} is processed
* immediately without posting it to the queue.
*
* <p>Note: if the target of an event is not attached to
* the page yet, the event is ignored silently.
* @see #sendEvent
* @see #echoEvent(String, Component, Object)
* @see #postEvent(int, Event)
*/
public static final void postEvent(Event event) {
Executions.getCurrent().postEvent(event);
}
代码示例来源:origin: org.zkoss.zk/zk
/** Posts an event to the current execution with the specified priority.
*
* <p>The posted events are processed from the higher priority to the
* lower one. If two events are posted with the same priority,
* the earlier the event being posted is processed earlier
* (first-in-first-out).
*
* @param priority the priority of the event. The higher the priority is, the earlier it
* is handled.<br/>
* The priority posted by {@link #postEvent(Event)} is 0.
* Applications shall not use the priority higher than 10,000 and
* lower than -10,000 since they are reserved for component development.
* @since 3.0.7
*/
public static final void postEvent(int priority, Event event) {
Executions.getCurrent().postEvent(priority, event);
}
代码示例来源:origin: org.carewebframework/org.carewebframework.ui.wonderbar
@Override
public void onEvent(Event event) throws Exception {
// TODO Auto-generated method stub
Component c = event.getTarget();
currentSelectedItem = (WonderbarItem) c.getAttribute(OBJECT_FOR_SELECT);
currentSelectedText = (String) c.getAttribute(STRING_FOR_SELECT);
Event fevent = new Event("onSelectFromBandbox", TestMenu.this);
Executions.getCurrent().postEvent(fevent);
}
内容来源于网络,如有侵权,请联系作者删除!