Search in sources :

Example 1 with FancyFlexTableImpl

use of com.google.gerrit.client.ui.FancyFlexTableImpl in project gerrit by GerritCodeReview.

the class PatchSetsBox method render.

private void render(NativeMap<RevisionInfo> map) {
    map.copyKeysIntoChildren("name");
    revisions = map.values();
    RevisionInfo.sortRevisionInfoByNumber(revisions);
    Collections.reverse(Natives.asList(revisions));
    SafeHtmlBuilder sb = new SafeHtmlBuilder();
    header(sb);
    for (int i = 0; i < revisions.length(); i++) {
        revision(sb, i, revisions.get(i));
    }
    GWT.<FancyFlexTableImpl>create(FancyFlexTableImpl.class).resetHtml(table, sb);
}
Also used : SafeHtmlBuilder(com.google.gwtexpui.safehtml.client.SafeHtmlBuilder) FancyFlexTableImpl(com.google.gerrit.client.ui.FancyFlexTableImpl)

Aggregations

FancyFlexTableImpl (com.google.gerrit.client.ui.FancyFlexTableImpl)1 SafeHtmlBuilder (com.google.gwtexpui.safehtml.client.SafeHtmlBuilder)1