本文整理了Java中org.zkoss.zk.ui.Desktop.addListener()
方法的一些代码示例,展示了Desktop.addListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Desktop.addListener()
方法的具体详情如下:
包路径:org.zkoss.zk.ui.Desktop
类名称:Desktop
方法名:addListener
[英]Adds a listener.
Note: if the listener is added twice, it will be invoked twice when a corresponding event occurs.
[中]添加一个侦听器。
注意:如果两次添加侦听器,则在发生相应事件时将调用它两次。
代码示例来源:origin: org.zkoss.zk/zk
public void init(Desktop desktop, Object request) {
desktop.addListener(new UploadInfoService());
}
}
代码示例来源:origin: org.carewebframework/org.carewebframework.cal.ui.reporting
public Init() {
Execution exec = Executions.getCurrent();
exec.getDesktop().addListener(this);
}
代码示例来源:origin: org.zkoss.zk/zkbind
public void didActivate(Component comp) {
if (_rootComp.equals(comp)) {
//zk 1442, don't do multiple subscribed if didActivate is called every request (e.x. jboss5)
initQueue();
if (_deferredActivator == null) {
//defer activation to execution only for the first didActivate when failover
comp.getDesktop().addListener(_deferredActivator = new DeferredActivator());
}
}
}
内容来源于网络,如有侵权,请联系作者删除!