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

Examples of com.google.gwt.user.client.ui.InlineLabel.addClickHandler()


    for (final NanoTest nano : nanos) {
      grid.setText(row, 0, "0");
      grid.setText(row, 1, "0");
      InlineLabel a = new InlineLabel();
      a.setText(nano.getName());
      a.addClickHandler(new ClickHandler() {
        public void onClick(ClickEvent event) {
          Widget toDisplay = nano.getPopup();
          if (toDisplay != null) {
            PopupPanel popup = new PopupPanel(true, true);
            ScrollPanel container = new ScrollPanel(toDisplay);
View Full Code Here


      int min = i * (60 / timeSlices);
      InlineLabel minuteLabel = createInlineLabel(
          NumberFormat.getFormat("00").format(min),
          "timepickr-button");
      minuteLabel.addMouseOverHandler(minuteSelectedHandler);
      minuteLabel.addClickHandler(closePopupHandler);
      minuteLabel.addMouseOutHandler(isOkToCloseHandler);
      minuteLabel.getElement().setPropertyInt("minute", i);
      pnlMinutes.add(minuteLabel);
      minuteLabels.add(minuteLabel);
    }
View Full Code Here

    for (int i = (startHour < 12 ? startHour : 12); i < (endHour < 12 ? endHour
        : 12); i++) {
      InlineLabel hourLabelAM = createInlineLabel(
          NumberFormat.getFormat("00").format(i), "timepickr-button");
      hourLabelAM.addMouseOverHandler(hourSelectedHandler);
      hourLabelAM.addClickHandler(closePopupHandler);
      hourLabelAM.addMouseOutHandler(isOkToCloseHandler);
      hourLabelAM.getElement().setPropertyInt("hour", i);
      pnlHoursAM.add(hourLabelAM);
      hourLabels.add(hourLabelAM);
    }
View Full Code Here

          NumberFormat.getFormat("00").format(
              PickerFormat._24_HOUR.equals(format) ? i
                  : (i > 12 ? i % 12 : i)),
          "timepickr-button");
      hourLabelPM.addMouseOverHandler(hourSelectedHandler);
      hourLabelPM.addClickHandler(closePopupHandler);
      hourLabelPM.addMouseOutHandler(isOkToCloseHandler);
      hourLabelPM.getElement().setPropertyInt("hour", i);
      pnlHoursPM.add(hourLabelPM);
      hourLabels.add(hourLabelPM);
    }
View Full Code Here

    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);
View Full Code Here

  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

    // If a response schema is provided, add a link to the fields editor and
    // tell the fields editor about this method's response schema.
    if (responseSchema != null && responseSchema.getProperties() != null) {
      Label openFieldsEditor = new InlineLabel("Use fields editor");
      openFieldsEditor.addStyleName(Resources.INSTANCE.style().clickable());
      openFieldsEditor.addClickHandler(new ClickHandler() {
        @Override
        public void onClick(ClickEvent event) {
          fieldsPopupPanel.show();
          fieldsPopupPanel.center();
        }
View Full Code Here

    object.add(objectContents);

    InlineLabel placeholder = new InlineLabel(indentation(depth + 1) + PLACEHOLDER_TEXT);
    ClickHandler collapsingHandler = new Collapser(objectContents, placeholder, titleLabel);
    placeholder.setVisible(false);
    placeholder.addClickHandler(collapsingHandler);
    object.add(placeholder);

    titleLabel.addClickHandler(collapsingHandler);

    StringBuilder closingLabelText = new StringBuilder(indentation(depth)).append(closeGroup);
View Full Code Here

        }
    }

    private void buildHeader() {
        InlineLabel pathHeader = new InlineLabel(messages.columnHeaderPath());
        pathHeader.addClickHandler(new HeaderClickHandler(
                DocumentListDisplay.PATH_HEADER));

        InlineLabel docHeader =
                new InlineLabel(messages.columnHeaderDocument());
        docHeader.addClickHandler(new HeaderClickHandler(
View Full Code Here

        pathHeader.addClickHandler(new HeaderClickHandler(
                DocumentListDisplay.PATH_HEADER));

        InlineLabel docHeader =
                new InlineLabel(messages.columnHeaderDocument());
        docHeader.addClickHandler(new HeaderClickHandler(
                DocumentListDisplay.DOC_HEADER));

        InlineLabel statsHeader =
                new InlineLabel(messages.columnHeaderStatistic());
        statsHeader.addClickHandler(new HeaderClickHandler(
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.