Package org.zkoss.zul

Examples of org.zkoss.zul.ListModelList


      // Set the ListModel.
      getPlwOrders().init(soOrder, listBoxOrder, paging_OrderList);

      // get the first object and poll and show the orderpositions
      ListModelList lml = (ListModelList) listBoxOrder.getModel();

      if (lml.size() > 0) {

        Order anOrder = (Order) lml.get(0);

        if (anOrder != null) {
          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
          // loading problem.
          soOrderPosition.addFetch("article");

          getPlwOrderpositions().init(soOrderPosition, listBoxOrderArticle, paging_OrderArticleList);
        }
      } else {
        // get a new Order for searching that the resultList is cleared
        // Order anOrder = getOrderService().getNewOrder();
        // 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
        // // loading problem.
        // soOrderPosition.addFetch("article");
        //
        // getPlwOrderpositions().init(soOrderPosition,
        // listBoxOrderArticle, paging_OrderArticleList);

        // Bugfix: sge 18/11/2011
        ListModelList lml2 = (ListModelList) listBoxOrder.getModel();
        lml2.clear();

      }
    }

    // close the bandbox
View Full Code Here


    final List<DummyBean> list = getLoginLoggingService().getTotalCountByCountries();
    final int recCount = getLoginLoggingService().getTotalCountOfLogs();

    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

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

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

    /** +++ get the SUM of all logs for the ListFooter +++ */
    this.lfMonthlyCount.setLabel(String.valueOf(recCount));

    Cell cell = new Cell();
View Full Code Here

    final ListLongSumBean<DummyBean> listIntegerSumBean = getLoginLoggingService().getMonthlyCountByCountries(aMonth, aYear);

    final List<DummyBean> list = listIntegerSumBean.getList();
    final long recCount = listIntegerSumBean.getSum();

    this.lbMonthlyCount.setModel(new ListModelList(list));

    /** +++ get the SUM of all logs for the ListFooter +++ */
    this.lfMonthlyCount.setLabel(String.valueOf(recCount));
  }
 
View Full Code Here

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

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

    /** +++ get the SUM of all logs for the ListFooter +++ */
    this.lfDailyCount.setLabel(String.valueOf(recCount));

    Cell cell = new Cell();
View Full Code Here

    final List<DummyBean> list = listIntegerSumBean.getList();
    final long recCount = listIntegerSumBean.getSum();

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

    /** +++ get the SUM of all logs for the ListFooter +++ */
    this.lfDailyCount.setLabel(String.valueOf(recCount));

  }
 
View Full Code Here

    ResultObject ro = getBrancheService().getAllBranchesLikeText("", 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().getAllBranchesLikeText(searchText, 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

    int maxCol = getWorkbookCtrl().getMaxcolumns();
    ArrayList<String> strs = new ArrayList<String>();
    for (int i = 0; i < maxCol; i++) {
      strs.add(workbookCtrl.getColumnTitle(i));
    }
    availableColumns = new ListModelList(strs);
   
    int maxRow = getWorkbookCtrl().getMaxrows();
    strs = new ArrayList<String>();
    for (int i = 0; i < maxRow; i++) {
      strs.add(workbookCtrl.getRowTitle(i));
    }
    availableRows = new ListModelList(strs);
  }
View Full Code Here

   
    List<SortLevel> ary = new ArrayList<SortLevel>();
    ary.add(new SortLevel());
    setAvailableSortTarget(availableSortIndex);
   
    sortLevelModel = new ListModelList(ary);
    sortLevel.setModel(sortLevelModel);
    sortLevel.setItemRenderer(sortLevelRenderer);
  }
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.