Search in sources :

Example 1 with PreferencesBox

use of com.google.gerrit.client.diff.PreferencesBox in project gerrit by GerritCodeReview.

the class MyDiffPreferencesScreen method onInitUI.

@Override
protected void onInitUI() {
    super.onInitUI();
    PreferencesBox pb = new PreferencesBox(null);
    pb.set(DiffPreferences.create(Gerrit.getDiffPreferences()));
    FlowPanel p = new FlowPanel();
    p.setStyleName(pb.getStyle().dialog());
    p.add(pb);
    add(p);
}
Also used : FlowPanel(com.google.gwt.user.client.ui.FlowPanel) PreferencesBox(com.google.gerrit.client.diff.PreferencesBox)

Aggregations

PreferencesBox (com.google.gerrit.client.diff.PreferencesBox)1 FlowPanel (com.google.gwt.user.client.ui.FlowPanel)1