Package org.zkoss.zk.ui.event

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


        // get the first entry and cast them to the needed object
        setSelectedBranche((Branche) lml.get(0));

        // call the onSelect Event for showing the objects data in the
        // statusBar
        Events.sendEvent(new Event("onSelect", getListBoxBranch(), getSelectedBranche()));
      }
    }

  }
View Full Code Here


      setSelectedBranche(aBranche);
      setBranche(aBranche);

      // check first, if the tabs are created
      if (getBranchMainCtrl().getBranchDetailCtrl() == null) {
        Events.sendEvent(new Event("onSelect", getBranchMainCtrl().tabBranchDetail, null));
        // if we work with spring beanCreation than we must check a
        // little bit deeper, because the Controller are preCreated ?
      } else if (getBranchMainCtrl().getBranchDetailCtrl().getBinder() == null) {
        Events.sendEvent(new Event("onSelect", getBranchMainCtrl().tabBranchDetail, null));
      }

      Events.sendEvent(new Event("onSelect", getBranchMainCtrl().tabBranchDetail, aBranche));
    }
  }
View Full Code Here

      return;
    }

    // check first, if the tabs are created
    if (getBranchMainCtrl().getBranchDetailCtrl() == null) {
      Events.sendEvent(new Event("onSelect", getBranchMainCtrl().tabBranchDetail, null));
      // if we work with spring beanCreation than we must check a little
      // bit deeper, because the Controller are preCreated ?
    } else if (getBranchMainCtrl().getBranchDetailCtrl().getBinder() == null) {
      Events.sendEvent(new Event("onSelect", getBranchMainCtrl().tabBranchDetail, null));
    }

    // INIT ALL RELATED Queries/OBJECTS/LISTS NEW
    getBranchMainCtrl().getBranchDetailCtrl().setSelectedBranche(aBranche);
    getBranchMainCtrl().getBranchDetailCtrl().setBranche(aBranche);

    // store the selected bean values as current
    getBranchMainCtrl().doStoreInitValues();

    // show the objects data in the statusBar
    final String str = Labels.getLabel("common.Branch") + ": " + aBranche.getBraBezeichnung();
    EventQueues.lookup("selectedObjectEventQueue", EventQueues.DESKTOP, true).publish(new Event("onChangeSelectedObject", null, str));

  }
View Full Code Here

 
  public static Event getClickEvent(AuRequest request, String cmd) {
    final JSONArray data = (JSONArray) request.getData().get("data");
    final Calendars cmp = verifyEvent(request, data, 1);   
   
    return new Event(cmd, cmp, Util.fixDSTTime(cmp.getDefaultTimeZone(), new Date(getLong(data.get(0)))));
  }
View Full Code Here

        // get the first entry and cast them to the needed object
        setSelectedArticle((Article) lml.get(0));

        // call the onSelect Event for showing the objects data in the
        // statusBar
        Events.sendEvent(new Event("onSelect", getListBoxArticle(), getSelectedArticle()));
      }
    }
  }
View Full Code Here

      setSelectedArticle(anArticle);
      setArticle(anArticle);

      // check first, if the tabs are created
      if (getArticleMainCtrl().getArticleDetailCtrl() == null) {
        Events.sendEvent(new Event("onSelect", getArticleMainCtrl().tabArticleDetail, null));
        // if we work with spring beanCreation than we must check a
        // little bit deeper, because the Controller are preCreated ?
      } else if (getArticleMainCtrl().getArticleDetailCtrl().getBinder() == null) {
        Events.sendEvent(new Event("onSelect", getArticleMainCtrl().tabArticleDetail, null));
      }

      Events.sendEvent(new Event("onSelect", getArticleMainCtrl().tabArticleDetail, anArticle));
    }
  }
View Full Code Here

      return;
    }

    // check first, if the tabs are created
    if (getArticleMainCtrl().getArticleDetailCtrl() == null) {
      Events.sendEvent(new Event("onSelect", getArticleMainCtrl().tabArticleDetail, null));
      // if we work with spring beanCreation than we must check a little
      // bit deeper, because the Controller are preCreated ?
    } else if (getArticleMainCtrl().getArticleDetailCtrl().getBinder() == null) {
      Events.sendEvent(new Event("onSelect", getArticleMainCtrl().tabArticleDetail, null));
    }

    // INIT ALL RELATED Queries/OBJECTS/LISTS NEW
    getArticleMainCtrl().getArticleDetailCtrl().setSelectedArticle(anArticle);
    getArticleMainCtrl().getArticleDetailCtrl().setArticle(anArticle);

    // store the selected bean values as current
    getArticleMainCtrl().doStoreInitValues();

    // show the objects data in the statusBar
    final String str = Labels.getLabel("common.Article") + ": " + anArticle.getArtKurzbezeichnung();
    EventQueues.lookup("selectedObjectEventQueue", EventQueues.DESKTOP, true).publish(new Event("onChangeSelectedObject", null, str));

  }
View Full Code Here

      @Override
      public void onEvent(Event event) throws Exception {
        // open a box for inserting the message
        Window win = (Window) Path.getComponent("/outerIndexWindow");
        final String str = InputMessageTextBox.show(win);
        EventQueues.lookup("testEventQueue", EventQueues.APPLICATION, true).publish(new Event("onTestEventQueue", null, str));
      }
    });

  }
View Full Code Here

    // get the current Tab for later checking if we must change it
    final Tab currentTab = this.tabbox_ArticleMain.getSelectedTab();

    // check first, if the tabs are created, if not than create it
    if (getArticleDetailCtrl() == null) {
      Events.sendEvent(new Event("onSelect", tabArticleDetail, null));
      // if we work with spring beanCreation than we must check a little
      // bit deeper, because the Controller are preCreated ?
    } else if (getArticleDetailCtrl().getBinder() == null) {
      Events.sendEvent(new Event("onSelect", tabArticleDetail, null));
    }

    // check if the tab is one of the Detail tabs. If so do not change the
    // selection of it
    if (!currentTab.equals(this.tabArticleDetail)) {
View Full Code Here

  private void doDelete(Event event) throws InterruptedException {
    // logger.debug(event.toString());

    // check first, if the tabs are created, if not than create them
    if (getArticleDetailCtrl().getBinder() == null) {
      Events.sendEvent(new Event("onSelect", tabArticleDetail, null));
    }

    // check first, if the tabs are created
    if (getArticleDetailCtrl().getBinder() == null) {
      return;
View Full Code Here

TOP

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

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.