Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.InlineHTML


        Element span = Document.get().createSpanElement().cast();
        widget = config.getWidget();
        span.appendChild(widget.getElement());
        getElement().appendChild(span);
      } else {
        text = new InlineHTML(config.getHeader() != null ? config.getHeader() : SafeHtmlUtils.fromString(""));
        getElement().appendChild(text.getElement());
      }

      getElement().appendChild(img);
View Full Code Here


        Anchor ccpGamesAnchor = new Anchor(constants.ccpGames(), constants.ccpGamesUrl(), "_blank");
        ccpGamesAnchor.addStyleName(resources.css().footerAnchor());
        Anchor appEngineAnchor = new Anchor(constants.googleAppEngine(), constants.googleAppEngineUrl(), "_blank");
        appEngineAnchor.addStyleName(resources.css().footerAnchor());

        InlineHTML footerInlineHtml = new InlineHTML(messages.footerText(characterString, eveOnlineAnchor.toString(), ccpGamesAnchor.toString(), appEngineAnchor.toString()));
        footerInlineHtml.addStyleName(resources.css().footerText());
        footerPanel.add(footerInlineHtml);
    }
View Full Code Here

    public void setVersions(String eveManageVersion, String eveDbVersion) {
        Anchor eveManageVersionAnchor = new Anchor(eveManageVersion, constants.eveManageReleaseNotesUrl(), "_blank");
        eveManageVersionAnchor.addStyleName(resources.css().footerAnchor());
        Anchor eveDbVersionAnchor = new Anchor(eveDbVersion, constants.eveDbReleaseNotesUrl(), "_blank");
        eveDbVersionAnchor.addStyleName(resources.css().footerAnchor());
        InlineHTML footerVersionInlineHtml = new InlineHTML(messages.footerVersionText(eveManageVersionAnchor.toString(), eveDbVersionAnchor.toString()));
        footerVersionInlineHtml.addStyleName(resources.css().footerText());
        footerPanel.add(footerVersionInlineHtml);
    }
View Full Code Here

   * @param widget The widget to add.
   */
  @Override
  public void add(Widget widget) {
    if (getWidgetCount() > 0) {
      super.add(new InlineHTML(token));
    }
    super.add(widget);
    updateVisibility();
  }
View Full Code Here

    }
    int index = getWidgetIndex(nextWidget);
    if (index < 0) {
      throw new NoSuchElementException("Next widget not found.");
    }
    insert(new InlineHTML(token), index);
    insert(widgetToAdd, index);
    updateVisibility();
  }
View Full Code Here

        showText(basmallahPanel, mainPresenter.getSectionPresenter().getBasmallah());
        textPanel.add(basmallahPanel);
      }
      showText(textPanel, verse);
      String token = "" + verse.chapterNo + ":" + verse.verseNo;
      InlineHTML number = new InlineHTML("<font color='gray'><sup><nobr>{" + arabicNumber(verse.verseNo) + "}</nobr></sup></font> ");
      addPlayRecitationHandler(token, number, true);
      textPanel.add(number);
    }
    sectionPanel.add(textPanel);
  }
View Full Code Here

    if (null==arabicText) return;
    String token = "" + verse.chapterNo + ":" + verse.verseNo;
    ArrayList<ArabicWord> arabicWords=getArabicWords(verse);
    ArrayList<HTML> textHtmls = new ArrayList<HTML>(arabicWords.size());
    for (ArabicWord arabicWord:arabicWords) {
      InlineHTML text = new InlineHTML(arabicWord.text + " ");
      textHtmls.add(text);
      if (null==arabicWord.transliteration) {
        if (null!=arabicWord) text.addStyleName(arabicWord.style);
        addPlayRecitationHandler(token, text, true);
      } else {
        TooltipHandler handler=new TooltipHandler(arabicWord.transliteration.replaceAll("[<][s][>]","<font color='gray'><s>").replaceAll("[<][/][s][>]","</s></font>") + "<br/>" + arabicWord.literal, 10000, "tooltip");
        text.addMouseOverHandler(handler);
        text.addMouseOutHandler(handler);
        addPlayRecitationHandler(token, text, false);
      }
      textPanel.add(text);
    }
    textHtmlMap.put("" + verse.chapterNo + ":" + verse.verseNo,textHtmls);
View Full Code Here

      if (verse.verseNo==1 && verse.chapterNo!=1 && verse.chapterNo!=9) {
        ClientVerse basmallah = mainPresenter.getSectionPresenter().getBasmallah();
        if (null==basmallah) break;
        String token = "" + basmallah.chapterNo + ":" + basmallah.verseNo;
        String text = basmallah.translation + " ";
        InlineHTML translationHTML = new InlineHTML(text);
        translationHtmlMap.put(token, translationHTML);
        addPlayRecitationHandler(token, translationHTML, true);
        textPanel.add(translationHTML);
      }
      String token = "" + verse.chapterNo + ":" + verse.verseNo;
      InlineHTML number = new InlineHTML("<font color='gray'><sup>" + token + "</sup></font> ");
      addPlayRecitationHandler(token, number, true);
      textPanel.add(number);
      String text =verse.translation + " ";
      InlineHTML translationHTML = new InlineHTML(text);
      translationHtmlMap.put(token, translationHTML);
      addPlayRecitationHandler(token, translationHTML, true);
      textPanel.add(translationHTML);
      if (null!=verse.topics) {
        for (String topic:verse.topics.split("[,]")) {
View Full Code Here

import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.InlineHTML;

public class BaseView {
    protected HTML spacer() {
    InlineHTML result = new InlineHTML(" &nbsp; ");
    return result;
  }
View Full Code Here

        Element span = Document.get().createSpanElement().cast();
        widget = config.getWidget();
        span.appendChild(widget.getElement());
        getElement().appendChild(span);
      } else {
        text = new InlineHTML(config.getHeader() != null ? config.getHeader() : SafeHtmlUtils.fromString(""));
        getElement().appendChild(text.getElement());
      }

      getElement().appendChild(img);
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.InlineHTML

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.