Package org.cipres.treebase.web.model

Examples of org.cipres.treebase.web.model.LabelValue


    /*
     * submission drop down list
     */
    List submissionTypes = new ArrayList();
    submissionTypes.add(new LabelValue("In Progress", Constants.SUBMISSION_INPROGRESS));
    submissionTypes.add(new LabelValue("Submitted", Constants.SUBMISSION_SUBMITTED));
    submissionTypes.add(new LabelValue("Published", Constants.SUBMISSION_PUBLISHED));
    context.setAttribute(Constants.SUBMISSION_TYPES, submissionTypes);

    /*
     * algorithm drop down list
     */
 
View Full Code Here


      "analysis_step_id",
      null);

    AnalysisStep analysisStep = mAnalysisStepService.findByID(Long.parseLong(analysis_step_id));
    // add it to the drop down list
    steps.add(new LabelValue(analysisStep.getDisplayName(), analysis_step_id));
    dataMap.put("steps", steps);

    // determine input/output type
    List<LabelValue> inputOutputTypes = new ArrayList<LabelValue>();
    inputOutputTypes.add(new LabelValue("Input", Constants.INPUT_KEY));
    inputOutputTypes.add(new LabelValue("Output", Constants.OUTPUT_KEY));
    dataMap.put("inputOutputTypes", inputOutputTypes);

    // determine tree/matrix type
    List<LabelValue> dataTypes = new ArrayList<LabelValue>();
    dataTypes.add(new LabelValue("Matrix", Constants.MATRIX_KEY));
    dataTypes.add(new LabelValue("Tree", Constants.TREE_KEY));
    dataTypes.add(new LabelValue("Tree Block", Constants.TREE_LIST));
    dataMap.put("dataTypes", dataTypes);

    return dataMap;
  }
View Full Code Here

  protected Map referenceData(HttpServletRequest request) {

    Map criteriaMap = new HashMap();

    List categories = new ArrayList();
    categories.add(new LabelValue(Constants.SEARCH_STUDY, Constants.SEARCH_STUDY));
    categories.add(new LabelValue(Constants.SEARCH_MATRIX, Constants.SEARCH_MATRIX));
    categories.add(new LabelValue(Constants.SEARCH_TREE, Constants.SEARCH_TREE));
    criteriaMap.put("categories", categories);

    List attributes = new ArrayList();
    attributes.add(new LabelValue(Constants.SEARCH_AUTHOR, Constants.SEARCH_AUTHOR));
    attributes.add(new LabelValue(
      Constants.SEARCH_CITATION_TITLE,
      Constants.SEARCH_CITATION_TITLE));
    attributes.add(new LabelValue(Constants.SEARCH_SOFTWARE, Constants.SEARCH_SOFTWARE));
    attributes.add(new LabelValue(Constants.SEARCH_ALGORITHM, Constants.SEARCH_ALGORITHM));
    Collections.sort(attributes, LabelValue.CASE_INSENSITIVE_ORDER);
    criteriaMap.put("attributes", attributes);

    List matches = new ArrayList();
    matches.add(new LabelValue("Equals", "Equals"));
    matches.add(new LabelValue("Contains", "Contains"));
    criteriaMap.put("matches", matches);

    return criteriaMap;
  }
View Full Code Here

TOP

Related Classes of org.cipres.treebase.web.model.LabelValue

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.