-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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
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.
Asked: 2006-03-16 18:15:43 +0800
Seen: 718 times
Last updated: Mar 17 '06