Package org.zkoss.zul

Examples of org.zkoss.zul.Timer


   * @param event
   */
  private void doCreateDemoTimerForNotifications(Event event) {

    if (timer == null) {
      this.timer = new Timer();

      // timer doesn't work without a page as parent
      Window outerIndexWindow = (Window) Path.getComponent("/outerIndexWindow");
      this.timer.setPage(outerIndexWindow.getPage());
      // 60000 = 60 sec.
View Full Code Here


    // Components.addForwards(this, this); // auto forward

    this.setPosition("right,bottom");
    this.doOverlapped();

    final Timer timer = new Timer();
    timer.setParent(this);
    timer.setRepeats(true);
    timer.setDelay(2000);
    timer.addEventListener(Events.ON_TIMER, new EventListener() {
      private int i = 0;

      public void onEvent(Event event) throws Exception {
        setMessageEvent(i++ % 3, "hello" + i);
      }
    });

    timer.setRunning(true);
  }
View Full Code Here

  /**
   * Creates the Timer for the serverPush mechanism. In it we call to
   * different DB methods for showing different result sets.
   */
  private void createServerPushTimer() {
    this.timer = new Timer();

    // timer doesn't work without a page as parent
    this.timer.setPage(this.secLoginlogListWindow.getPage());
    this.timer.setDelay(10000);
    this.timer.setRepeats(true);
View Full Code Here

   * Creates the Timer for the serverPush mechanism. In it we call to
   * different DB methods for showing different result sets.
   */
  private void createServerPushTimer() {

    this.moduleTimer = new Timer();
    // timer doesn't work without a page as parent
    Window win = (Window) Path.getComponent("/outerIndexWindow");
    this.moduleTimer.setPage(win.getPage());

    this.moduleTimer.setDelay(getDelay());
View Full Code Here

   * Creates the Timer for the serverPush mechanism. In it we call to
   * different DB methods for showing different result sets.
   */
  private void createServerPushTimer() {

    this.moduleTimer = new Timer();
    // timer doesn't work without a page as parent
    Window win = (Window) Path.getComponent("/outerIndexWindow");
    this.moduleTimer.setPage(win.getPage());

    this.moduleTimer.setDelay(getDelay());
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Timer

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.