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);
}
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;
}
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;
}
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);
}
};
}
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());
}
Aggregations