Package org.zkoss.zul

Examples of org.zkoss.zul.FieldComparator


    // init, show all rights
    checkbox_SecRoleList_ShowAll.setChecked(true);

    // not used listheaders must be declared like ->
    // lh.setSortAscending(""); lh.setSortDescending("")
    listheader_SecRoleList_rolShortdescription.setSortAscending(new FieldComparator("rolShortdescription", true));
    listheader_SecRoleList_rolShortdescription.setSortDescending(new FieldComparator("rolShortdescription", false));
    listheader_SecRoleList_rolLongdescription.setSortAscending("");
    listheader_SecRoleList_rolLongdescription.setSortDescending("");

    // ++ create the searchObject and init sorting ++//
    HibernateSearchObject<SecRole> soSecRole = new HibernateSearchObject<SecRole>(SecRole.class, getCountRows());
View Full Code Here


    paging_ArticleList.setPageSize(getCountRows());
    paging_ArticleList.setDetailed(true);

    // not used listheaders must be declared like ->
    // lh.setSortAscending(""); lh.setSortDescending("")
    listheader_ArticleList_No.setSortAscending(new FieldComparator("artNr", true));
    listheader_ArticleList_No.setSortDescending(new FieldComparator("artNr", false));
    listheader_ArticleList_ShortDescr.setSortAscending(new FieldComparator("artKurzbezeichnung", true));
    listheader_ArticleList_ShortDescr.setSortDescending(new FieldComparator("artKurzbezeichnung", false));
    listheader_ArticleList_SinglePrice.setSortAscending(new FieldComparator("artPreis", true));
    listheader_ArticleList_SinglePrice.setSortDescending(new FieldComparator("artPreis", false));

    // ++ create the searchObject and init sorting ++//
    // get customers and only their latest address
    searchObj = new HibernateSearchObject<Article>(Article.class, getCountRows());
    searchObj.addSort("artNr", false);
View Full Code Here

    checkbox_SecGroupRight_All.setChecked(true);
    filterTypeForShowingRights();

    // not used listheaders must be declared like ->
    // lh.setSortAscending(""); lh.setSortDescending("")
    this.listheader_SecGroupRight_grpShortdescription.setSortAscending(new FieldComparator("grpShortdescription", true));
    this.listheader_SecGroupRight_grpShortdescription.setSortDescending(new FieldComparator("grpShortdescription", false));

    // Assign the Comparator for sorting GroupRights Listbox
    listheader_SecGroupRight_RightName.setSortAscending(new FieldComparator("rigName", true));
    listheader_SecGroupRight_RightName.setSortDescending(new FieldComparator("rigName", false));
    listheader_SecGroupRight_Type.setSortAscending(new FieldComparator("rigType", true));
    listheader_SecGroupRight_Type.setSortDescending(new FieldComparator("rigType", false));

    // Assign the Comparator for sorting GroupRights Listbox on Tab
    // "only granted rights"
    listheader_SecGroupRight_Details_GrantedRight.setSortAscending("");
    listheader_SecGroupRight_Details_GrantedRight.setSortDescending("");
    listheader_SecGroupRight_Details_RightName.setSortAscending(new FieldComparator("rigName", true));
    listheader_SecGroupRight_Details_RightName.setSortDescending(new FieldComparator("rigName", false));
    listheader_SecGroupRight_Details_Type.setSortAscending(new FieldComparator("rigType", true));
    listheader_SecGroupRight_Details_Type.setSortDescending(new FieldComparator("rigType", false));

    listBoxSecGroupRight.setItemRenderer(new SecGrouprightRightListModelItemRenderer(this));
  }
View Full Code Here

    // init, show all rights
    this.checkbox_SecLoginlogList_ShowAll.setChecked(true);

    // not used listheaders must be declared like ->
    // lh.setSortAscending(""); lh.setSortDescending("")
    this.listheader_SecLoginlogList_lglLogtime.setSortAscending(new FieldComparator("lglLogtime", true));
    this.listheader_SecLoginlogList_lglLogtime.setSortDescending(new FieldComparator("lglLogtime", false));
    this.listheader_SecLoginlogList_lglLogtime.setSortDirection("descending");
    this.listheader_SecLoginlogList_lglLoginname.setSortAscending(new FieldComparator("lglLoginname", true));
    this.listheader_SecLoginlogList_lglLoginname.setSortDescending(new FieldComparator("lglLoginname", false));
    this.listheader_SecLoginlogList_lglStatusid.setSortAscending(new FieldComparator("lglStatusid", true));
    this.listheader_SecLoginlogList_lglStatusid.setSortDescending(new FieldComparator("lglStatusid", false));
    this.listheader_SecLoginlogList_lglIp.setSortAscending(new FieldComparator("lglIp", true));
    this.listheader_SecLoginlogList_lglIp.setSortDescending(new FieldComparator("lglIp", false));
    this.listheader_SecLoginlogList_CountryCode2.setSortAscending(new FieldComparator("ip2Country.countryCode.ccdCode2", true));
    this.listheader_SecLoginlogList_CountryCode2.setSortDescending(new FieldComparator("ip2Country.countryCode.ccdCode2", false));
    this.listheader_SecLoginlogList_lglSessionid.setSortAscending(new FieldComparator("lglSessionid", true));
    this.listheader_SecLoginlogList_lglSessionid.setSortDescending(new FieldComparator("lglSessionid", false));

    // ++ create the searchObject and init sorting ++//
    final HibernateSearchObject<SecLoginlog> soSecLoginlog = new HibernateSearchObject<SecLoginlog>(SecLoginlog.class);
    // deeper loading of the relations to prevent the lazy
    // loading problem.
