use of com.google.gwt.user.client.ui.InlineLabel in project gerrit by GerritCodeReview.
the class Screen method onInitUI.
protected void onInitUI() {
final FlowPanel me = (FlowPanel) getWidget();
me.add(header = new Grid(1, Cols.values().length));
me.add(body);
headerText = new InlineLabel();
if (titleWidget == null) {
titleWidget = headerText;
}
FlowPanel title = new FlowPanel();
title.add(titleWidget);
title.setStyleName(Gerrit.RESOURCES.css().screenHeader());
header.setWidget(0, Cols.Title.ordinal(), title);
header.setStyleName(Gerrit.RESOURCES.css().screenHeader());
header.getCellFormatter().setHorizontalAlignment(0, Cols.FarEast.ordinal(), HasHorizontalAlignment.ALIGN_RIGHT);
// force FarEast all the way to the right
header.getCellFormatter().setWidth(0, Cols.FarEast.ordinal(), "100%");
}
use of com.google.gwt.user.client.ui.InlineLabel in project gerrit by GerritCodeReview.
the class Gerrit method populateBottomMenu.
private static void populateBottomMenu(RootPanel btmmenu, HostPageData hpd) {
String vs = hpd.version;
if (vs == null || vs.isEmpty()) {
vs = "dev";
}
btmmenu.add(new InlineHTML(M.poweredBy(vs)));
if (info().gerrit().webUis().contains(UiType.POLYGERRIT)) {
btmmenu.add(new InlineLabel(" | "));
uiSwitcherLink = new Anchor(C.newUi(), getUiSwitcherUrl(History.getToken()));
uiSwitcherLink.setStyleName("");
btmmenu.add(uiSwitcherLink);
}
String reportBugUrl = info().gerrit().reportBugUrl();
if (reportBugUrl != null) {
String reportBugText = info().gerrit().reportBugText();
Anchor a = new Anchor(reportBugText == null ? C.reportBug() : reportBugText, reportBugUrl);
a.setTarget("_blank");
a.setStyleName("");
btmmenu.add(new InlineLabel(" | "));
btmmenu.add(a);
}
btmmenu.add(new InlineLabel(" | "));
btmmenu.add(new InlineLabel(C.keyHelp()));
}
use of com.google.gwt.user.client.ui.InlineLabel in project gerrit by GerritCodeReview.
the class NewAgreementScreen method onInitUI.
@Override
protected void onInitUI() {
super.onInitUI();
setPageTitle(Util.C.newAgreement());
final FlowPanel formBody = new FlowPanel();
radios = new VerticalPanel();
formBody.add(radios);
agreementGroup = new FlowPanel();
agreementGroup.add(new SmallHeading(Util.C.newAgreementReviewLegalHeading()));
agreementHtml = new HTML();
agreementHtml.setStyleName(Gerrit.RESOURCES.css().contributorAgreementLegal());
agreementGroup.add(agreementHtml);
formBody.add(agreementGroup);
finalGroup = new VerticalPanel();
finalGroup.add(new SmallHeading(Util.C.newAgreementCompleteHeading()));
final FlowPanel fp = new FlowPanel();
yesIAgreeBox = new NpTextBox();
yesIAgreeBox.setVisibleLength(Util.C.newAgreementIAGREE().length() + 8);
yesIAgreeBox.setMaxLength(Util.C.newAgreementIAGREE().length());
fp.add(yesIAgreeBox);
fp.add(new InlineLabel(Util.M.enterIAGREE(Util.C.newAgreementIAGREE())));
finalGroup.add(fp);
submit = new Button(Util.C.buttonSubmitNewAgreement());
submit.addClickHandler(new ClickHandler() {
@Override
public void onClick(final ClickEvent event) {
doSign();
}
});
finalGroup.add(submit);
formBody.add(finalGroup);
new OnEditEnabler(submit, yesIAgreeBox);
final FormPanel form = new FormPanel();
form.add(formBody);
add(form);
}
use of com.google.gwt.user.client.ui.InlineLabel in project gerrit by GerritCodeReview.
the class RelatedChangesTab method setError.
void setError(String message) {
panel.setWidget(new InlineLabel(message));
view = null;
project = null;
}
use of com.google.gwt.user.client.ui.InlineLabel in project openremote by openremote.
the class FormMessages method appendMessage.
public void appendMessage(Form form, String message) {
if (getParent() == null)
insertInto(form);
panel.add(new InlineLabel(message));
panel.getElement().appendChild(Document.get().createBRElement());
setVisible(true);
}
Aggregations