Package org.zkoss.zul

Examples of org.zkoss.zul.ListModelList


  public void updateList() {
    _listBox.setModel(new ListModelList(_service.getAllLogsServerPushForSuccess()));
  }

  public void updateList2() {
    _listBox.setModel(new ListModelList(_service.getAllLogsServerPushForFailed()));
  }
View Full Code Here


    ResultObject ro = getApplicationNewsService().getAllApplicationNews(0, getPageSize());
    List<ApplicationNews> resultList = (List<ApplicationNews>) ro.getList();
    paging.setTotalSize(ro.getTotalCount());

    // set the model
    setListModelList(new ListModelList(resultList));
    this.listbox.setModel(getListModelList());
  }
View Full Code Here

    ResultObject ro = getApplicationNewsService().getAllApplicationNews(start, getPageSize());
    List<ApplicationNews> resultList = (List<ApplicationNews>) ro.getList();
    this.paging.setTotalSize(ro.getTotalCount());

    // set the model
    setListModelList(new ListModelList(resultList));
    this.listbox.setModel(getListModelList());
  }
View Full Code Here

        } catch (DataAccessException e) {
          ZksampleMessageUtils.showErrorMessage(e.getMostSpecificCause().toString());
        }

        // now synchronize the listBox in the parent zul-file
        final ListModelList lml = (ListModelList) listBoxOrderOrderPositions.getListModel();
        // Check if the orderPosition object is new or updated
        // -1 means that the obj is not in the list, so it's
        // new.
        if (lml.indexOf(orderposition) == -1) {
        } else {
          lml.remove(lml.indexOf(orderposition));
        }

        // +++++++ now synchronize the listBox in the parent
        // zul-file
        // +++ //
        Listbox listBoxOrderArticle = orderListCtrl.getListBoxOrderArticle();
        // now synchronize the orderposition listBox
        ListModelList lml3 = (ListModelList) listBoxOrderArticle.getListModel();
        // Check if the orderPosition object is new or updated
        // -1 means that the obj is not in the list, so it's
        // new.
        if (lml3.indexOf(orderposition) == -1) {
        } else {
          lml3.remove(lml3.indexOf(orderposition));
        }

        orderPositionDialogWindow.onClose(); // close
        // the
        // dialog
View Full Code Here

    getPagedListWrapper().init(soGuestBook, listbox_GuestBookList, paging_GuestBookList);
    // set the itemRenderer
    listbox_GuestBookList.setItemRenderer(new GuestBookListtemRenderer());

    // init the first entry for showing the long text.
    ListModelList lml = (ListModelList) listbox_GuestBookList.getModel();

    // Now we would select and show the text of the first entry in the list.
    // We became not the first item FROM the listbox because it's NOT
    // RENDERED AT THIS TIME.
    // So we take the first entry from the MODEL (ListModelList) and set as
    // selected.
    if (lml.getSize() > 0) {
      int rowIndex = 0;
      // only for correct showing after Rendering. No effect as an Event
      // yet.
      listbox_GuestBookList.setSelectedIndex(rowIndex);
      // get the first entry and cast them to the needed object
      GuestBook aGuestBook = (GuestBook) lml.get(rowIndex);
      if (aGuestBook != null) {
        textbox_GuestBook_gubText.setValue(aGuestBook.getGubText());
      }
    }
View Full Code Here

    ResultObject ro = getBrancheService().getAllBranches(0, getPageSize());
    List<Branche> resultList = (List<Branche>) ro.getList();
    this._paging.setTotalSize(ro.getTotalCount());

    // set the model
    setListModelList(new ListModelList(resultList));
    this.listbox.setModel(getListModelList());

    try {
      doModal();
    } catch (final SuspendNotAllowedException e) {
View Full Code Here

    ResultObject ro = getBrancheService().getAllBranches(start, getPageSize());
    List<Branche> resultList = (List<Branche>) ro.getList();
    this._paging.setTotalSize(ro.getTotalCount());

    // set the model
    setListModelList(new ListModelList(resultList));
    this.listbox.setModel(getListModelList());
  }
View Full Code Here

    for (int i = 0; i < 48; i++) {
      dateTime.add(sdf.format(calendar.getTime()));
      calendar.add(Calendar.MINUTE, 30);
    }
    ppbt.setModel(new ListModelList(dateTime));
    ppet.setModel(new ListModelList(dateTime));

    CalendarsEvent evt = getNewEvent();

    int left = evt.getX();
    int top = evt.getY();
View Full Code Here

    listBoxOrder.setItemRenderer(new OrderListModelItemRenderer());

    listBoxOrderArticle.setItemRenderer(new OrderpositionListModelItemRenderer());

    // init the first entry
    ListModelList lml = (ListModelList) listBoxOrder.getModel();

    // Now we would show the corresponding detail list of the first
    // selected entry of the MASTER Table
    // We became not the first item FROM the list because it's not
    // rendered at this time.
    // So we take the first entry in the ListModelList and set as
    // selected.
    if (lml.getSize() > 0) {
      int rowIndex = 0;
      listBoxOrder.setSelectedIndex(rowIndex);
      // get the first entry and cast them to the needed object
      Order anOrder = (Order) lml.get(rowIndex);
      if (anOrder != null) {
        // get the related order positions
        HibernateSearchObject<Orderposition> soOrderPosition = new HibernateSearchObject<Orderposition>(Orderposition.class, getPageSizeOrderPositions());
        soOrderPosition.addFilter(new Filter("order", anOrder, Filter.OP_EQUAL));
        // deeper loading of the relation to prevent the lazy
View Full Code Here

    this.lfTotalCount.setParent(listfoot);
    this.lfTotalCount.setWidth("30%");
    this.lfTotalCount.setStyle("font-weight:bold; text-align: right");

    this.lbTotalCount.setItemRenderer(new SecLoginlogStatisticTotalListModelItemRenderer());
    this.lbTotalCount.setModel(new ListModelList(list));

    /** +++ get the SUM of all logs for the ListFooter +++ */
    if (!StringUtils.isEmpty(String.valueOf(recCount))) {
      this.lfTotalCount.setLabel(String.valueOf(recCount));
    } else
View Full Code Here

TOP

Related Classes of org.zkoss.zul.ListModelList

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.