Package com.centraview.valuelist

Examples of com.centraview.valuelist.FieldDescriptor


    } else { // paging or sorting or something, use the parameters from the
             // request.
      listParameters = requestListParameters;
    }
    if (listParameters.getSortColumn() == 0) {
      FieldDescriptor sortField = (FieldDescriptor)ValueListConstants.listMemberViewMap.get(listPreference.getSortElement());
      listParameters.setSortColumn(sortField.getQueryIndex());
      if (listPreference.getsortOrder()) {
        listParameters.setSortDirection("ASC");
      } else {
        listParameters.setSortDirection("DESC");
      }
View Full Code Here


      listParameters = new ValueListParameters(ValueListConstants.PROMOTION_LIST_TYPE, listPreference.getRecordsPerPage(), 1);
    } else { // paging or sorting or something, use the parameters from the request.
      listParameters = requestListParameters;
    }
    if (listParameters.getSortColumn() == 0) {
      FieldDescriptor sortField = (FieldDescriptor)ValueListConstants.promotionViewMap.get(listPreference.getSortElement());
      listParameters.setSortColumn(sortField.getQueryIndex());
      if (listPreference.getsortOrder())
        listParameters.setSortDirection("ASC");
      else
        listParameters.setSortDirection("DESC");
    }
View Full Code Here

    } else { // paging or sorting or something, use the parameters from the
             // request.
      listParameters = requestListParameters;
    }
    if (listParameters.getSortColumn() == 0) {
      FieldDescriptor sortField = (FieldDescriptor)ValueListConstants.ticketViewMap.get(listPreference.getSortElement());
      listParameters.setSortColumn(sortField.getQueryIndex());
      if (listPreference.getsortOrder()) {
        listParameters.setSortDirection("ASC");
      } else {
        listParameters.setSortDirection("DESC");
      }
View Full Code Here

    } else { // paging or sorting or something, use the parameters from the request.
      listParameters = requestListParameters;
    }
   
    if (listParameters.getSortColumn() == 0) {
      FieldDescriptor sortField = (FieldDescriptor)ValueListConstants.emailLookupViewMap.get(listPreference.getSortElement());
      listParameters.setSortColumn(sortField.getQueryIndex());
      if (listPreference.getsortOrder()) {
        listParameters.setSortDirection("ASC");
      } else {
        listParameters.setSortDirection("DESC");
      }
View Full Code Here

    } else { // paging or sorting or something, use the parameters from the
              // request.
      listParameters = requestListParameters;
    }
    if (listParameters.getSortColumn() == 0) {
      FieldDescriptor sortField = (FieldDescriptor) ValueListConstants.fileViewMap.get(listPreference.getSortElement());
      listParameters.setSortColumn(sortField.getQueryIndex());
      if (listPreference.getsortOrder())
        listParameters.setSortDirection("ASC");
      else
        listParameters.setSortDirection("DESC");
    }
View Full Code Here

    moduleId = reportResults.getModuleId();
    ArrayList columnHeaders = reportResults.getTitles();
    ArrayList columns = new ArrayList();
    ValueListParameters parameters = new ValueListParameters(0, reportResults.getResults().size(), 1);
    for (int i = 0; i < columnHeaders.size(); i++) {
      columns.add(new FieldDescriptor((String)columnHeaders.get(i), i+1, false, ""));
    }
    parameters.setColumns(columns);
    // results is an arraylist of arraylists, it needs to be converted to an arraylist of ValueListRows
    ArrayList results = reportResults.getResults();
    ArrayList list = new ArrayList();
View Full Code Here

      listParameters = new ValueListParameters(ValueListConstants.EMPLOYEE_HANDBOOK_LIST_TYPE, listPreference.getRecordsPerPage(), 1);
    } else { // paging or sorting or something, use the parameters from the request.
      listParameters = requestListParameters;
    }
    if (listParameters.getSortColumn() == 0) {
      FieldDescriptor sortField = (FieldDescriptor)ValueListConstants.employeeHandbookViewMap.get(listPreference.getSortElement());
      listParameters.setSortColumn(sortField.getQueryIndex());
      if (listPreference.getsortOrder())
        listParameters.setSortDirection("ASC");
      else
        listParameters.setSortDirection("DESC");
    }
View Full Code Here

      } else { // paging or sorting or something, use the parameters from the
               // request.
        listParameters = requestListParameters;
      }
      if (listParameters.getSortColumn() == 0) {
        FieldDescriptor sortField = (FieldDescriptor)ValueListConstants.eventAttendeeViewMap.get(listPreference.getSortElement());
        listParameters.setSortColumn(sortField.getQueryIndex());
        if (listPreference.getsortOrder()) {
          listParameters.setSortDirection("ASC");
        } else {
          listParameters.setSortDirection("DESC");
        }
View Full Code Here

    } else { // paging or sorting or something, use the parameters from the
             // request.
      listParameters = requestListParameters;
    }
    if (listParameters.getSortColumn() == 0) {
      FieldDescriptor sortField = (FieldDescriptor)ValueListConstants.expensesViewMap.get(listPreference.getSortElement());
      listParameters.setSortColumn(sortField.getQueryIndex());
      if (listPreference.getsortOrder()) {
        listParameters.setSortDirection("ASC");
      } else {
        listParameters.setSortDirection("DESC");
      }
View Full Code Here

    if (request.getAttribute("listParameters") != null) {
      listParameters = (ValueListParameters)request.getAttribute("listParameters");
    } else {
      listParameters = new ValueListParameters(ValueListConstants.SOURCE_LIST_TYPE, 100, 1);
      // Sorting
      FieldDescriptor sortField = (FieldDescriptor)ValueListConstants.sourceViewMap.get("source");
      listParameters.setSortColumn(sortField.getQueryIndex());
      listParameters.setSortDirection("ASC");
    }
    ArrayList columns = new ArrayList();
    columns.add(ValueListConstants.sourceViewMap.get("source"));
    listParameters.setColumns(columns);
View Full Code Here

TOP

Related Classes of com.centraview.valuelist.FieldDescriptor

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.