Examples of FieldComparator


Examples of org.zkoss.zul.FieldComparator

    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

Examples of org.zkoss.zul.FieldComparator

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

Examples of org.zkoss.zul.FieldComparator

  public void onOpen$bandbox_OrderList_CustomerSearch(Event event) throws Exception {
    // logger.debug(event.toString());

    // 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_CustCity.setSortAscending(new FieldComparator("kunOrt", true));
    listheader_CustCity.setSortDescending(new FieldComparator("kunOrt", false));

    // set the paging params
    paging_OrderList_CustomerSearchList.setPageSize(pageSizeSearchCustomers);
    paging_OrderList_CustomerSearchList.setDetailed(true);
View Full Code Here

Examples of org.zkoss.zul.FieldComparator

    listhead.setSizable(true);
    listhead.setParent(this.lbMonthlyCount);
    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

Examples of org.zkoss.zul.FieldComparator

    listhead.setSizable(true);
    listhead.setParent(this.lbDailyCount);
    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

Examples of whitedb.util.FieldComparator

    /********************* ORM support functions ************************/

    public void writeObjectToDatabase(Object object) throws IllegalAccessException {
        Field[] declaredFields = object.getClass().getDeclaredFields();
        Arrays.sort(declaredFields, new FieldComparator()); //Performance issue, cache sorted fields
        Record record = createRecord(database.pointer, declaredFields.length);

        for (int i = 0; i < declaredFields.length; i++) {
            Integer value = getFieldValue(object, declaredFields[i]);
            System.out.println("Writing field: [" + declaredFields[i].getName() + "] with value: " + value);
View Full Code Here

Examples of whitedb.util.FieldComparator

        }
    }

    public <T> T readObjectFromDatabase(Class<T> objecClass, Record record) throws IllegalAccessException, InstantiationException {
        Field[] declaredFields = objecClass.getDeclaredFields();
        Arrays.sort(declaredFields, new FieldComparator()); //Performance issue, cache sorted fields
        T object = objecClass.newInstance();

        for (int i = 0; i < declaredFields.length; i++) {
            int value = getIntFieldValue(database.pointer, record.pointer, i);
            System.out.println("Reading field: [" + declaredFields[i].getName() + "] with value: " + value);
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.