Examples of EventListener


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

    show(new Navigation(user));
    updatePageTitle(user);
  }

  private void initBrowserInfo() {
    getRoot().addEventListener(Events.ON_CLIENT_INFO, new EventListener() {
      public void onEvent(Event evt) throws Exception {
        ClientInfoEvent ce = (ClientInfoEvent) evt;
        JeaseSession.set(Names.JEASE_CMS_HEIGHT, ce.getDesktopHeight());
        JeaseSession.set(Names.JEASE_CMS_WIDTH, ce.getDesktopWidth());
      }
View Full Code Here

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

  public boolean isSelected() {
    return isChecked();
  }
 
  public void addCheckListener(final ActionListener actionListener) {
    addEventListener(Events.ON_CHECK, new EventListener() {
      public void onEvent(Event e) throws Exception {
        actionListener.actionPerformed(e);
      }
    });
  }
View Full Code Here

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

  public boolean isEmpty() {
    return Validations.isEmpty(getValue());
  }

  public void addSelectListener(final ActionListener actionListener) {
    addEventListener(Events.ON_SELECT, new EventListener() {
      public void onEvent(Event e) throws Exception {
        actionListener.actionPerformed(e);
      }
    });
  }
View Full Code Here

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

      }
    }
  }

  public void addSelectListener(final ActionListener actionListener) {
    addEventListener(Events.ON_SELECT, new EventListener() {
      public void onEvent(Event e) throws Exception {
        actionListener.actionPerformed(e);
      }
    });
  }
View Full Code Here

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

      }
    });
  }

  public void addDropListener(final ActionListener actionListener) {
    addEventListener(Events.ON_DROP, new EventListener() {
      public void onEvent(Event e) throws Exception {
        actionListener.actionPerformed(e);
      }
    });
  }
View Full Code Here

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

    setMold("paging");
    setPageSize(30);
  }

  public void addSelectListener(final ActionListener actionListener) {
    addEventListener(Events.ON_SELECT, new EventListener() {
      public void onEvent(Event e) throws Exception {
        actionListener.actionPerformed(e);
      }
    });
  }
View Full Code Here

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

      }
    });
  }

  public void addChangeListener(final ActionListener actionListener) {
    addEventListener(Events.ON_CHANGE, new EventListener() {
      public void onEvent(Event e) throws Exception {
        actionListener.actionPerformed(e);
      }
    });
  }
View Full Code Here

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

        }
      }
    });

    aspectRatioLock.setChecked(true);
    EventListener dimensionChanged = new EventListener() {
      public void onEvent(Event evt) throws Exception {
        Dimension scaledDimension = null;
        if (aspectRatioLock.isChecked()) {
          scaledDimension = jfix.util.Images.scaleDimension(
              originalDimension, new Dimension(width.intValue(),
View Full Code Here

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

  private void downloadPerformed() {
    Filedownload.save(media);
  }

  public void addUploadListener(final ActionListener actionListener) {
    addEventListener(Events.ON_UPLOAD, new EventListener() {
      public void onEvent(Event e) throws Exception {
        actionListener.actionPerformed(e);
      }
    });
  }
View Full Code Here

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

      Comparator selectionListComparator, boolean open) {
    this.choiceComparator = choiceListComparator;
    this.selectionComparator = selectionListComparator;

    Button selectButton = new Button("", Images.GoUp);
    selectButton.addEventListener(Events.ON_CLICK, new EventListener() {
      public void onEvent(Event e) {
        actionSelect();
      }
    });

    Button deselectButton = new Button("", Images.GoDown);
    deselectButton.addEventListener(Events.ON_CLICK, new EventListener() {
      public void onEvent(Event e) {
        actionDeselect();
      }
    });

    Button upButton = new Button("", Images.GoUp);
    upButton.addEventListener(Events.ON_CLICK, new EventListener() {
      public void onEvent(Event e) {
        actionMoveUp();
      }
    });

    Button downButton = new Button("", Images.GoDown);
    downButton.addEventListener(Events.ON_CLICK, new EventListener() {
      public void onEvent(Event e) {
        actionMoveDown();
      }
    });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.