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

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


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

      HTMLPanel panel = new HTMLPanel("");
      panel.add(getOptionLabelWidget());
      txtValue_ = new TextBox();
      if (!initialValue.equals("null"))
         txtValue_.setValue(initialValue);
      txtValue_.getElement().getStyle().setDisplay(Display.BLOCK);
      txtValue_.getElement().getStyle().setMarginLeft(20, Unit.PX);
      txtValue_.getElement().getStyle().setMarginTop(3, Unit.PX);
      txtValue_.setWidth("75%");
      panel.add(txtValue_);

      updateNull();
      initWidget(panel);
   }
View Full Code Here


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

      HTMLPanel panel = new HTMLPanel("");
      panel.add(getOptionLabelWidget());
      choices_ = new ListBox();
     
      JsArrayString choiceList = option.getChoiceList();
      int selectedIdx = 0;
      for (int i = 0; i < choiceList.length(); i++)
      {
         choices_.addItem(choiceList.get(i));
         if (choiceList.get(i).equals(initialValue))
         {
            selectedIdx = i;
         }
      }
      choices_.setSelectedIndex(selectedIdx);
      panel.add(choices_);

      updateNull();
      initWidget(panel);
   }
View Full Code Here

    TabPanel tabPanel = new TabPanel();
    //horizontalPanel_1.add(tabPanel);
    tabPanel.setWidth("442px");

    HTMLPanel panel = new HTMLPanel("New HTML");
    tabPanel.add(panel, "New tab", false);
    panel.setSize("5cm", "3cm");

    HTMLPanel panel_1 = new HTMLPanel("New HTML");
    tabPanel.add(panel_1, "New tab", false);
    panel_1.setSize("5cm", "3cm");

    SimplePanel simplePanel_1 = new SimplePanel();
    rootPanel.add(simplePanel_1);

    DockPanel dockPanel = new DockPanel();
View Full Code Here

      }
    });
    widgetMakers.add(new WidgetMaker("HTMLPanel") {
      @Override
      public Widget make() {
        return new HTMLPanel("");
      }
    });
    widgetMakers.add(new EmptyBinder.Maker());
    widgetMakers.add(new TestEmptyDomViaApi.Maker());
    widgetMakers.add(new TestEmptyDom.Maker());
View Full Code Here

 
 
  SpanElement span2;
 
  private TestManualHTMLPanel() {
    HTMLPanel p = new HTMLPanel(Util.TEXTY_INNER_HTML);
    initWidget(p);
   
    div1 = p.getElementById("div1").cast();
    div2 = p.getElementById("div2").cast();
    div3 = p.getElementById("div3").cast();
    div4 = p.getElementById("div4").cast();
    span1 = p.getElementById("span1").cast();
    span2 = p.getElementById("span2").cast();
  }
View Full Code Here

            i+=col;
        }

        builder.appendHtmlConstant(tableSuffix);

        HTMLPanel panel = new HTMLPanel(builder.toSafeHtml());

        // inline widget
        for(String key : itemKeys)
        {
            FormItem item = groupItems.get(key);
            final String widgetId = id + key;
            final String labelId = id + key+"_l"; // aria property key
            final String insertId = id + key+"_i";

            Element input = item.getInputElement();
            if(input!=null)
            {
                input.setAttribute("id", widgetId);
                //widget.getElement().setAttribute("tabindex", "0");
                input.setAttribute("aria-labelledby", labelId);
                input.setAttribute("aria-required", String.valueOf(item.isRequired()));
            }
            panel.add(item.asWidget(), insertId);

        }

        return panel;
    }
View Full Code Here

          @Override
          public void onSuccess(List<Tag> result) {
            // TODO Auto-generated method stub
            for (Tag tag : result) {
              tagPanel.add(new HTMLPanel(tag.getBody()));
            }

          }
        });
View Full Code Here

        builder.appendHtmlConstant("<fieldset id='"+id+"' class='default-fieldset'>");
        builder.appendHtmlConstant("<legend class='default-legend'>").appendEscaped(groupName).appendHtmlConstant("</legend>");
        builder.appendHtmlConstant("</fieldset>");

        HTMLPanel html = new HTMLPanel(builder.toSafeHtml());

        DefaultGroupRenderer defaultGroupRenderer = new DefaultGroupRenderer();
        Widget defaultGroupWidget = defaultGroupRenderer.render(metaData, "", groupItems);
        html.add(defaultGroupWidget,id);

        return html;
    }
View Full Code Here

            i+=col;
        }

        builder.appendHtmlConstant(tableSuffix);

        HTMLPanel panel = new HTMLPanel(builder.toSafeHtml());

        // inline widget
        Set<String> keys = groupItems.keySet();
        for(String key : keys)
        {
            FormItem item = groupItems.get(key);
            final String widgetId = id + key;
            panel.add(item.asWidget(), widgetId);

        }

        return panel;
    }
View Full Code Here

        builder.appendHtmlConstant("<div class='host-selector'>");
        builder.appendHtmlConstant("<div class='host-selector-header'>Selected Host:</div>");
        builder.appendHtmlConstant("<div id='host-selector-content'/>");
        builder.appendHtmlConstant("</div>");

        panel = new HTMLPanel(builder.toSafeHtml());
        hostSelection = new ComboBox();
        hostSelection.addValueChangeHandler(new ValueChangeHandler<String>() {
            @Override
            public void onValueChange(ValueChangeEvent<String> event) {
                fireHostSelection(event.getValue());
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.