Examples of FieldComparator


Examples of org.zkoss.zul.FieldComparator

    Messagebox.show("Client Local Name: " + str);
  }

  public void onClick$BtnSerializeFC(Event event) throws InterruptedException {

    FieldComparator fcOld;
    FieldComparator fcNew;

    fcOld = new FieldComparator("TestColumn", false);

    // Serialize the original class object
    try {
      final FileOutputStream fo = new FileOutputStream("cde.tmp");
      final ObjectOutputStream so = new ObjectOutputStream(fo);
      so.writeObject(fcOld);
      so.flush();
      so.close();
    } catch (final Exception e) {
      throw new RuntimeException(e);
    }

    // Deserialize in to new class object
    try {
      final FileInputStream fi = new FileInputStream("cde.tmp");
      final ObjectInputStream si = new ObjectInputStream(fi);
      fcNew = (FieldComparator) si.readObject();
      System.out.println(fcNew.getOrderBy());
      si.close();
    } catch (final Exception e) {
      throw new RuntimeException(e);
    }
View Full Code Here

Examples of org.zkoss.zul.FieldComparator

    paging_ListBoxSingleRightSearch.setPageSize(this.countRowsSecRight);
    paging_ListBoxSingleRightSearch.setDetailed(true);

    // not used listheaders must be declared like ->
    // lh.setSortAscending(""); lh.setSortDescending("")
    listheader_bbox_AddGroupRightDialog_RightName.setSortAscending(new FieldComparator("rigName", true));
    listheader_bbox_AddGroupRightDialog_RightName.setSortDescending(new FieldComparator("rigName", false));
    listheader_bbox_AddGroupRightDialog_RightType.setSortAscending(new FieldComparator("rigType", true));
    listheader_bbox_AddGroupRightDialog_RightType.setSortDescending(new FieldComparator("rigType", false));

    // temporary, cause the security is not implemented for this controller
    btnEdit.setVisible(false);
    btnCancel.setVisible(false);
    btnDelete.setVisible(false);
View Full Code Here

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

Examples of org.zkoss.zul.FieldComparator

    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

Examples of org.zkoss.zul.FieldComparator

    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

Examples of org.zkoss.zul.FieldComparator

    // 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

Examples of org.zkoss.zul.FieldComparator

      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

Examples of org.zkoss.zul.FieldComparator

    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

Examples of org.zkoss.zul.FieldComparator

    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

Examples of org.zkoss.zul.FieldComparator

    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
TOP
Copyright © 2018 www.massapi.com. 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.