Package com.centraview.valuelist

Examples of com.centraview.valuelist.Button


    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
   
    ArrayList buttonList = new ArrayList();
    buttonList.add(new Button("View", "view", "vl_viewList();", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, true);
    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    listObject.setDisplay(displayParameters);
View Full Code Here


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

    ArrayList buttonList = new ArrayList();
    buttonList.add(new Button("View", "view", "vl_viewList();", false));
    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);
    listObject.setDisplay(displayParameters);
View Full Code Here

      throw new ServletException(e);
    }
    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
    ArrayList buttonList = new ArrayList();
    buttonList.add(new Button("Select", "select", "lu_selectList('group');", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, false, false);
    displayParameters.setRadio(true);
    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
View Full Code Here

          listObject.setCurrentPageParameters(parameterValues.toString());
          request.setAttribute("hideMarketingList", new Boolean(true));
        }
        // When we select the lookup then we should add the Select button to the
        // valueList
        buttonList.add(new Button("Select", "select", "lu_selectList('lookup_attendee');", false));
        buttonList.add(new Button("New Individual", "new", "c_newButton('Individual', 15)", false));
        request.setAttribute("dynamicTitle", "Individual Members");
        request.setAttribute("lookupType", "Individual Members");
        displayParameters.setRadioToCheckBox(true);
      }
      if (actionType.equals("lookup")) {
        if (entityId != 0) {
          StringBuffer parameterValues = new StringBuffer();
          parameterValues.append(ValueListConstants.AMP);
          parameterValues.append("entityId=" + entityId);
          listObject.setCurrentPageParameters(parameterValues.toString());
          request.setAttribute("hideMarketingList", new Boolean(true));
        }
        // When we select the lookup then we should add the Select button to the
        // valueList
        buttonList.add(new Button("Select", "select", "lu_selectList('Individual');", false));
        buttonList.add(new Button("New Individual", "new", "c_newButton('Individual', 15)", false));
        request.setAttribute("dynamicTitle", "Individual");
        request.setAttribute("lookupType", "Individual");
      }
      if (actionType.equals("lookupEmployee")) {
        request.setAttribute("hideMarketingList", new Boolean(true));
        // When we select the lookup then we should add the Select button to the
        // valueList
        if (request.getParameter("lookupFlag") != null) {
          buttonList.add(new Button("Select", "select", "lu_selectList('Employee', '"
              + request.getParameter("lookupFlag") + "');", false));
        } else {
          buttonList.add(new Button("Select", "select", "lu_selectList('Employee');", false));
        }
        // buttonList.add(new Button("New Individual", "new",
        // "c_newButton('Individual', 15)", false));
        String defaultEntityName = java.net.URLEncoder.encode(userObject.getEntityName(),
            "ISO-8859-1");
        buttonList.add(new Button("New Individual", "new",
            "c_openWindow('/contacts/new_individual.do?entityNo=1&entityName=" + defaultEntityName
                + "')", false));
        request.setAttribute("dynamicTitle", "Employee");
        request.setAttribute("lookupType", "Employee");
      }
      displayParameters.setRadio(true);
      listObject.setLookup(true);
      listObject.setLookupType(actionType);
    } else {
      buttonList.add(new Button("View", "view", "vl_viewList();", 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);
View Full Code Here

      }
      valueList.setDataSource(dataSource);
      ValueListVO listObject = valueList.getValueList(individualId, listParameters);
      listObject.setCurrentPageParameters(ValueListConstants.AMP + "groupId=" + row);
      ArrayList buttonList = new ArrayList();
      buttonList.add(new Button("Add Members", "button3", "c_lookup('attendee_lookup');", false));
      buttonList.add(new Button("Delete", "delete", "removeMember();", false));
      ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, true);
      displayParameters.setSortable(true);
      displayParameters.setPagingBar(true);
      displayParameters.setLink(true);
      listObject.setDisplay(displayParameters);
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));
    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);
View Full Code Here

      throw new ServletException(e);
    }
    // there are no permissions for sources.
    ValueListVO listObject = valueList.getValueList(0, listParameters);
    ArrayList buttonList = new ArrayList();
    buttonList.add(new Button("Select", "select", "lu_selectList('Location');", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, false, false);
    displayParameters.setRadio(true);
    displayParameters.setPagingBar(true);
    listObject.setLookup(true);
    listObject.setLookupType("lookup"); // is this line needed?
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));
    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);
View Full Code Here

      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
    }
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
    ArrayList buttonList = new ArrayList();
    buttonList.add(new Button("New", "newUser", "c_goTo('/administration/new_security_profile.do');", false));
    buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, false, true, true, true, true);
    listObject.setDisplay(displayParameters);
    request.setAttribute("valueList", listObject);
    return mapping.findForward(".view.administration.security_profile_list");
  }
View Full Code Here

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

    // Got the list now set the display preferences on the ValueListDisplay Object.
    ArrayList buttonList = new ArrayList();
    buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
    buttonList.add(new Button("Restore", "restore", "restore();", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, false, true, true, true, true);
    listObject.setDisplay(displayParameters);

    request.setAttribute("valueList", listObject);
View Full Code Here

TOP

Related Classes of com.centraview.valuelist.Button

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.