Package com.centraview.valuelist

Examples of com.centraview.valuelist.ValueListDisplay


    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
    listObject.setCurrentPageParameters(ValueListConstants.AMP+"rowId="+marketingListId);
    ArrayList buttonList = new ArrayList();

    ValueListDisplay displayParameters = null;
   listObject.setMoveTo(false);
     buttonList.add(new Button("Import Members", "Import Members", "vl_addMembers();", false));
  buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
  displayParameters = new ValueListDisplay(buttonList, true, true);

    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    listObject.setDisplay(displayParameters);
    // Stick the list on the request and then the custom list tag will handle
    // it.
    if (logger.isDebugEnabled()) {
      long debugTime = (System.currentTimeMillis() - start);
View Full Code Here


   
    ArrayList buttonList = new ArrayList()
    buttonList.add(new Button("View", "view", "vl_viewList();", false));
    buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
    buttonList.add(new Button("Duplicate", "duplicate", "vl_duplicateList();", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, true);
    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    listObject.setDisplay(displayParameters);
    request.setAttribute("valueList", listObject);
   
    //  For the searchBar
    String moduleID = (String)moduleList.get("Promotion");
View Full Code Here

    session.setAttribute("ticketBarChartParams", listParameters);
    ArrayList buttonList = new ArrayList();
    // For the searchBar
    String moduleID = (String)moduleList.get("Ticket");

    ValueListDisplay displayParameters = null;
    if (actionType != null && actionType.equals("lookup")) {
      // When we select the lookup then we should add the Select button to the
      // valueList
      buttonList.add(new Button("Select", "select", "lu_selectList('Ticket');", false));
      buttonList.add(new Button("New Ticket", "new", "c_newButton('Ticket', " + moduleID + ")", false));
      displayParameters = new ValueListDisplay(buttonList, false, false);
      displayParameters.setRadio(true);
      listObject.setLookup(true);
      listObject.setLookupType(actionType);
      request.setAttribute("hideMarketingList", new Boolean(true));
      request.setAttribute("dynamicTitle", "Ticket");
      request.setAttribute("lookupType", "Ticket");
    } else {
      buttonList.add(new Button("View", "view", "vl_viewList();", false));
      buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
      buttonList.add(new Button("Duplicate", "duplicate", "vl_duplicateList();", false));
      displayParameters = new ValueListDisplay(buttonList, true, true);
    }
    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    listObject.setDisplay(displayParameters);
    // Stick the list on the request and then the custom list tag will handle
    // it.
    if (logger.isDebugEnabled()) {
      long debugTime = (System.currentTimeMillis() - start);
View Full Code Here

    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);

    ArrayList buttonList = new ArrayList();
    buttonList.add(new Button("Select", "select", "lu_submitAddrs();", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, false, false);
    displayParameters.setSortable(false);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    listObject.setDisplay(displayParameters);
    listObject.setLookup(true);
    listObject.setLookupType("Email");
    request.setAttribute("valueList", listObject);
    // TODO Fix search, a name module and all that goes with it needs to be created.
View Full Code Here

      throw new ServletException(e);
    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
    ArrayList buttonList = new ArrayList();
    ValueListDisplay displayParameters = null;

    if (actionType != null && actionType.equals("lookup")) {
      // When we select the lookup then we should add the Select button to the
      // valueList
      buttonList.add(new Button("Select", "select", "lu_selectList('File');", false));
      displayParameters = new ValueListDisplay(buttonList, false, false);
      displayParameters.setRadio(true);
      listObject.setLookup(true);
      listObject.setLookupType(actionType);
      request.setAttribute("dynamicTitle", "File");
      request.setAttribute("lookupType", "File");
    } else {
      buttonList.add(new Button("View", "view", "vl_viewList();", false));
      buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
      buttonList.add(new Button("Duplicate", "duplicate", "vl_duplicateList();", false));
      displayParameters = new ValueListDisplay(buttonList, true, true);
    }
    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    // Add the download file column
    displayParameters.setDownloadIcon(true);
    listObject.setDisplay(displayParameters);
    request.setAttribute("valueList", listObject);

    // For the searchBar
    String moduleID = (String) moduleList.get("File");
View Full Code Here

    ArrayList list = new ArrayList();
    for (int j = 0; j < results.size(); j++) {
      list.add(new ValueListRow(j, (ArrayList)results.get(j)));
    }
    ValueListVO valueList = new ValueListVO(list, parameters);
    ValueListDisplay displayParameters = new ValueListDisplay(new ArrayList(), false, false, false, false, false, false);
    valueList.setDisplay(displayParameters);
    request.setAttribute("valueList", valueList);
    request.setAttribute("reportName", reportResults.getName());
    request.setAttribute("moduleId", String.valueOf(moduleId));
    session.setAttribute("moduleId", String.valueOf(moduleId));
View Full Code Here

      ValueListVO listObject = valueList.getValueList(individualID, listParameters);

      ArrayList buttonList = new ArrayList();
      buttonList.add(new Button("New Ticket", "new", "c_goTo('/customer/new_ticket.do');", false));

      ValueListDisplay displayParameters = new ValueListDisplay(buttonList, false, false, true, true, true, true);
      listObject.setDisplay(displayParameters);
      request.setAttribute("valueList", listObject);
    } catch (Exception e) {
      logger.error("[execute] Exception thrown.", e);
      allErrors.add("error.unknownError", new ActionMessage("error.unknownError"));
View Full Code Here

      String filter = "SELECT FileID FROM cvfile WHERE CustomerView='YES' AND (relateEntity = " + entityID + " OR relateIndividual = " + individualID + ")";
      ValueListParameters listParameters = ActionUtil.valueListParametersSetUp(listPrefs, request, ValueListConstants.CUSTOMER_FILE_LIST_TYPE, ValueListConstants.customerFileViewMap, false);
      listParameters.setFilter(filter);
      ValueList valueList = (ValueList)CVUtility.setupEJB("ValueList", "com.centraview.valuelist.ValueListHome", dataSource);
      ValueListVO listObject = valueList.getValueList(individualID, listParameters);
      ValueListDisplay displayParameters = new ValueListDisplay(new ArrayList(), false, false, true, true, true, true);
      listObject.setDisplay(displayParameters);
      request.setAttribute("valueList", listObject);
    } catch (Exception e) {
      logger.error("[execute] Exception thrown.", e);
      allErrors.add("error.unknownError", new ActionMessage("error.unknownError"));
View Full Code Here

    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
   
    ArrayList buttonList = new ArrayList();
    buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, true);
    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    // Add the download file column
    displayParameters.setDownloadIcon(true);
    listObject.setDisplay(displayParameters);
    request.setAttribute("valueList", listObject);
   
    //  For the searchBar
    String moduleID = (String)moduleList.get("EmployeeHandbook");
View Full Code Here

      listParameters.setExtraId(eventID);
      ValueListVO listObject = valueList.getValueList(individualId, listParameters);
      listObject.setCurrentPageParameters(ValueListConstants.AMP+"eventid="+eventID);
      ArrayList buttonList = new ArrayList();

      ValueListDisplay displayParameters = null;
     listObject.setMoveTo(false);
       buttonList.add(new Button("Add Attendees", "Add Attendees", "vl_addMembers();", false));
    buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
    displayParameters = new ValueListDisplay(buttonList, true, true);

      displayParameters.setSortable(true);
      displayParameters.setPagingBar(true);
      displayParameters.setLink(true);
      listObject.setDisplay(displayParameters);
      // Stick the list on the request and then the custom list tag will handle
      // it.
      if (logger.isDebugEnabled()) {
        long debugTime = (System.currentTimeMillis() - start);
View Full Code Here

TOP

Related Classes of com.centraview.valuelist.ValueListDisplay

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.