0

using onDblClick

asked 2006-03-16 18:15:43 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3633272

By: nobody

hi i`m trying to make a listener for the onDblClick event, and it doesn`t works with the onDblClick event but this works with the onClick event :S, somebody can help me?? . Here is my code:

public class LabelNewImp extends Label {

/** Creates a new instance of LabelNewImp */
public LabelNewImp() {
super();
this.addEventListener("onDblClick", new MyListener());
this.addEventListener("onClick", new MyListener());
}

/** Creates a new instance of LabelNewImp */
public LabelNewImp(String str) {
super(str);
this.addEventListener("onDblClick", new MyListener());
this.addEventListener("onClick", new MyListener());
}


public String getHtmlAttributes() {
final StringBuffer sb =
new StringBuffer(64);
if (isAsapRequired("onDblClick"))
HTMLs.appendAttribute(sb, "zk_onDblClick", true);
sb.append(super.getHtmlAttributes());
return sb.toString();
}

}


class MyListener implements com.potix.zk.ui.event.EventListener {
public void onEvent(Event event) throws UiException {
System.out.println("Event->"+event.getName()); //identifies the event in the log
}
public boolean isAsap() {
return true; //Refer the following section for description
}
}

when i make only onr click on the label it shows me event->onClick but when i make a double click it doesn't shows anything.
PD: i`m using zklib 1.0.1 thanks

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2006-03-17 01:15:17 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3634315

By: tomyeh

It is not supported yet (as documented in the developer's guide).

Post to Feature Requests if you need it. Thanks.

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: 2006-03-16 18:15:43 +0800

Seen: 718 times

Last updated: Mar 17 '06

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