Package com.google.wave.api

Examples of com.google.wave.api.StyledText


  public void create(Wavelet resultsWavelet, String recipient) {
    metadata.setRecipients(recipient);
    metadata.setResultsWaveletId(resultsWavelet.getWaveId() + " " +
        resultsWavelet.getWaveletId());

    wavelet.setTitle(new StyledText(metadata.getTitle() + " -- Poll", StyleType.HEADING2));
    pollPane.create(false);
    wavelet.getRootBlip().getDocument().setAnnotation("poll-wavelet", "");
   
    metadata.saveMetadata(wavelet);
  }
View Full Code Here


   * Sets the title of the wave using StyledText.
   *
   * @param title the title of the wave.
   */
  private void setTitle(String title) {
    wavelet.setTitle(new StyledText(title + " -- Administration", StyleType.HEADING2));
  }
View Full Code Here

    TextView textView = blip.getDocument();

    // If being used as a preview, create a sub-heading for the pane.
    if (asPreview) {
      textView.append("\n");
      textView.appendStyledText(new StyledText("Preview", StyleType.HEADING2));
    }

    textView.append("\n\n");

    textView.appendElement(new FormElement(ElementType.LABEL, PREV_QUESTION_LABEL,
View Full Code Here

  public void create() {
    TextView textView = blip.getDocument();

    textView.append("\n");

    textView.appendStyledText(new StyledText("Results", StyleType.HEADING2));

    textView.append("\n\n");
   
    textView.appendElement(new Image(getParticipationChartUrl(),
        PARTICIPATION_WIDTH, PARTICIPATION_HEIGHT, ""));
View Full Code Here

//    blip.getWavelet().setTitle(
//        new StyledText((username + (username.endsWith("s") ? "'" : "'s") + " Twitter Search"),
//            StyleType.HEADING3));
   
    // Set the new title.
    blip.getWavelet().setTitle(new StyledText("Twitter Search", StyleType.HEADING3));

    // Insert the search input box.
    document.append("\n");
    document.appendElement(new FormElement(
        ElementType.INPUT,
View Full Code Here

//      new StyledText("What are you doing " + twitterWave.getUsername() + "?",
//          StyleType.HEADING3));
   
    // Set the title.
    blip.getWavelet().setTitle(
        new StyledText("What are you doing ?",
            StyleType.HEADING3));

    // Insert the update form.
    document.append("\n");
    document.appendElement(new FormElement(
View Full Code Here

TOP

Related Classes of com.google.wave.api.StyledText

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.