0

Process other EventListener

asked 2015-03-10 08:42:59 +0800

onsir gravatar image onsir
132 2

hi, i have code use eventListener,like

      buttonCode.addEventListener(Events.ON_CLICK, new EventListener() {
      @Override
      public void onEvent(Event event) throws Exception {
           doProcess1();  
           doProcess2();
           doProcess3();
           doProcess4();                     
      }});

and i write other eventListener,etc:onChange, that event will process method like buttonCode.ON_CLICK. but not working this code

            txtCode.addEventListener(Events.ON_CHANGE, new EventListener() {
            @Override
            public void onEvent(Event event) throws Exception {
                  buttonCode.getEventListeners(Events.ON_CLICK);
            }});

Thanks

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-03-10 14:07:01 +0800

Darksu gravatar image Darksu
1991 1 4

Hello onsir,

Please refer to the following url which provides details on event firing:

http://books.zkoss.org/wiki/ZKDeveloper%27sReference/EventHandling/EventFiring

Best Regards,

Darksu

link publish delete flag offensive edit
0

answered 2015-03-11 04:10:38 +0800

onsir gravatar image onsir
132 2

ok its work, this code

txtCode.addEventListener(Events.ON_CHANGE, new EventListener() {
        @Override
        public void onEvent(Event event) throws Exception {
             Events.sendEvent(Events.ON_CLICK,buttonCode,null);
        }});
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-03-10 08:42:59 +0800

Seen: 11 times

Last updated: Mar 11 '15

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