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("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


      }
      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));
      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

    ArrayList buttonList = new ArrayList();

    ValueListDisplay displayParameters = null;
    if (actionType != null && actionType.equals("lookup")) {
    } else {
        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);
View Full Code Here

    ArrayList buttonList = new ArrayList();

    ValueListDisplay displayParameters = null;
    if (actionType != null && actionType.equals("lookup")) {
    } else {
        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);
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

    }
    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

      String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
      UserObject user = (UserObject)session.getAttribute("userobject");//get the user object
      int individualID = user.getIndividualID();
      ListPreference listpreference = user.getListPreference(ReportConstants.ADHOC_REPORT_LIST);
      ArrayList buttonList = new ArrayList();
      buttonList.add(new Button("New Report", "new", "c_goTo('/reports/new_adhoc.do?moduleId="+moduleId+"');", false));
      buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
      getReportList(request, dataSource, "StandardReport", ValueListConstants.ADHOC_REPORT_LIST_TYPE, ValueListConstants.adhocReportViewMap, moduleId, buttonList);
      session.removeAttribute("standardreportform");
    } catch (Exception e) {
      logger.error("[execute] Exception thrown.", e);
      throw new ServletException(e);
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

    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('Entity');", false, "label.select", request.getLocale()));
      buttonList.add(new Button("New Entity", "new", "c_newButton('Entity', 14)", false, "label.contact.newentity", request.getLocale()));
      displayParameters = new ValueListDisplay(buttonList, false, false);
      displayParameters.setRadio(true);
      listObject.setLookup(true);
      listObject.setLookupType(actionType);
      request.setAttribute("dynamicTitle", "Entity");
      request.setAttribute("lookupType", "Entity");
    } else {
      listObject.setMoveTo(true);
      buttonList.add(new Button("View", "view", "vl_viewList();", false, "label.view", request.getLocale()));
      buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false, "label.delete", request.getLocale()));
      displayParameters = new ValueListDisplay(buttonList, true, true);
    }

    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
View Full Code Here

    ActionUtil.mapOldView(columns, viewColumns, ValueListConstants.INDIVIDUAL_LIST_TYPE);
    listParameters.setColumns(columns);
    listParameters.setTotalRecords(0);
    ValueListVO listObject = new ValueListVO(new ArrayList(), listParameters);
    ArrayList buttonList = new ArrayList();
    buttonList.add(new Button("Add Members", "button3", "saveToAddMembers();", false));
    buttonList.add(new Button("Delete", "delete", "javascript:null(0);", false));
    ValueListDisplay displayParameters = new ValueListDisplay(buttonList, true, true);
    displayParameters.setSortable(true);
    displayParameters.setPagingBar(true);
    displayParameters.setLink(true);
    listObject.setDisplay(displayParameters);
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.