0

Enter event

asked 2015-06-02 14:12:17 +0800

Kipill gravatar image Kipill
1

Hello. I'm have a problem. My dialog window inherits AbstractDialogForm. Please tell me, when can I add Enter event listener?

Sorry from my English.

delete flag offensive retag edit

Comments

I'm use this class ru.itbasis.utils.zk.ui.form.AbstractDialogForm. And I don't have zk-xml file. I definition fields in java class. I don't can find method which allow add event key listener.

Kipill ( 2015-06-03 08:26:41 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-06-03 02:55:08 +0800

cor3000 gravatar image cor3000
6280 2 7

updated 2015-06-03 10:19:42 +0800

Since AbstractDialogForm is not a class of ZK I cannot comment on that.

However here the documentation on Keystroke Handling, I guess you are looking for the 'onOK' event. You can add it at any time. During or after the component creation.

EDIT - AFTER clarifying comment

AbstractDialogForm extends AbstractDialog which extends org.zkoss.zul.Window and is a ZK Component. To register an event listener simply call addEventListener("onOK", new EventListener() ...)

also check http://books.zkoss.org/wiki/ZKDeveloper%27sReference/EventHandling/EventListening#ListenbyUseofanEventListener

link publish delete flag offensive edit
Your answer
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
1 follower

RSS

Stats

Asked: 2015-06-02 14:12:17 +0800

Seen: 22 times

Last updated: Jun 03 '15

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