0

如何在一个监听事件中调用ZUL页面中的方法

asked 2009-11-10 20:24:48 +0800

ring gravatar image ring
99 1

如题:如何在一个监听事件中调用ZUL页面中的方法

treerow.addEventListener("onDrop", new EventListener() {
public void onEvent(Event event) throws Exception {

}
});

<zscript><![CDATA[
void move(Component dragged) {
if (self instanceof Treerow) {
Boolean bool = self.parent.parent.insertBefore(dragged.parent,
self.parent);
if (!bool) {
self.parent.parent.insertBefore(self.parent, dragged.parent);
}

}
}
]]></zscript>

delete flag offensive retag edit

2 Replies

Sort by » oldest newest

answered 2009-11-11 00:45:59 +0800

adam4891288 gravatar image adam4891288
657 1 5

把ZUL这段代码放到后台去不行么?

link publish delete flag offensive edit

answered 2009-11-11 02:49:34 +0800

ring gravatar image ring
99 1

之前后台不知道如何获取被拖的那个组件,现在知道了
这个算是解决了

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-11-10 20:24:48 +0800

Seen: 318 times

Last updated: Nov 11 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More