Revision history [back]

click to hide/show revision 1
initial version

answered 2014-02-10 15:23:48 +0800

chillworld gravatar image chillworld flag of Belgium

https://github.com/chillw...

Something like this?

@Command
public void addEventListener(final @BindingParam("splitter") Splitter splitter) {
    splitter.addEventListener(Events.ON_MOUSE_OVER, new EventListener<Event>() {

            public void onEvent(Event event) throws Exception {
                splitter.setOpen(false);
            }
        });
}

Something like this?

@Command
public void addEventListener(final @BindingParam("splitter") Splitter splitter) {
    splitter.addEventListener(Events.ON_MOUSE_OVER, new EventListener<Event>() {

            public void onEvent(Event event) throws Exception {
                splitter.setOpen(false);
            }
        });
}

<splitter id="splitter" onCreate="@command('addEventListener', splitter = splitter)">

Something like this?

@Command
public void addEventListener(final @BindingParam("splitter") Splitter splitter) {
    splitter.addEventListener(Events.ON_MOUSE_OVER, new EventListener<Event>() {

            public void onEvent(Event event) throws Exception {
                splitter.setOpen(false);
            }
        });
}

and in the zul :

<splitter id="splitter" onCreate="@command('addEventListener', splitter = splitter)">
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More