Examples of InlineLabel


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

  private void createErrorBox() {
    errorLine = new FlowPanel();
    DOM.setStyleAttribute(errorLine.getElement(), "visibility", "hidden");
    errorLine.setStyleName(UserPassResources.I.css().error());

    errorMsg = new InlineLabel();
    errorLine.add(errorMsg);
    formBody.add(errorLine);
  }
View Full Code Here

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

    final FlexTable table = new FlexTable();
    table.setText(0, 0, "From");
    {
      final HorizontalPanel hbox = new HorizontalPanel();
      hbox.add(new InlineLabel("To"));
      final Anchor now = new Anchor("(now)");
      now.addClickHandler(new ClickHandler() {
        public void onClick(final ClickEvent event) {
          end_datebox.setValue(new Date());
          refreshGraph();
        }
      });
      hbox.add(now);
      hbox.add(autoreload);
      hbox.setWidth("100%");
      table.setWidget(0, 1, hbox);
    }
    autoreload.addValueChangeHandler(new ValueChangeHandler<Boolean>() {
      @Override
      public void onValueChange(final ValueChangeEvent<Boolean> event) {
        if (autoreload.getValue()) {
          final HorizontalPanel hbox = new HorizontalPanel();
          hbox.setWidth("100%");
          hbox.add(new InlineLabel("Every:"));
          hbox.add(autoreoload_interval);
          hbox.add(new InlineLabel("seconds"));
          table.setWidget(1, 1, hbox);
          if (autoreoload_interval.getValue().isEmpty()) {
            autoreoload_interval.setValue("15");
          }
          autoreoload_interval.setFocus(true);
          lastgraphuri = ""// Force refreshGraph.
          refreshGraph();     // Trigger the 1st auto-reload
        } else {
          table.setWidget(1, 1, end_datebox);
        }
      }
    });
    autoreoload_interval.setValidationRegexp("^([5-9]|[1-9][0-9]+)$")// >=5s
    autoreoload_interval.setMaxLength(4);
    autoreoload_interval.setVisibleLength(8);

    table.setWidget(1, 0, start_datebox);
    table.setWidget(1, 1, end_datebox);
    {
      final HorizontalPanel hbox = new HorizontalPanel();
      hbox.add(new InlineLabel("WxH:"));
      hbox.add(wxh);
      table.setWidget(0, 3, hbox);
    }
    {
      addMetricForm("metric 1", 0);
      metrics.selectTab(0);
      metrics.add(new InlineLabel("Loading..."), "+");
      metrics.addBeforeSelectionHandler(new BeforeSelectionHandler<Integer>() {
        public void onBeforeSelection(final BeforeSelectionEvent<Integer> event) {
          final int item = event.getItem();
          final int nitems = metrics.getWidgetCount();
          if (item == nitems - 1) {  // Last item: the "+" was clicked.
View Full Code Here

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

    cf.getElement(3, 1).getStyle().setProperty("borderBottom", "1px solid #000");
    cf.getElement(3, 2).getStyle().setProperty("borderBottom", "1px solid #000");
    cf.getElement(3, 3).getStyle().setProperty("borderBottom", "1px solid #000");
    cf.getElement(3, 3).getStyle().setProperty("borderRight", "1px solid #000");
    final VerticalPanel vbox = new VerticalPanel();
    vbox.add(new InlineLabel("Key location:"));
    vbox.add(grid);
    vbox.add(horizontalkey);
    keybox.setValue(true);
    vbox.add(keybox);
    vbox.add(nokey);
View Full Code Here

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

              } else {
                displayError(msg);
                final DisclosurePanel dp =
                  new DisclosurePanel(err.substring(0, newline));
                RootPanel.get("queryuimain").add(dp)// Attach the widget.
                final InlineLabel content =
                  new InlineLabel(err.substring(newline, err.length()));
                content.addStyleName("fwf")// For readable stack traces.
                dp.setContent(content);
                current_error.getElement().appendChild(dp.getElement());
              }
            } else {
              displayError("Request failed while getting " + url + ": "
View Full Code Here

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

    return scrollMiscellaneousHolderPanel;
  }
  private Panel addStyleAttribute(String displayName, String attributeName, Element invokingElement) {
    HorizontalPanel styleAttribute = new HorizontalPanel();
    styleAttribute.setWidth("100%");
    styleAttribute.add(new InlineLabel(displayName));
    styleAttribute.setCellWidth(styleAttribute.getWidget(0), "50%");
    DOM.setStyleAttribute(styleAttribute.getElement(), "padding", "2px 0px");
   
    final TextBox styleAttributeTextBox = new TextBox();
    styleAttributeTextBox.addKeyDownHandler(new KeyDownHandler(){
View Full Code Here

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

    final TextBox scopeText = new TextBox();
    scopeText.setValue(name);
    newRow.add(scopeText);
    freeFormEditors.add(scopeText);

    final Label removeLink = new InlineLabel("X");
    removeLink.addStyleName(style.clickable());
    removeLink.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        freeFormEditors.remove(scopeText);
        additionalScopePanel.remove(newRow);

        if (freeFormEditors.isEmpty()) {
          addFreeFormEditorRow("", false);
        }
      }
    });
    newRow.add(removeLink);
    removeLink.setVisible(showRemoveLink);

    // Add a handler to add a new editor when there is text in the existing editor.
    scopeText.addKeyDownHandler(new KeyDownHandler() {
      @Override
      public void onKeyDown(KeyDownEvent event) {
        TextBox editor = (TextBox) event.getSource();
        boolean isLastEditor = editor.equals(Iterables.getLast(freeFormEditors));
        if (isLastEditor && !editor.getValue().isEmpty()) {
          presenter.addNewScope();
          removeLink.setVisible(true);
        }
      }
    });

    additionalScopePanel.add(newRow);
View Full Code Here

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

  /**
   * Denotes that this is an object whose definition is in another Schema, and
   * that it should be filled in with the correct fields when expanded.
   */
  void setRef(final String ref) {
    final InlineLabel expando = new InlineLabel("+");
    add(expando);
    expando.addStyleName(Resources.INSTANCE.style().clickable());
    expando.setTitle("Click to show more fields");
    expando.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        Schema sch = service.getSchemas().get(ref);
        setProperties(sch.getProperties());
        remove(expando);
View Full Code Here

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

    @Override
    public Widget render(Schema property) {
      HTMLPanel panel = new HTMLPanel("");
      panel.getElement().getStyle().setDisplay(Display.INLINE);

      panel.add(new InlineLabel("\""));
      if (property.locked()) {
        InlineLabel label = new InlineLabel();
        panel.add(label);
        hasText = label;
      } else {
        TextArea editor = new TextArea();
        panel.add(editor);
        hasText = editor;
      }
      panel.add(new InlineLabel("\""));

      if (property.getDefault() != null) {
        hasText.setText(property.getDefault());
      }
View Full Code Here

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

    container.clear();

    // For all of the titles previous to the last, add a link and a separator.
    for (Title notLast : titles.subList(0, titles.size() - 1)) {
      container.add(new InlineHyperlink(notLast.getTitle(), notLast.getFragment()));
      container.add(new InlineLabel(" > "));
    }

    // Append only the text for the last title.
    Title lastTitle = Iterables.getLast(titles);
    container.add(new InlineLabel(lastTitle.getTitle()));
    if (lastTitle.getSubtitle() != null) {
      Label subtitle = new InlineLabel(" - " + lastTitle.getSubtitle());
      subtitle.addStyleName(style.methodSubtitle());
      container.add(subtitle);
    }
  }
View Full Code Here

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

    authViewPlaceholder.add(auth);
  }

  private void showDocumentationLink(String componentName, String href) {
    docsContainer.add(
        new InlineLabel("Learn more about using " + componentName + " by reading the "));
    docsContainer.add(new Anchor("documentation", href, NEW_TAB_TARGET));
    docsContainer.add(new InlineLabel("."));
  }
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.