Package org.zkoss.zk.ui.event

Examples of org.zkoss.zk.ui.event.OpenEvent


   * it also handles onOpen.
   */
  public void service(org.zkoss.zk.au.AuRequest request, boolean everError) {
    final String cmd = request.getCommand();
    if (cmd.equals(Events.ON_OPEN)) {
      OpenEvent evt = OpenEvent.getOpenEvent(request);
      _open = evt.isOpen();
      Events.postEvent(evt);
    } else
      super.service(request, everError);
  }
View Full Code Here


        private void expandWhenOpened(final TaskContainer taskBean,
                Treeitem item) {
            item.addEventListener("onOpen", new EventListener() {
                @Override
                public void onEvent(Event event) {
                    OpenEvent openEvent = (OpenEvent) event;
                    taskBean.setExpanded(openEvent.isOpen());
                }
            });
        }
View Full Code Here

        Menupopup result = new Menupopup();
        result.addEventListener("onOpen", new EventListener() {

            @Override
            public void onEvent(Event event) {
                OpenEvent openEvent = (OpenEvent) event;
                referenced = (T) openEvent.getReference();
            }
        });
        for (final Item item : items) {
            if (!item.name.equals("separator")) {
                Menuitem menuItem = item.createMenuItem();
View Full Code Here

            private void addExpandedListener(final Treeitem item,
                    final LoadTimeLine line) {
                item.addEventListener("onOpen", new EventListener() {
                    @Override
                    public void onEvent(Event event) {
                        OpenEvent openEvent = (OpenEvent) event;
                        if (openEvent.isOpen()) {
                            List<LoadTimeLine> closed = calculatedClosedItems(item);
                            expand(line, closed);
                        } else {
                            collapse(line);
                        }
View Full Code Here

TOP

Related Classes of org.zkoss.zk.ui.event.OpenEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.