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

Examples of com.google.gwt.user.client.ui.HTML.addStyleName()


            new AsyncCallback<String>() {
              public void onFailure(Throwable caught) {
                // Show the RPC error message to the user
                dialogBox
                    .setText("Remote Procedure Call - Failure");
                serverResponseLabel
                    .addStyleName("serverResponseLabelError");
                serverResponseLabel.setHTML(SERVER_ERROR);
                dialogBox.center();
                closeButton.setFocus(true);
              }
View Full Code Here


     
      chapterPanel.setWidth("100%");
      chapterPanel.add(chapterAdminBar);
      chapterPanel.add(chapterFlow);
      HTML footer = new HTML(QurText.FOOTER);
      footer.addStyleName("footer");
      chapterPanel.add(footer);

      juzPanel.setWidth("100%");
      listTabPanel.add(chapterPanel,"Chapter List");
     
View Full Code Here

    juzPanel.add(juzDeck);
    HTML juzTopHtml=null;
    HorizontalPanel juzBottomPanel=null;
    for (ClientJuz juz:juzList) {
      juzTopHtml=new HTML("&nbsp;");
      juzTopHtml.addStyleName("juzbox");
      juzTopHtml.addClickHandler(juzTopHtmlClick);
      juzTopHtml.addMouseOverHandler(juzTopMouseOver);
      juzTopHtml.addMouseOutHandler(juzTopMouseOut);
      juzTopHtml.getElement().setAttribute("name",""+juz.juzNo);
      juzTopPanel.add(juzTopHtml);
View Full Code Here

    juzDeck.showWidget(0);
  }

  private HTML showJuzBottomLink(HorizontalPanel juzBottmPanel, String token) {
    HTML sectionHyperlink = new HTML("&nbsp;");
    sectionHyperlink.addStyleName("juzbox");
    sectionHyperlink.addClickHandler(updateClickHandler );
    sectionHyperlink.addMouseOverHandler(juzBottomMouseOver);
    sectionHyperlink.addMouseOutHandler(juzBottomMouseOut);
    sectionHyperlink.getElement().setAttribute("name", token);
    juzBottmPanel.add(sectionHyperlink);
View Full Code Here

      HorizontalPanel juzBottomPanel = (HorizontalPanel)juzBottomLeftMostHTML.getParent();
      for (int i=0;i<juzBottomPanel.getWidgetCount();i++) {
        HTML juzBottomHtml = (HTML) juzBottomPanel.getWidget(i);
        String token=juzBottomHtml.getElement().getAttribute("name");
        if (user.sectionRead[navigationPresenter.getSectionNo(token)]) {
          juzBottomHtml.addStyleName("completed");
        } else {
          juzBottomHtml.removeStyleName("completed");
          juzCompleted = false;
        }
      }
View Full Code Here

            new AsyncCallback<String>() {
              public void onFailure(Throwable caught) {
                // Show the RPC error message to the user
                dialogBox
                    .setText("Remote Procedure Call - Failure");
                serverResponseLabel
                    .addStyleName("serverResponseLabelError");
                serverResponseLabel.setHTML(SERVER_ERROR);
                dialogBox.center();
                closeButton.setFocus(true);
              }
View Full Code Here

    for (HTML textHTML:textHtmls) {
      textHTML.addStyleName("selected");
    }
    HTML translationHtml = translationHtmlMap.get(currentToken);
    if (null==translationHtml) return;
    translationHtml.addStyleName("selected");
  }

}
View Full Code Here

      // Ads don't have an official interface
      title = "Advertisement";
    }

    HTML h = new HTML(title);
    h.addStyleName("clipLink");
    h.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        PopupPanel p = new PopupPanel(true);
        p.addStyleName("keepPopup");
        p.setWidget(result.getHtml());
View Full Code Here

                        }
                );
            }
        });

        logoutHtml.addStyleName("html-link");

        VerticalPanel usermenu = new VerticalPanel();
        usermenu.setStyleName("fill-layout-width");
        usermenu.addStyleName("user-menu");
View Full Code Here

        if(bootstrap.isSuperUser())
        {
            usermenu.add(new HTML("<hr/>"));
            HTML runAsBtn = new HTML();
            runAsBtn.addStyleName("html-link");

            SafeHtmlBuilder runAsRole = new SafeHtmlBuilder();
            runAsRole.appendHtmlConstant("<i class='icon-flag'></i>&nbsp;").appendEscaped("Run as");
            if (bootstrap.getRunAs()!=null) {
                runAsRole.appendHtmlConstant("&nbsp;").appendEscaped(bootstrap.getRunAs());
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.