Package org.zkoss.zul

Examples of org.zkoss.zul.Listitem$ExtraCtrl


   */
  public void onDoubleClickedOrderPositionItem(Event event) throws InterruptedException {
    // logger.debug(event.toString());

    // get the selected object
    Listitem item = listBoxOrderOrderPositions.getSelectedItem();

    if (item != null) {
      // CAST AND STORE THE SELECTED OBJECT
      Orderposition anOrderposition = (Orderposition) item.getValue();

      /*
       * We can call our Dialog zul-file with parameters. So we can call
       * them with a object of the selected item. For handed over these
       * parameter only a Map is accepted. So we put the object in a
View Full Code Here


   */
  public void onDoubleClickedCustomerItem(Event event) {
    // logger.debug(event.toString());

    // get the customer
    Listitem item = listBoxCustomerSearch.getSelectedItem();
    if (item != null) {

      Customer aCustomer = (Customer) item.getAttribute("data");
      setCustomer(aCustomer);

      kunNr.setValue(getCustomer().getKunNr());
      bandbox_OrderDialog_CustomerSearch.setValue(getCustomer().getKunNr());
      kunName1.setValue(getCustomer().getKunName1() + " " + getCustomer().getKunName2() + ", " + getCustomer().getKunOrt());
View Full Code Here

  @Secured({ "CustomerList_listBoxCustomer.onDoubleClick" })
  public void onCustomerItemDoubleClicked(Event event) throws Exception {
    logger.debug(event.toString());

    // get the selected customer object
    Listitem item = this.listBoxCustomer.getSelectedItem();

    if (item != null) {
      // CAST AND STORE THE SELECTED OBJECT
      Customer aCustomer = (Customer) item.getAttribute("data");

      showDetailView(aCustomer);
    }
  }
View Full Code Here

     * @param event
     */
    public void onDoubleClicked(Event event) {

      if (listbox.getSelectedItem() != null) {
        Listitem li = listbox.getSelectedItem();
        YoutubeLink youtubeLink = (YoutubeLink) li.getAttribute("data");

        setYoutubeLink(youtubeLink);
        this.onClose();
      }
    }
View Full Code Here

    final class OnCloseListener implements EventListener {
      @Override
      public void onEvent(Event event) throws Exception {

        if (listbox.getSelectedItem() != null) {
          Listitem li = listbox.getSelectedItem();
          YoutubeLink youtubeLink = (YoutubeLink) li.getAttribute("data");

          setYoutubeLink(youtubeLink);
        }
        onClose();
      }
View Full Code Here

   */
  public void onSelect$listbox_GuestBookList(Event event) throws Exception {
    // logger.debug("--> " + event.toString());

    // get the selected object
    Listitem item = listbox_GuestBookList.getSelectedItem();

    if (item != null) {

      GuestBook aGuestBook = (GuestBook) item.getValue();

      // CAST AND STORE THE SELECTED OBJECT
      textbox_GuestBook_gubText.setValue(aGuestBook.getGubText());
    }
  }
View Full Code Here

   */
  public void onDoubleClickedGuestBookItem(Event event) throws Exception {
    // logger.debug("--> " + event.toString());

    // get the selected object
    Listitem item = listbox_GuestBookList.getSelectedItem();

    if (item != null) {
      // CAST AND STORE THE SELECTED OBJECT
      GuestBook aGuestBook = (GuestBook) item.getValue();

      showDetailView(aGuestBook);
    }
  }
View Full Code Here

   */
  public void onDoubleClickedArticleItem(Event event) {
    // logger.debug(event.toString());

    // get the customer
    Listitem item = this.listBoxArticleSearch.getSelectedItem();
    if (item != null) {

      // get and cast the selected object
      setArticle((Article) item.getAttribute("data"));

      artNr.setValue(article.getArtNr());
      artKurzbezeichnung.setValue(article.getArtKurzbezeichnung());
      aupEinzelwert.setValue(article.getArtPreis());
    }
View Full Code Here

   * @param event
   */
  public void onDoubleClicked(Event event) {

    if (this.listbox.getSelectedItem() != null) {
      Listitem li = this.listbox.getSelectedItem();
      Branche branche = (Branche) li.getAttribute("data");

      setBranche(branche);
      this.onClose();
    }
  }
View Full Code Here

      // deselect selectedBean
      // TODO don't work in expected way
      // evtl. mittels Reflection den zu uebergebenen selectedItem bean
      // mit setXXXXX(null) setzen.
      final Listitem li = getListbox().getSelectedItem();
      if (li != null) {
        li.setSelected(false);
      }

      final PagingEvent pe = (PagingEvent) event;
      final int pageNo = pe.getActivePage();
      final int start = pageNo * getPageSize();
 
View Full Code Here

TOP

Related Classes of org.zkoss.zul.Listitem$ExtraCtrl

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.