Package com.centraview.valuelist

Examples of com.centraview.valuelist.Button


      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('Source');", 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("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

    valueList.setDataSource(dataSource);
    ValueListVO listObject = valueList.getValueList(individualId, listParameters);
    ArrayList buttonList = new ArrayList();
   
    ValueListDisplay displayParameters = null;
    buttonList.add(new Button("Delete", "delete", "vl_deleteList("+accountID+");", false));
    buttonList.add(new Button("Enable", "enable", "vl_enableList("+accountID+");", false));
    buttonList.add(new Button("Disable", "disable", "vl_disableList("+accountID+");", 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);
    ArrayList buttonList = new ArrayList();

    ValueListDisplay displayParameters = null;
    buttonList.add(new Button("Delete", "delete", "vl_deleteList();", false));
    buttonList.add(new Button("Mark Read", "read", "vl_readList();", false));
    buttonList.add(new Button("Mark UnRead", "unread", "vl_unReadList();", false));
    buttonList.add(new Button("Private", "private", "vl_privateList();", false));
    buttonList.add(new Button("Rules", "rule", "vl_ruleList(" + currentAccountID + ");", false));
    displayParameters = new ValueListDisplay(buttonList, true, true);

    listObject.setMoveTo(true);

    displayParameters.setSortable(true);
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

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

    ValueListDisplay displayParameters = null;
    if (actionType != null && actionType.equals("lookup")) {
        buttonList.add(new Button("Select", "select", "lu_selectList('Order');", 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", "Order");
        request.setAttribute("lookupType", "Order");           
    } 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

    buffer.append("<td align=\"left\" valign=\"top\">\n");
    buffer.append("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n");
    buffer.append("<tr>\n");
    ArrayList buttonList = this.listObject.getDisplay().getButtonObjects();
    for (int i = 0; i < buttonList.size(); i++) {
      Button button = (Button) buttonList.get(i);
      this.addButton(buffer, button.getName(), button.getLabel(), button.getOnClick(), button.isDisabled());
    }
    if (this.listObject.isMoveTo()) {
      this.addMoveTo(buffer, this.listObject.getParameters().getValueListType());
    }
    buffer.append("</tr>\n");
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

    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('address');", false));
    request.setAttribute("dynamicTitle", "Address");
    request.setAttribute("lookupType", "Address");
    displayParameters.setRadio(true);

    displayParameters.setSortable(true);
View Full Code Here

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

    ValueListDisplay displayParameters = null;
    if (actionType != null && actionType.equals("lookup")) {
        buttonList.add(new Button("Select", "select", "lu_selectList('Vendor');", 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", "Vendor");
        request.setAttribute("lookupType", "Vendor");     
    } else {
    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

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.