Examples of TextView


Examples of android.widget.TextView

      contactsView.setVerticalScrollBarEnabled(true);
      contactsView.setLayoutParams(new ViewGroup.LayoutParams(
          ViewGroup.LayoutParams.FILL_PARENT, 300));
      linearLayout.addView(contactsView);
    } else {
      TextView textView = new TextView(this);
      textView.setText("No contacts found.");
      linearLayout.addView(textView);
    }

    final FriendListActivity activity = this;
View Full Code Here

Examples of com.firefly.mvc.web.view.TextView

  }
 
  @RequestMapping(value = "/add", method = HttpMethod.POST)
  public View add(HttpServletRequest request, HttpServletResponse response) {
    System.out.println("into /add");
    return new TextView(request.getParameter("content"));
  }
View Full Code Here

Examples of com.firefly.mvc.web.view.TextView

  }
 
  @RequestMapping(value = "/add2", method = HttpMethod.POST)
  public View add2(HttpServletRequest request, HttpServletResponse response) {
    System.out.println("into /add2");
    return new TextView("test add 2");
  }
View Full Code Here

Examples of com.firefly.mvc.web.view.TextView

  }
 
  @RequestMapping(value = "/param")
  public View testParam(HttpServletRequest request) {
    Map<String, String[]> map = request.getParameterMap();
    return new TextView(Arrays.toString(map.get("b")));
  }
View Full Code Here

Examples of com.firefly.mvc.web.view.TextView

    } catch (IOException e) {
      e.printStackTrace();
    }
    String ret = json.toString();
    Thread.sleep(5000);
    return new TextView(ret);
  }
View Full Code Here

Examples of com.firefly.mvc.web.view.TextView

      } else {
        part.write( "/Users/qiupengtao/fireflyTest/" + part.getName() + ".txt" );
      }
    }
//    throw new RuntimeException("upload error");
    return new TextView("upload ok!");
  }
View Full Code Here

Examples of com.firefly.mvc.web.view.TextView

  }

  @RequestMapping(value = "/hello/text")
  public View text(HttpServletRequest request) {
    log.info("into text output >>>>>>>>>>>>>>>>>");
    return new TextView("文本输出");
  }
View Full Code Here

Examples of com.firefly.mvc.web.view.TextView

    return new TextView("文本输出");
  }
 
  @RequestMapping(value = "/hello/text-?/?-?")
  public View text2(HttpServletRequest request, @PathVariable String[] args) {
    return new TextView("text-" + args[0] + "-" + args[1] + "-" + args[2]);
  }
View Full Code Here

Examples of com.firefly.mvc.web.view.TextView

    return new TextView("text-" + args[0] + "-" + args[1] + "-" + args[2]);
  }
 
  @RequestMapping(value = "/hello?")
  public View text3(HttpServletRequest request, @PathVariable String[] args) {
    return new TextView("text-" + args[0]);
  }
View Full Code Here

Examples of com.google.wave.api.TextView

  /**
   * Creates the AdminPane from an empty blip.
   */
  public void create() {
    TextView textView = blip.getDocument();

    // Set the 'effective' author to be Polly.
    textView.setAuthor(AdminWavelet.POLLY);
   
    textView.append("\n\n");

    textView.appendElement(new FormElement(ElementType.LABEL, TITLE_LABEL,
        "Enter the title of your poll here:"));

    textView.appendElement(new FormElement(ElementType.INPUT, TITLE_INPUT,
        metadata.getTitle()));
   
    textView.append("\n");

    textView.appendElement(new FormElement(ElementType.LABEL, QUESTION_LABEL,
        "Question: Enter the text of your question here:"));

    textView.appendElement(new FormElement(ElementType.INPUT, QUESTION_INPUT,
        metadata.getQuestion()));
   
    textView.append("\n");
   
    textView.appendElement(new FormElement(ElementType.LABEL, CHOICES_LABEL,
        "Choices:"));
   
    FormElement textArea = new FormElement(ElementType.TEXTAREA, CHOICES_INPUT);
    textView.appendElement(textArea);
   
    // Style the textarea to initially be bulleted.
    int textAreaPosition = textView.getPosition(textArea);
    textView.setStyle(new Range(textAreaPosition, textAreaPosition + 1), StyleType.BULLETED);
   
    textView.append("\n");

    textView.appendElement(new FormElement(ElementType.LABEL, RECIPIENTS_LABEL,
        "Recipients (comma separated list of participants):"));

    textView.appendElement(new FormElement(ElementType.INPUT, RECIPIENTS_INPUT,
        metadata.getRecipients()));
   
    textView.append("\n");

    textView.appendElement(new FormElement(ElementType.BUTTON, DISTRIBUTE_POLL_BUTTON,
        "Distribute Poll"));

    // Create an annotation over the document so that we can recognize it. No
    // value is set since we are only concerned with the existence of the
    // annotation.
    textView.setAnnotation("poll-admin", "");
   
    // Parse the form to retrieve the inital values.
    parseBlip();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.