Package org.openqreg.util

Examples of org.openqreg.util.FetchData


  /**
   * @see junit.framework.TestCase#setUp()
   */
  @Before
  public void setUp() throws Exception {
    fetch = new FetchData();
  }
View Full Code Here


   */
  @Override
  public String createJournalHTML(ElementParameter elemParam) {
    StringBuffer out = new StringBuffer();
    // if this variable exists in fetch and it is not empty print the value
    FetchData fetch = elemParam.getFetch();
    if (fetch.containsValue(this.getName())
        && !"".equals(fetch.getValueAsString(this.getName()))) {
      out.append("<span class=\"").append(getStylesheet()).append("\">");
      out.append(fetch.getValueAsString(this.getName()));
      out.append("</span>");
    }
    return out.toString();
  }
View Full Code Here

   */
  @Override
  public String createJournalHTML(ElementParameter elemParam) {

    StringBuffer out = new StringBuffer();
    FetchData fetch = elemParam.getFetch();
    // if this variable exists in fetch and it is not empty print the value
    if (fetch.containsValue(this.getName())
        && !"".equals(fetch.getValueAsString(this.getName()))) {
      out.append("<span class=\"").append(getStylesheet()).append("\">");
      out.append(fetch.getValueAsString(this.getName()));
      out.append("</span>");
    }

    return out.toString();
  }
View Full Code Here

   *         nessecary javascripts
   */
  @Override
  public String createPaperFormHTML(ElementParameter elemParam) {
    StringBuffer out = new StringBuffer();
    FetchData fetch = elemParam.getFetch();
    // if this variable exists in fetch and it is not empty print the value
    if (fetch.containsValue(this.getName())
        && !"".equals(fetch.getValueAsString(this.getName()))) {
      // print value with stylesheet
      out.append("<span class=\"PF");
      out.append(getStylesheet()).append("\">");
      out.append(fetch.getValueAsString(this.getName()));
      out.append("</span>");

    } else {
      out
          .append("<IMG src=\"images/smallrectangle.gif\" height=\"25\" width=\"20\"/>");
View Full Code Here

   * @see se.ucr.element.StandardVariable#createJournalHTML(se.ucr.element.ElementParameter)
   */
  @Override
  public String createJournalHTML(ElementParameter elemParam) {
    StringBuffer out = new StringBuffer();
    FetchData fetch = elemParam.getFetch();
    // if this variable exists in fetch and it is not empty print the value
    if (fetch.containsValue(this.getName())
        && !"".equals(fetch.getValueAsString(this.getName()))) {
      out.append("<span class=\"").append(getStylesheet()).append("\"");
      out.append(" id=\"" + getName() + "\">");
      out.append(fetch.getValueAsString(this.getName()));
      out.append("</span>");
    }

    return out.toString();
  }
View Full Code Here

   */
  @Override
  public String createPaperFormHTML(ElementParameter elemParam) {
    StringBuffer out = new StringBuffer();
    // if this variable exists in fetch and it is not empty print the value
    FetchData fetch = elemParam.getFetch();
    if (fetch.containsValue(this.getName())
        && !"".equals(fetch.getValueAsString(this.getName()))) {
      // print value with stylesheet
      out.append("<span class=\"PF");
      out.append(getStylesheet());
      out.append(" " + getStylesheet());
      out.append("\">");
      out.append(fetch.getValueAsString(this.getName()).trim());
      out.append("</span>");

    } else {
      for (int i = 1; i <= getMaxNrOfCharacters(); i++) {
        if (i != getMaxNrOfCharacters()
View Full Code Here

   *         nessecary javascripts
   */
  @Override
  public String createPaperFormHTML(ElementParameter elemParam) {
    StringBuffer out = new StringBuffer();
    FetchData fetch = elemParam.getFetch();
    // if this variable exists in fetch and it is not empty print the value
    if (fetch.containsValue(this.getName())
        && !"".equals(fetch.getValueAsString(this.getName()))) {
      // print value with stylesheet
      out.append("<span class=\"PF");
      out.append(getStylesheet()).append("\">");
      out.append(fetch.getValueAsString(this.getName()));
      out.append("</span>");

    } else {
      out.append("<br/>________________________________________________");
    }
View Full Code Here

    out.append("<table id='").append(this.getName()).append("'>");
   
    if (listOptions != null) {

      int i=0;
      FetchData fetch = elemParam.getFetch();
      for(ListOption listOption : listOptions.values()) { 
        //prevents output of first empty option
        if (fetch.containsValue(this.getName())) {
          if (listOption.getValue().equals(fetch.getValueAsString(this.getName()))) {
            out.append("<tr id='").append(this.getName()).append(i).append("'><td><span class=\"").append(getStylesheet()).append("\">");
            out.append(listOption.getText());
            out.append("</span></td></tr>");
          }
        }
View Full Code Here

   *      se.ucr.util.FetchData)
   */
  @Override
  public String createPaperFormHTML(ElementParameter elemParam) {
    StringBuffer out = new StringBuffer();
    FetchData fetch = elemParam.getFetch();
    //if this variable exists in fetch and it is not empty print the value
    if (fetch.containsValue(this.getName()) && !"".equals(fetch.getValueAsString(this.getName()))) {
      //print value with stylesheet
      out.append("<span class=\"PF");
      out.append(getStylesheet()).append("\">");
      out.append(fetch.getValueAsString(this.getName()));
      out.append("</span>");

    } else {
      out.append("<IMG src=\"images\\bigsquare.gif\" height=\"105\" width=\"205\"/>");

View Full Code Here

  public String createJournalHTML(ElementParameter elemParam) {
    StringBuffer out = new StringBuffer();
    LanguageHandler lang = LanguageHandler.getInstance();

    InputObjectTexts obj = lang.getInputObjectTexts(elemParam.getLangId(), getName(), getName());
    FetchData fetch = elemParam.getFetch();
    for(ListOption radioOption : obj.getListOptions().values()) {
      if (fetch.containsValue(this.getName()) && radioOption.getValue().equals(fetch.getValueAsString(this.getName()))) {
        out.append("<span class=\"").append(getStylesheet()).append("\">");
        out.append(radioOption.getValue().trim());
        out.append("</span>");
      }
    }
View Full Code Here

TOP

Related Classes of org.openqreg.util.FetchData

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.