Search in sources :

Example 1 with InlineHTML

use of com.google.gwt.user.client.ui.InlineHTML in project gerrit by GerritCodeReview.

the class HighlightingProjectsTable method populate.

@Override
protected void populate(final int row, final ProjectInfo k) {
    table.setWidget(row, 1, new InlineHTML(Util.highlight(k.name(), toHighlight)));
    table.setText(row, 2, k.description());
    setRowItem(row, k);
}
Also used : InlineHTML(com.google.gwt.user.client.ui.InlineHTML)

Example 2 with InlineHTML

use of com.google.gwt.user.client.ui.InlineHTML in project cuba by cuba-platform.

the class CubaClickableTextRenderer method createWidget.

@Override
public InlineHTML createWidget() {
    InlineHTML inlineHTML = GWT.create(InlineHTML.class);
    inlineHTML.addClickHandler(this);
    inlineHTML.setStyleName("v-link");
    return inlineHTML;
}
Also used : InlineHTML(com.google.gwt.user.client.ui.InlineHTML)

Example 3 with InlineHTML

use of com.google.gwt.user.client.ui.InlineHTML in project cuba by cuba-platform.

the class CubaClickableTextRenderer method createWidget.

@Override
public InlineHTML createWidget() {
    InlineHTML inlineHTML = GWT.create(InlineHTML.class);
    inlineHTML.addClickHandler(this);
    inlineHTML.setStyleName("v-link");
    return inlineHTML;
}
Also used : InlineHTML(com.google.gwt.user.client.ui.InlineHTML)

Example 4 with InlineHTML

use of com.google.gwt.user.client.ui.InlineHTML in project libgdx by libgdx.

the class GwtApplication method getPreloaderCallback.

public PreloaderCallback getPreloaderCallback() {
    final Panel preloaderPanel = new VerticalPanel();
    preloaderPanel.setStyleName("gdx-preloader");
    final Image logo = new Image(GWT.getModuleBaseURL() + "logo.png");
    logo.setStyleName("logo");
    preloaderPanel.add(logo);
    final Panel meterPanel = new SimplePanel();
    meterPanel.setStyleName("gdx-meter");
    meterPanel.addStyleName("red");
    final InlineHTML meter = new InlineHTML();
    final Style meterStyle = meter.getElement().getStyle();
    meterStyle.setWidth(0, Unit.PCT);
    meterPanel.add(meter);
    preloaderPanel.add(meterPanel);
    getRootPanel().add(preloaderPanel);
    return new PreloaderCallback() {

        @Override
        public void error(String file) {
            System.out.println("error: " + file);
        }

        @Override
        public void update(PreloaderState state) {
            meterStyle.setWidth(100f * state.getProgress(), Unit.PCT);
        }
    };
}
Also used : PreloaderCallback(com.badlogic.gdx.backends.gwt.preloader.Preloader.PreloaderCallback) VerticalPanel(com.google.gwt.user.client.ui.VerticalPanel) Panel(com.google.gwt.user.client.ui.Panel) SimplePanel(com.google.gwt.user.client.ui.SimplePanel) RootPanel(com.google.gwt.user.client.ui.RootPanel) PreloaderState(com.badlogic.gdx.backends.gwt.preloader.Preloader.PreloaderState) VerticalPanel(com.google.gwt.user.client.ui.VerticalPanel) InlineHTML(com.google.gwt.user.client.ui.InlineHTML) SimplePanel(com.google.gwt.user.client.ui.SimplePanel) Style(com.google.gwt.dom.client.Style) Image(com.google.gwt.user.client.ui.Image)

Example 5 with InlineHTML

use of com.google.gwt.user.client.ui.InlineHTML in project gerrit by GerritCodeReview.

the class Unified method setLineNumber.

private void setLineNumber(DisplaySide side, int cmLine, Integer line, String styleName) {
    SafeHtml html = SafeHtml.asis(line != null ? line.toString() : " ");
    InlineHTML gutter = new InlineHTML(html);
    diffTable.add(gutter);
    gutter.setStyleName(styleName);
    cm.setGutterMarker(cmLine, side == DisplaySide.A ? UnifiedTable.style.lineNumbersLeft() : UnifiedTable.style.lineNumbersRight(), gutter.getElement());
}
Also used : SafeHtml(com.google.gwtexpui.safehtml.client.SafeHtml) InlineHTML(com.google.gwt.user.client.ui.InlineHTML)

Aggregations

InlineHTML (com.google.gwt.user.client.ui.InlineHTML)7 Anchor (com.google.gwt.user.client.ui.Anchor)2 PreloaderCallback (com.badlogic.gdx.backends.gwt.preloader.Preloader.PreloaderCallback)1 PreloaderState (com.badlogic.gdx.backends.gwt.preloader.Preloader.PreloaderState)1 Style (com.google.gwt.dom.client.Style)1 ClickEvent (com.google.gwt.event.dom.client.ClickEvent)1 ClickHandler (com.google.gwt.event.dom.client.ClickHandler)1 Image (com.google.gwt.user.client.ui.Image)1 InlineLabel (com.google.gwt.user.client.ui.InlineLabel)1 Panel (com.google.gwt.user.client.ui.Panel)1 RootPanel (com.google.gwt.user.client.ui.RootPanel)1 SimplePanel (com.google.gwt.user.client.ui.SimplePanel)1 VerticalPanel (com.google.gwt.user.client.ui.VerticalPanel)1 SafeHtml (com.google.gwtexpui.safehtml.client.SafeHtml)1 Map (java.util.Map)1 TreeMap (java.util.TreeMap)1