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

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


     *
     * @return the HTMLPanel used to add the contents to the new cell
     */
    private HTMLPanel addToSlidingGrid(Widget widget, String id, String title, String htmlText, int type)
    {      
        HTMLPanel p = new HTMLPanel("div",
            "<h3 id=\"WID_" + id + "\">" + title + "</h3>" +
            htmlText +
            "<span id=\"" + id + "\"></span>");
    
        if (widget != null) {
            p.add(widget, id);
        }
       
        switch (type) {
            case WIDE:
                m_slideGridPanel.addWide(p);
View Full Code Here


    {       
        /*
         * Add the message buttons
         */
        Button b = new Button(Index.getStrings().showInfoMessage());
        HTMLPanel p = addToSlidingGrid(b, "WidgetsMessages", Index.getStrings().humanMsg(), STRINGS.HumanMsg_html(), TALL);
       
        b.addClickHandler(new ClickHandler() {

            @Override
            public void onClick(ClickEvent event)
            {
                MessageUtil.showMessage(Index.getStrings().infoMsg());
            }
           
        });
       
        b = new Button(Index.getStrings().showWrnMsg());
        p.add(b, "WidgetsMessages");
        b.addClickHandler(new ClickHandler() {

            @Override
            public void onClick(ClickEvent event)
            {
                MessageUtil.showWarning(Index.getStrings().wrnMsg(), false);
            }
           
        });
       
        b = new Button(Index.getStrings().showErrMsg());
        p.add(b, "WidgetsMessages");
        b.addClickHandler(new ClickHandler() {

            @Override
            public void onClick(ClickEvent event)
            {
                MessageUtil.showError(Index.getStrings().errMsg());
            }
           
        });
       
        b = new Button(Index.getStrings().showFatalErrMsg());
        p.add(b, "WidgetsMessages");
        b.addClickHandler(new ClickHandler() {

            @Override
            public void onClick(ClickEvent event)
            {
View Full Code Here

                        String cause = "";
                        if(context.getLastError()!=null)
                            cause = context.getLastError().getMessage();

                        HTMLPanel explanation = new HTMLPanel("<div style='padding-top:150px;padding-left:120px;'><h2>The management interface could not be loaded.</h2><pre>"+cause+"</pre></div>");
                        RootLayoutPanel.get().add(explanation);
                    }

                    @Override
                    public void onSuccess(BootstrapContext context) {
View Full Code Here

    List<String> getLifecycleIds() {
        return lifecycleIds;
    }

    HTMLPanel createPanel() {
        return new HTMLPanel(this.toSafeHtml().asString());
    }
View Full Code Here

        return panel;
    }

    private Widget getLinksSection() {
        linksPane = new HTMLPanel(createLinks());
        linksPane.getElement().setId("header-links-section");
        linksPane.getElement().setAttribute("role", "menubar");
        linksPane.getElement().setAttribute("aria-controls", "main-content-area");

        String[][] sections = bootstrap.isStandalone() ? SECTIONS_STANADLONE : SECTIONS;
View Full Code Here

            sb.appendHtmlConstant("</table>");
         }
         sb.appendHtmlConstant("</td>");
      }
      sb.appendHtmlConstant("</td></tr></table>");
      HTMLPanel panel = new HTMLPanel(sb.toSafeHtml());
      shortcutPanel.add(panel);
     
      shortcutDocLink.addClickHandler(new ClickHandler()
      {
         @Override
View Full Code Here

   public RmdFileOption(RmdTemplateFormatOption option, String initialValue)
   {
      super(option, initialValue);
      defaultValue_ = option.getDefaultValue();

      HTMLPanel panel = new HTMLPanel("");
      panel.add(getOptionLabelWidget());
     
      fileChooser_ = new FileChooserTextBox("", null);
      if (!initialValue.equals("null"))
         fileChooser_.setText(initialValue);
      fileChooser_.getElement().getStyle().setMarginLeft(20, Unit.PX);
      fileChooser_.getElement().getStyle().setMarginTop(3, Unit.PX);
      panel.add(fileChooser_);

      updateNull();

      initWidget(panel);
   }
View Full Code Here

public class RmdFloatOption extends RmdNullableOption
{
   public RmdFloatOption(RmdTemplateFormatOption option, String initialValue)
   {
      super(option, initialValue);
      HTMLPanel panel = new HTMLPanel("");
      defaultValue_ = Float.parseFloat(option.getDefaultValue());
      panel.add(getOptionLabelWidget());
      txtValue_ = new NumericTextBox();
      if (initialValue.equals("null"))
         txtValue_.setValue(option.getDefaultValue());
      else
         txtValue_.setValue(initialValue);
      txtValue_.setWidth("40px");
      txtValue_.getElement().getStyle().setMarginLeft(5, Unit.PX);
      panel.add(txtValue_);

      updateNull();

      initWidget(panel);
   }
View Full Code Here

public class RmdDiscoveredTemplateItem extends Composite
{
   public RmdDiscoveredTemplateItem(RmdDiscoveredTemplate template)
   {
      template_ = template;
      panel_ = new HTMLPanel("");
      Label pkg = new Label("{" + template.getPackage() + "}");
      pkg.getElement().getStyle().setFloat(Style.Float.RIGHT);
      pkg.getElement().getStyle().setColor("#909090");
      panel_.add(pkg);
      Label name = new Label(template.getName());
View Full Code Here

public class RmdBooleanOption extends RmdBaseOption
{
   public RmdBooleanOption(RmdTemplateFormatOption option, String initialValue)
   {
      super(option);
      HTMLPanel panel = new HTMLPanel("");
      checkBox_ = new CheckBox(option.getUiName());
      defaultValue_ = Boolean.parseBoolean(option.getDefaultValue());
      checkBox_.setValue(Boolean.parseBoolean(initialValue));
      panel.add(checkBox_);
      initWidget(panel);
   }
View Full Code Here

TOP

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

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.