本文整理了Java中org.zkoss.zk.ui.event.Events.echoEvent()
方法的一些代码示例,展示了Events.echoEvent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Events.echoEvent()
方法的具体详情如下:
包路径:org.zkoss.zk.ui.event.Events
类名称:Events
方法名:echoEvent
[英]Echos an event. By echo we mean the event is fired after the client receives the AU responses and then echoes back. In other words, the event won't be processed in the current execution. Rather, it executes after the client receives the AU responses and then echoes back the event back.
It is usually if you want to prompt the user before doing a long operation. A typical case is to open a highlighted window to prevent the user from clicking any button before the operation gets done.
[中]呼应一个事件。通过echo,我们的意思是在客户机接收到AU响应后触发事件,然后进行回显。换句话说,事件不会在当前执行中处理。相反,它在客户机接收到AU响应后执行,然后回显事件。
通常是在执行长操作之前提示用户。典型的情况是打开突出显示的窗口,以防止用户在操作完成之前单击任何按钮。
代码示例来源:origin: org.zkoss.zk/zk
/** Echos an event.
* By echo we mean the event is fired after the client receives the AU
* responses and then echoes back.
* In other words, the event won't be processed in the current execution.
* Rather, it executes after the client receives the AU responses
* and then echoes back the event back.
*
* <p>It is usually if you want to prompt the user before doing a long
* operation. A typical case is to open a highlighted window to
* prevent the user from clicking any button before the operation gets done.
*
* <p>It is the same as <code>echoEvent(name, target, (Object)data)</code>.
*
* @since 3.0.2
* @see #sendEvent
* @see #echoEvent(String, Component, Object)
* @param name the event name, such as onSomething
* @param target the component to receive the event (never null).
* @param data the extra information, or null if not available.
* It will become {@link Event#getData}.
*/
public static final void echoEvent(String name, Component target, String data) {
echoEvent(name, target, (Object) data);
}
代码示例来源:origin: org.carewebframework/org.carewebframework.vista.security.impl
/**
* Restarts the timer.
*/
private void resetTimer() {
if (timer != null) {
timer.stop();
Events.echoEvent("onResetTimer", timer, null);
}
}
代码示例来源:origin: org.carewebframework/org.carewebframework.security.spring.core
/**
* Restarts the timer.
*/
private void resetTimer() {
if (timer != null) {
timer.stop();
Events.echoEvent("onResetTimer", timer, null);
}
}
代码示例来源:origin: org.carewebframework/org.carewebframework.cal.ui.reporting
/**
* Paging Toggle
*/
public void onClick$btnPagingToggle() {
log.trace("Paging Toggle Button");
isPaging = !isPaging;
showBusy(getLabel(Constants.LABEL_ID_WAITING));
Events.echoEvent("onUpdatePaging", root, isPaging);
}
代码示例来源:origin: org.carewebframework/org.carewebframework.cal.ui.patientselection.v1
public void onClick$btnSearch() {
Clients.showBusy(txtSearchMessage);
displaySearchMessage(txtSearchMessage);
Events.echoEvent("onSearch", root, null);
}
代码示例来源:origin: org.carewebframework/org.carewebframework.ext.performance
/**
* Echos an event to the specified target for timing purposes.
*
* @param target The component that will be the target of the echoed event.
* @param tag The tag to be included in the log entry.
* @param displayElapsed If true, the performance information will be sent to the display.
* @param rt The time segment to be logged.
*/
public static void timeEcho(Component target, String tag, boolean displayElapsed, RequestTime rt) {
monitorEvent(target, EVENT_TIME_ECHO, tag, displayElapsed);
Event event = new Event(EVENT_TIME_ECHO, target, rt);
Events.echoEvent(event);
}
代码示例来源:origin: org.zkoss.zk/zul
/** Checks if _progressingg is defined.
*/
private void checkProgressing() {
if (_progressing && _progressStatus == 0) {
_progressStatus = 1;
Clients.showBusy(Messages.get(MZul.PLEASE_WAIT));
Events.echoEvent("onEchoInclude", this, null);
}
}
代码示例来源:origin: org.zkoss.zk/zk
/** Echos an event.
* By echo we mean the event is fired after the client receives the AU
* responses and then echoes back.
* In other words, the event won't be processed in the current execution.
* Rather, it executes after the client receives the AU responses
* and then echoes back the event back.
*
* <p>It is usually if you want to prompt the user before doing a long
* operation. A typical case is to open a highlighted window to
* prevent the user from clicking any button before the operation gets done.
*
* @since 5.0.4
* @see #sendEvent
*/
public static final void echoEvent(Event event) {
echoEvent(event.getName(), event.getTarget(), event.getData());
}
代码示例来源:origin: org.carewebframework/org.carewebframework.rpms.ui.skintest
private void refreshList() {
lbTests.setModel((ListModelList<?>) null);
ListModelList<TestItem> model = new ListModelList<TestItem>(skinTestList);
if (colSort == null) {
colSort = (Listheader) lbTests.getListhead().getChildren().get(0);
}
lbTests.setModel(model);
sortTests();
updateControls();
Events.echoEvent("onResize", lbTests, null);
}
代码示例来源:origin: org.carewebframework/org.carewebframework.cal.ui.patientselection.v1
/**
* Handles a deferred request to show the dialog.
*
* @param event The onShow event.
* @throws Exception Unspecified exception.
*/
public void onShow(Event event) throws Exception {
root.removeAttribute(Constants.SELECTED_PATIENT_ATTRIB);
lstSearch.clearSelection();
onCheck$rgrpLists();
Events.echoEvent(Events.ON_FOCUS, root, null);
if (!root.inModal()) {
root.doModal();
}
}
代码示例来源:origin: org.carewebframework/org.carewebframework.rpms.ui.problem
private void refreshList() {
ProblemFilter filter = getFilter();
boolean bHasPriority = false;
lbProblems.setModel((ListModelList<?>) null);
ListModelList<Problem> model = new ListModelList<Problem>();
for (Problem problem : problemList) {
if (filter.include(problem)) {
model.add(problem);
bHasPriority |= problem.getPriority().length() > 0;
}
}
if (colSort == null) {
colSort = (Listheader) lbProblems.getListhead().getChildren().get(bHasPriority ? 4 : 0);
}
lbProblems.setModel(model);
sortProblems();
updateControls();
Events.echoEvent("onResize", lbProblems, null);
}
代码示例来源:origin: org.carewebframework/org.carewebframework.cal.ui.reporting
service.fetch(queryContext, queryListener);
} else {
Events.echoEvent("onFetchData", root, null);
代码示例来源:origin: org.carewebframework/org.carewebframework.security.spring.core
Events.echoEvent("onSubmit", comp, null);
内容来源于网络,如有侵权,请联系作者删除!