View Full Code Here

      orderListCtrl = null;
    }

    // not used listheaders must be declared like ->
    // lh.setSortAscending(""); lh.setSortDescending("")
    listheader_OrderPosList2_Orderpos_No.setSortAscending(new FieldComparator("aupId", true));
    listheader_OrderPosList2_Orderpos_No.setSortDescending(new FieldComparator("aupId", false));
    listheader_OrderPosList2_Shorttext.setSortAscending(new FieldComparator("article.artKurzbezeichnung", true));
    listheader_OrderPosList2_Shorttext.setSortDescending(new FieldComparator("article.artKurzbezeichnung", false));
    listheader_OrderPosList2_Count.setSortAscending(new FieldComparator("aupMenge", true));
    listheader_OrderPosList2_Count.setSortDescending(new FieldComparator("aupMenge", false));
    listheader_OrderPosList2_SinglePrice.setSortAscending(new FieldComparator("aupEinzelwert", true));
    listheader_OrderPosList2_SinglePrice.setSortDescending(new FieldComparator("aupEinzelwert", false));
    listheader_OrderPosList2_WholePrice.setSortAscending(new FieldComparator("aupGesamtwert", true));
    listheader_OrderPosList2_WholePrice.setSortDescending(new FieldComparator("aupGesamtwert", false));

    paging_ListBoxOrderOrderPositions.setPageSize(pageSizeOrderPosition);
    paging_ListBoxOrderOrderPositions.setDetailed(true);

    // Set the ListModel for the orderPositions.
View Full Code Here

    pagingCustomerList.setPageSize(getCountRows());
    pagingCustomerList.setDetailed(true);

    // not used listheaders must be declared like ->
    // lh.setSortAscending(""); lh.setSortDescending("")
    listheader_CustNo.setSortAscending(new FieldComparator("kunNr", true));
    listheader_CustNo.setSortDescending(new FieldComparator("kunNr", false));
    listheader_CustMatchcode.setSortAscending(new FieldComparator("kunMatchcode", true));
    listheader_CustMatchcode.setSortDescending(new FieldComparator("kunMatchcode", false));
    listheader_CustName1.setSortAscending(new FieldComparator("kunName1", true));
    listheader_CustName1.setSortDescending(new FieldComparator("kunName1", false));
    listheader_CustName2.setSortAscending(new FieldComparator("kunName2", true));
    listheader_CustName2.setSortDescending(new FieldComparator("kunName2", false));
    listheader_CustCity.setSortAscending(new FieldComparator("kunOrt", true));
    listheader_CustCity.setSortDescending(new FieldComparator("kunOrt", false));

    // ++ create the searchObject and init sorting ++//
    searchObj = new HibernateSearchObject<Customer>(Customer.class, getCountRows());
    searchObj.addSort("kunName1", false);
    setSearchObj(this.searchObj);
View Full Code Here

    setPageSizeArticleSearch(20);
    paging_ListBoxArticleSearch.setPageSize(getPageSizeArticleSearch());
    paging_ListBoxArticleSearch.setDetailed(true);

    /* Sorting Comparator for search bandbox article list */
    listheader_ArticleSearch_artNr.setSortAscending(new FieldComparator("artNr", true));
    listheader_ArticleSearch_artNr.setSortDescending(new FieldComparator("artNr", true));

    listheader_ArticleSearch_artKurzbezeichnung.setSortAscending(new FieldComparator("article.artKurzbezeichnung", true));
    listheader_ArticleSearch_artKurzbezeichnung.setSortDescending(new FieldComparator("article.artKurzbezeichnung", true));

    listBoxArticleSearch.setItemRenderer(new SearchArticleListModelItemRenderer());

    doShowDialog(getOrderposition());

