Examples of ToolTip


Examples of com.google.collide.client.ui.tooltip.Tooltip

    elemental.html.Element target = Elements.asJsElement(buttonElem);
    Positioner positioner = new Tooltip.TooltipPositionerBuilder().setVerticalAlign(
        VerticalAlign.BOTTOM)
        .setHorizontalAlign(HorizontalAlign.MIDDLE).buildAnchorPositioner(target);
    Tooltip noFileSelectedTooltip = new Tooltip.Builder(
        context.getResources(), target, positioner).setShouldListenToHover(false)
        .setTooltipRenderer(new TooltipRenderer() {
          @Override
          public elemental.html.Element renderDom() {
            DivElement container = Elements.createDivElement();

            DivElement header = Elements.createDivElement();
            header.setTextContent("No File Selected");
            header.getStyle().setFontWeight(CSSStyleDeclaration.FontWeight.BOLDER);
            header.getStyle().setMarginBottom(5, CSSStyleDeclaration.Unit.PX);
            container.appendChild(header);

            DivElement text = Elements.createDivElement();
            text.setTextContent(
                "Choose a file from the tree to preview it, or select a custom run target.");
            container.appendChild(text);

            return container;
          }
        }).build();

    Tooltip yamlAddedTooltip = new Tooltip.Builder(
        context.getResources(), target, positioner).setShouldListenToHover(false)
        .setTooltipRenderer(new TooltipRenderer() {
          @Override
          public elemental.html.Element renderDom() {
            DivElement container = Elements.createDivElement();

            SpanElement text = Elements.createSpanElement();
            text.setTextContent(
                "The run target has been set to your newly created app.yaml file. ");
            container.appendChild(text);

            // TODO: We'd like to offer an option to undo the
            // automatic setting of the run target, but I don't have time
            // to write a coach tips class right now and tool tips can't be
            // clicked.
            return container;
          }
        }).build();

    Tooltip targetResetTooltip = new Tooltip.Builder(
        context.getResources(), target, positioner).setShouldListenToHover(false)
        .setTooltipRenderer(new TooltipRenderer() {
          @Override
          public elemental.html.Element renderDom() {
            DivElement container = Elements.createDivElement();
View Full Code Here

Examples of com.google.collide.client.ui.tooltip.Tooltip

    // TODO: This should never be shown (its a fallback just in
    // case we hit a case where it could in the future).
    final String defaultText = "Access the AwesomeBox for more options";
    Positioner tooltipPositioner = new Tooltip.TooltipPositionerBuilder().buildAnchorPositioner(
        view.awesomeBoxComponentHostView.getElement());
    Tooltip tooltip = new Tooltip.Builder(appContext.getResources(),
        view.awesomeBoxComponentHostView.getElement(), tooltipPositioner).setTooltipRenderer(
        new Tooltip.TooltipRenderer() {
          @Override
          public elemental.html.Element renderDom() {
            elemental.html.DivElement element = Elements.createDivElement();
View Full Code Here

Examples of com.googlecode.wickedcharts.highcharts.options.Tooltip

                    .setBackgroundColor(new HexColor("#FFFFFF"))
                    .setAlign(HorizontalAlignment.LEFT)
                    .setVerticalAlign(VerticalAlignment.TOP).setX(100).setY(70).setFloating(Boolean.TRUE).setShadow(Boolean.TRUE));
       
        options.setTooltip(
                new Tooltip().setFormatter(new Function().setFunction(" return ''+ this.x +': '+ this.y;")));
       
        options.setPlotOptions(
                new PlotOptionsChoice()
                .setColumn(new PlotOptions().setPointPadding(0.2f).setBorderWidth(0)));
View Full Code Here

Examples of com.googlecode.wickedcharts.highcharts.options.Tooltip

                    .setBackgroundColor(new HexColor("#FFFFFF"))
                    .setAlign(HorizontalAlignment.LEFT)
                    .setVerticalAlign(VerticalAlignment.TOP).setX(100).setY(70).setFloating(Boolean.TRUE).setShadow(Boolean.TRUE));
       
        options.setTooltip(
                new Tooltip().setFormatter(new Function().setFunction(" return ''+ this.x +': '+ this.y;")));
       
        options.setPlotOptions(
                new PlotOptionsChoice()
                    .setColumn(new PlotOptions().setPointPadding(0.2f).setBorderWidth(0)));
       
View Full Code Here

Examples of com.gwtext.client.widgets.ToolTip

    link2.addRightButtonListener( new MainLinkRightButtonListener() );
    panel.add( link2 );

    panel.add( new HTML( " (" + attachment.getSizeText() + ") " ) );
    if ( attachment.isPreview() ) {
      ToolTip tip = new ToolTip();
      String url = ServiceProvider.getRetrieveImageServletUrl( attachment.getMessageId(), attachment.getIndex(),
          true );
      tip.setHtml( "<img src=\"" + url + "\"/>" );
      tip.setWidth( 300 );
      tip.setHeight( 200 );
      tip.applyTo( this.getElement() );
    }
    ImageHyperlink downloadLink = new ImageHyperlink( new Image( GWT.getHostPageBaseURL()
        + ImageProvider.MSG_DOWNLOAD ) );
    downloadLink.addLeftButtonListener( new DownloadLeftButtonListener() );
    panel.add( downloadLink );
View Full Code Here

Examples of com.invient.vaadin.charts.InvientChartsConfig.Tooltip

        LinkedHashSet<YAxis> yAxesSet = new LinkedHashSet<InvientChartsConfig.YAxis>();
        yAxesSet.add(yAxis);
        chartConfig.setYAxes(yAxesSet);

        Tooltip tooltip = new Tooltip();
        tooltip.setFormatterJsFunc("function() {"
                + " return '<b>'+ this.series.name +', age '+ this.point.category +'</b><br/>' + "
                + " 'Population: '+ Highcharts.numberFormat(Math.abs(this.point.y), 0); "
                + "}");

        SeriesConfig series = new SeriesConfig();
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.tips.ToolTip

      config.setAutoHide(false);
      config.setMouseOffsetX(0);
      config.setMouseOffsetY(0);
      config.setAnchor(Side.LEFT);
      config.setTitleHtml(getMessages().errorTipTitleText());
      tooltip = new ToolTip(toolTipAlignWidget, config);
      tooltip.setMaxWidth(600);
    }
    ToolTipConfig config = tooltip.getToolTipConfig();
    config.setBodyHtml(msg);
    tooltip.update(config);
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.tips.ToolTip

      ToolTipConfig config = new ToolTipConfig();
      config.setAutoHide(false);
      config.setMouseOffsetX(0);
      config.setMouseOffsetY(0);
      config.setAnchor(Side.LEFT);
      tooltip = new ToolTip(f, config);
      tooltip.setMaxWidth(600);
    }

    tooltip.initTarget(f);
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.tips.ToolTip

      Element p = target.getElement().getParentElement();
      p.appendChild(errorIcon.getElement());
    }

    if (tip == null) {
      tip = new ToolTip(errorIcon, GWT.<SideErrorTooltipAppearance> create(SideErrorTooltipAppearance.class));
    }

    if (!errorIcon.isAttached()) {
      ComponentHelper.doAttach(errorIcon);
    }
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.tips.ToolTip

   *
   * @return the tool tip
   */
  public ToolTip getToolTip() {
    if (toolTip == null && toolTipConfig != null) {
      toolTip = new ToolTip(this, toolTipConfig);
    }
    return toolTip;
  }
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.