View Full Code Here

    borderLayout_GuestBookList.setHeight(String.valueOf(maxListBoxHeight) + "px");

    // not used listheaders must be declared like ->
    // lh.setSortAscending(""); lh.setSortDescending("")
    listheader_GuestBook_gubDate.setSortAscending(new FieldComparator("gubDate", true));
    listheader_GuestBook_gubDate.setSortDescending(new FieldComparator("gubDate", false));
    listheader_GuestBook_gubUsrName.setSortAscending(new FieldComparator("gubUsrname", true));
    listheader_GuestBook_gubUsrName.setSortDescending(new FieldComparator("gubUsrname", false));
    listheader_GuestBook_gubSubject.setSortAscending(new FieldComparator("gubSubject", true));
    listheader_GuestBook_gubSubject.setSortDescending(new FieldComparator("gubSubject", false));

    // ++ create the searchObject and init sorting ++//
    HibernateSearchObject<GuestBook> soGuestBook = new HibernateSearchObject<GuestBook>(GuestBook.class, getCountRows());
    soGuestBook.addSort("gubDate", true);
View Full Code Here

    listhead.setSizable(true);
    listhead.setParent(this.lbTotalCount);
    final Listheader lh1 = new Listheader();
    lh1.setSclass("FDListBoxHeader1");
    lh1.setWidth("10%");
    lh1.setSortAscending(new FieldComparator("country", true));
    lh1.setSortDescending(new FieldComparator("country", false));
    lh1.setParent(listhead);
    final Listheader lh2 = new Listheader(Labels.getLabel("listheader_SecLoginlogList_CountryCode2.label"));
    lh2.setSclass("FDListBoxHeader1");
    lh2.setWidth("60%");
    lh2.setSortAscending(new FieldComparator("countryName", true));
    lh2.setSortDescending(new FieldComparator("countryName", false));
    lh2.setParent(listhead);
    final Listheader lh3 = new Listheader(Labels.getLabel("ListheaderStatisticTotalCountByCountries.TotalCount.Label"));
    lh3.setSclass("FDListBoxHeader1");
    lh3.setWidth("30%");
    lh3.setSortAscending(new FieldComparator("totalCount", true));
    lh3.setSortDescending(new FieldComparator("totalCount", false));
    lh3.setSortDirection("descending");
    lh3.setParent(listhead);

    final Listfoot listfoot = new Listfoot();
    listfoot.setHeight("20px");
View Full Code Here

    // set the bandbox to readonly
    bandbox_OrderList_CustomerSearch.setReadonly(true);

    // not used listheaders must be declared like ->
    // lh.setSortAscending(""); lh.setSortDescending("")
    listheader_OrderList_OrderNo.setSortAscending(new FieldComparator("aufNr", true));
    listheader_OrderList_OrderNo.setSortDescending(new FieldComparator("aufNr", false));
    listheader_OrderList_OderDescr.setSortAscending(new FieldComparator("aufBezeichnung", true));
    listheader_OrderList_OderDescr.setSortDescending(new FieldComparator("aufBezeichnung", false));

    // not used listheaders must be declared like ->
    // lh.setSortAscending(""); lh.setSortDescending("")
    listheader_OrderPosList_Orderpos_No.setSortAscending(new FieldComparator("aupPosition", true));
    listheader_OrderPosList_Orderpos_No.setSortDescending(new FieldComparator("aupPosition", false));
    listheader_OrderPosList_Shorttext.setSortAscending(new FieldComparator("article.artKurzbezeichnung", true));
    listheader_OrderPosList_Shorttext.setSortDescending(new FieldComparator("article.artKurzbezeichnung", false));
    listheader_OrderPosList_Count.setSortAscending(new FieldComparator("aupMenge", true));
    listheader_OrderPosList_Count.setSortDescending(new FieldComparator("aupMenge", false));
    listheader_OrderPosList_SinglePrice.setSortAscending(new FieldComparator("aupEinzelwert", true));
    listheader_OrderPosList_SinglePrice.setSortDescending(new FieldComparator("aupEinzelwert", false));
    listheader_OrderPosList_WholePrice.setSortAscending(new FieldComparator("aupGesamtwert", true));
    listheader_OrderPosList_WholePrice.setSortDescending(new FieldComparator("aupGesamtwert", false));

    // ++ create the searchObject and init sorting ++//
    // only in sample app init with all orders
    HibernateSearchObject<Order> soOrder = new HibernateSearchObject<Order>(Order.class, getPageSizeOrders());
    soOrder.addSort("aufNr", false);
View Full Code Here

TOP

Related Classes of org.zkoss.zul.FieldComparator

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.