Java 类com.google.gwt.user.client.ui.InlineHTML 实例源码
项目:che
文件:ChoiceDialogPresenter.java
@AssistedInject
public ChoiceDialogPresenter(
final @NotNull ChoiceDialogView view,
final @NotNull @Assisted("title") String title,
final @NotNull @Assisted("message") String message,
final @NotNull @Assisted("firstChoice") String firstChoiceLabel,
final @NotNull @Assisted("secondChoice") String secondChoiceLabel,
final @Nullable @Assisted("firstCallback") ConfirmCallback firstChoiceCallback,
final @Nullable @Assisted("secondCallback") ConfirmCallback secondChoiceCallback) {
this(
view,
title,
new InlineHTML(message),
firstChoiceLabel,
secondChoiceLabel,
"",
firstChoiceCallback,
secondChoiceCallback,
null);
}
项目:che
文件:ChoiceDialogPresenter.java
@AssistedInject
public ChoiceDialogPresenter(
final @NotNull ChoiceDialogView view,
final @NotNull @Assisted("title") String title,
final @NotNull @Assisted("message") String message,
final @NotNull @Assisted("firstChoice") String firstChoiceLabel,
final @NotNull @Assisted("secondChoice") String secondChoiceLabel,
final @NotNull @Assisted("thirdChoice") String thirdChoiceLabel,
final @Nullable @Assisted("firstCallback") ConfirmCallback firstChoiceCallback,
final @Nullable @Assisted("secondCallback") ConfirmCallback secondChoiceCallback,
final @Nullable @Assisted("thirdCallback") ConfirmCallback thirdChoiceCallback) {
this(
view,
title,
new InlineHTML(message),
firstChoiceLabel,
secondChoiceLabel,
thirdChoiceLabel,
firstChoiceCallback,
secondChoiceCallback,
thirdChoiceCallback);
}
项目:che
文件:GitHubAuthenticatorViewImpl.java
@Inject
public GitHubAuthenticatorViewImpl(
DialogFactory dialogFactory,
GitHubLocalizationConstant locale,
ProductInfoDataProvider productInfoDataProvider) {
this.dialogFactory = dialogFactory;
this.locale = locale;
isGenerateKeys = new CheckBox(locale.authGenerateKeyLabel());
isGenerateKeys.setValue(true);
contentPanel = new DockLayoutPanel(Style.Unit.PX);
contentPanel.addNorth(
new InlineHTML(locale.authorizationDialogText(productInfoDataProvider.getName())), 20);
contentPanel.addNorth(isGenerateKeys, 20);
}
项目:ineform
文件:FullscreenStatusIndicator.java
private Widget getErrorWidget(String errorMsg) {
final FlowPanel fp = new FlowPanel();
Button confirmButton = new Button(IneFrameI18n.OK());
confirmButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
fp.removeFromParent();
unconfirmedErrorCount--;
updateVisiblityStates();
}
});
fp.add(new InlineHTML("<h2>" + errorMsg + "</h2>"));
fp.add(confirmButton);
return fp;
}
项目:ineform
文件:OOO_HOField.java
public OOO_HOField(IneDateGWT date, DateTimeFieldParentInterface parent) {
this.PRECISION = Precision.OOO_HO;
this.inedate = date;
this.parent = parent;
lb.addItem("-");
for (int i = 0; i < 24; i++) {
if (i < 10)
lb.addItem("0" + i);
else
lb.addItem("" + i);
}
add(lb);
add(new InlineHTML(" " + IneFormI18n.hours()));
lb.setSelectedIndex(0);
}
项目:ineform
文件:OOO_OMField.java
public OOO_OMField(IneDateGWT date, DateTimeFieldParentInterface parent) {
this.PRECISION = Precision.OOO_OM;
this.inedate = date;
this.parent = parent;
lb.addItem("-");
for (int i = 0; i < 60; i++) {
if (i < 10)
lb.addItem("0" + i);
else
lb.addItem("" + i);
}
add(lb);
add(new InlineHTML(" " + IneFormI18n.minutes()));
}
项目:encfsanywhere
文件:ListViewImpl.java
private void updateFiles(String[] content, Boolean[] isDirectory) {
while (files.getRowCount() > 0) {
files.removeRow(0);
}
for (int i = 0; i < content.length; i++) {
String filename = content[i];
Element icon = DOM.createElement("i");
if (isDirectory[i]) {
icon.setAttribute("class", "icon-folder-open");
} else {
icon.setAttribute("class", "icon-file");
}
InlineHTML html = new InlineHTML();
html.getElement().appendChild(icon);
files.setWidget(i, 0, html);
files.setText(i, 1, filename);
}
}
项目:encfsanywhere
文件:ListViewImpl.java
@Override
public void showDownloads(String[] paths, String[] progress) {
while (downloads.getRowCount() > 0) {
downloads.removeRow(0);
}
for (int i = 0; i < paths.length; i++) {
String filename = paths[i];
Element icon = DOM.createElement("i");
icon.setAttribute("class", "icon-file");
InlineHTML html = new InlineHTML();
html.getElement().appendChild(icon);
downloads.setWidget(i, 0, html);
downloads.setText(i, 1, filename);
downloads.setText(i, 2, progress[i]);
}
}
项目:empiria.player
文件:InlineChoiceMathGapModule.java
protected void setListBoxEmptyOption() {
if (hasEmptyOption) {
Widget emptyOptionInBody = new InlineHTML(GapBase.INLINE_HTML_NBSP);
emptyOptionInBody.setStyleName(styleNames.QP_MATH_CHOICE_POPUP_OPTION_EMPTY());
Widget emptyOptionInPopup = new InlineHTML(GapBase.INLINE_HTML_NBSP);
emptyOptionInPopup.setStyleName(styleNames.QP_MATH_CHOICE_POPUP_OPTION_EMPTY());
getListBox().addOption(emptyOptionInBody, emptyOptionInPopup);
getListBox().setSelectedIndex(0);
} else {
getListBox().setSelectedIndex(-1);
}
}
项目:vaadin-clickabletextrenderer-v8
文件:VClickableTextRendererAdv.java
@Override
public void render(RendererCellReference cell, ClickableText data, InlineHTML inlineHTML) {
if (data.isHTML) {
inlineHTML.setHTML(data.value);
} else {
inlineHTML.setText(data.value);
}
if (data.description != null) {
inlineHTML.setTitle(data.description);
}
}
项目:vaadin-clickabletextrenderer-v8
文件:AbstractClickableTextRenderer.java
@Override
public InlineHTML createWidget() {
InlineHTML a = GWT.create(InlineHTML.class);
a.addClickHandler(this);
a.setStylePrimaryName("v-link");
return a;
}
项目:unitimes
文件:CurriculumEdit.java
Check(boolean value, String onMessage, String offMessage) {
Image image = new Image(value ? RESOURCES.on() : RESOURCES.off());
image.addStyleName("image");
add(image);
InlineHTML text = new InlineHTML(value ? onMessage : offMessage);
text.addStyleName("message");
add(text);
if (value)
addStyleName("check-enabled");
else
addStyleName("check-disabled");
}
项目:unitimes
文件:RoomDetail.java
Check(boolean value, String onMessage, String offMessage) {
Image image = new Image(value ? RESOURCES.on() : RESOURCES.off());
image.addStyleName("image");
add(image);
InlineHTML text = new InlineHTML(value ? onMessage : offMessage);
text.addStyleName("message");
add(text);
if (value)
addStyleName("check-enabled");
else
addStyleName("check-disabled");
}
项目:appinventor-extensions
文件:MockLabel.java
/**
* Creates a new MockLabel component.
*
* @param editor editor of source file the component belongs to
*/
public MockLabel(SimpleEditor editor) {
super(editor, TYPE, images.label());
// Initialize mock label UI
labelWidget = new InlineHTML();
labelWidget.setStylePrimaryName("ode-SimpleMockComponent");
initComponent(labelWidget);
}
项目:cuba
文件:CubaClickableTextRenderer.java
@Override
public InlineHTML createWidget() {
InlineHTML inlineHTML = GWT.create(InlineHTML.class);
inlineHTML.addClickHandler(this);
inlineHTML.setStyleName("v-link");
return inlineHTML;
}
项目:che
文件:ProcessWidget.java
private Label createMachineNameLabel(Process process) {
final Label label = new InlineHTML(process.getMachineName() + ": ");
label.addStyleName(RESOURCES.commandToolbarCss().processWidgetText());
label.addStyleName(RESOURCES.commandToolbarCss().processWidgetMachineNameLabel());
label.ensureDebugId("dropdown-processes-machine-name");
Tooltip.create(
(Element) label.getElement(), BOTTOM, MIDDLE, process.getCommandLine().split("\\n"));
return label;
}
项目:che
文件:ProcessWidget.java
private Label createCommandNameLabel(Process process) {
final Label label = new InlineHTML(process.getName());
label.addStyleName(RESOURCES.commandToolbarCss().processWidgetText());
label.addStyleName(RESOURCES.commandToolbarCss().processWidgetCommandNameLabel());
label.ensureDebugId("dropdown-processes-command-name");
Tooltip.create(
(Element) label.getElement(), BOTTOM, MIDDLE, process.getCommandLine().split("\\n"));
return label;
}
项目:che
文件:EmptyListWidget.java
@Inject
EmptyListWidget(CommandResources resources) {
addStyleName(resources.commandToolbarCss().processWidgetText());
final Label commandNameLabel = new InlineHTML("Ready");
commandNameLabel.addStyleName(resources.commandToolbarCss().processWidgetCommandNameLabel());
final Label machineNameLabel = new InlineHTML(" - start command");
machineNameLabel.addStyleName(resources.commandToolbarCss().processWidgetMachineNameLabel());
add(commandNameLabel);
add(machineNameLabel);
}
项目:che
文件:MessageDialogPresenter.java
@AssistedInject
public MessageDialogPresenter(
@NotNull MessageDialogView view,
@NotNull @Assisted("title") String title,
@NotNull @Assisted("message") String message,
@Nullable @Assisted ConfirmCallback confirmCallback) {
this(view, title, new InlineHTML(message), confirmCallback);
}
项目:che
文件:ConfirmDialogPresenter.java
@AssistedInject
public ConfirmDialogPresenter(
final @NotNull ConfirmDialogView view,
final @NotNull @Assisted("title") String title,
final @NotNull @Assisted("message") String message,
final @Nullable @Assisted ConfirmCallback confirmCallback,
final @Nullable @Assisted CancelCallback cancelCallback) {
this(view, title, new InlineHTML(message), confirmCallback, cancelCallback);
}
项目:che
文件:ConfirmDialogPresenter.java
@AssistedInject
public ConfirmDialogPresenter(
final @NotNull ConfirmDialogView view,
final @NotNull @Assisted("title") String title,
final @NotNull @Assisted("message") String message,
final @Nullable @Assisted("okButtonLabel") String okButtonLabel,
final @Nullable @Assisted("cancelButtonLabel") String cancelButtonLabel,
final @Nullable @Assisted ConfirmCallback confirmCallback,
final @Nullable @Assisted CancelCallback cancelCallback) {
this(view, title, new InlineHTML(message), confirmCallback, cancelCallback);
view.setOkButtonLabel(okButtonLabel);
view.setCancelButtonLabel(cancelButtonLabel);
}
项目:gerrit
文件:ProjectTagsScreen.java
void populate(int row, TagInfo k) {
if (k.canDelete()) {
CheckBox sel = new CheckBox();
sel.addValueChangeHandler(updateDeleteHandler);
table.setWidget(row, 1, sel);
canDelete = true;
} else {
table.setText(row, 1, "");
}
table.setWidget(row, 2, new InlineHTML(highlight(k.getShortName(), match)));
if (k.revision() != null) {
table.setText(row, 3, k.revision());
} else {
table.setText(row, 3, "");
}
FlowPanel actionsPanel = new FlowPanel();
if (k.webLinks() != null) {
for (WebLinkInfo webLink : Natives.asList(k.webLinks())) {
actionsPanel.add(webLink.toAnchor());
}
}
table.setWidget(row, 4, actionsPanel);
FlexCellFormatter fmt = table.getFlexCellFormatter();
String iconCellStyle = Gerrit.RESOURCES.css().iconCell();
String dataCellStyle = Gerrit.RESOURCES.css().dataCell();
fmt.addStyleName(row, 1, iconCellStyle);
fmt.addStyleName(row, 2, dataCellStyle);
fmt.addStyleName(row, 3, dataCellStyle);
fmt.addStyleName(row, 4, dataCellStyle);
setRowItem(row, k);
}
项目:gerrit
文件:Unified.java
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());
}
项目:gerrit
文件:HighlightingProjectsTable.java
@Override
protected void populate(int row, ProjectInfo k) {
populateState(row, k);
table.setWidget(
row, ProjectsTable.C_NAME, new InlineHTML(Util.highlight(k.name(), toHighlight)));
table.setText(row, ProjectsTable.C_DESCRIPTION, k.description());
setRowItem(row, k);
}
项目:gerrit
文件:Gerrit.java
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()));
}
项目:unitime
文件:CurriculumEdit.java
Check(boolean value, String onMessage, String offMessage) {
Image image = new Image(value ? RESOURCES.on() : RESOURCES.off());
image.addStyleName("image");
add(image);
InlineHTML text = new InlineHTML(value ? onMessage : offMessage);
text.addStyleName("message");
add(text);
if (value)
addStyleName("check-enabled");
else
addStyleName("check-disabled");
}
项目:unitime
文件:RoomDetail.java
Check(boolean value, String onMessage, String offMessage) {
Image image = new Image(value ? RESOURCES.on() : RESOURCES.off());
image.addStyleName("image");
add(image);
InlineHTML text = new InlineHTML(value ? onMessage : offMessage);
text.addStyleName("message");
add(text);
if (value)
addStyleName("check-enabled");
else
addStyleName("check-disabled");
}
项目:libgdxcn
文件:GwtApplication.java
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);
}
};
}
项目:sigmah
文件:OfflineMenuPanel.java
private InlineHTML createHeader(String header, String statusLabel) {
final SafeHtmlBuilder htmlBuilder = new SafeHtmlBuilder()
.appendHtmlConstant("<h1>")
.appendEscaped(header)
.appendHtmlConstant("</h1>");
if(statusLabel != null) {
htmlBuilder
.appendHtmlConstant("<span style=\"margin-left: 2em; font-style: italic\">")
.appendEscaped(statusLabel)
.appendHtmlConstant("</span>");
}
return new InlineHTML(htmlBuilder.toSafeHtml());
}
项目:sigmah
文件:OfflineMenuPanel.java
private InlineHTML createListEntry(String label) {
return new InlineHTML(new SafeHtmlBuilder()
.appendHtmlConstant("<span style=\"margin-left: 2em;\">- ")
.appendEscaped(label)
.appendHtmlConstant("</span>")
.toSafeHtml());
}
项目:sigmah
文件:OfflineMenuPanel.java
private InlineHTML createSeparator(boolean visible) {
final InlineHTML inlineHTML = new InlineHTML(new SafeHtmlBuilder()
.appendHtmlConstant("<hr class=\"" + SEPARATOR_STYLE + "\">")
.toSafeHtml());
if(!visible) {
inlineHTML.getElement().getStyle().setVisibility(Style.Visibility.HIDDEN);
}
return inlineHTML;
}
项目:rva
文件:GridWidget.java
public GridWidget(Command dataCommand, String[][] header, String[][] searchCategories) {
this.dataCommand = dataCommand;
if (searchCategories != null) {
searchTextBox.setStyleName("rdn-TextBoxMedium");
categoryListBox.setStyleName("rdn-ListBoxMedium");
searchLink.addClickHandler(this);
actionMap.put(searchLink, GridInfo.SEARCHACTION + "");
searchGrid.setCellPadding(0);
searchGrid.setCellSpacing(0);
//searchGrid.setStyleName("rdn-Grid");
searchGrid.setWidget(0, 0, searchTextBox);
searchGrid.setWidget(0, 1, new InlineHTML(" "));
searchGrid.setWidget(0, 2, categoryListBox);
searchGrid.setWidget(0, 3, new InlineHTML(" "));
searchGrid.setWidget(0, 4, searchLink);
mainPanel.add(searchGrid);
setSearchCategories(searchCategories);
}
mainPanel.add(usersFlexTable);
mainPanel.add(pagingPanel);
mainPanel.setStyleName("rdn-TableShort");
// style the table
usersFlexTable.setCellSpacing(0);
usersFlexTable.setCellPadding(0);
usersFlexTable.setStyleName("rdn-Grid");
this.header = header;
setHeader();
initWidget(mainPanel);
}
项目:gwtmockito
文件:GwtMockitoTest.java
@Test
public void shouldBeAbleToInstantiateLabels() {
assertNotNull(new Label());
assertNotNull(new HTML());
assertNotNull(new InlineLabel());
assertNotNull(new InlineHTML());
}
项目:empiria.player
文件:InfoModule.java
private void replaceContent(String output) {
InlineHTML html = new InlineHTML(output);
html.setStyleName(styleNames.QP_INFO_TEXT());
contentPanel.clear();
contentPanel.add(html);
}
项目:vaadin-clickabletextrenderer-v8
文件:VClickableTextRenderer.java
@Override
public void render(RendererCellReference cell, String text, InlineHTML inlineHTML) {
inlineHTML.setText(text);
}
项目:vaadin-clickabletextrenderer-v8
文件:AbstractClickableTextRenderer.java
@Override
public abstract void render(RendererCellReference cell, T data, InlineHTML inlineHTML);
项目:cuba
文件:CubaClickableTextRenderer.java
@Override
public void render(RendererCellReference cell, String text, InlineHTML inlineHTML) {
inlineHTML.setText(text);
}
项目:gerrit
文件:SafeHtml.java
/** @return a GWT inline display widget displaying this HTML. */
public Widget toInlineWidget() {
return new InlineHTML(asString());
}
项目:gerrit
文件:ProjectBranchesScreen.java
void populate(int row, BranchInfo k) {
if (k.canDelete()) {
CheckBox sel = new CheckBox();
sel.addValueChangeHandler(updateDeleteHandler);
table.setWidget(row, 1, sel);
canDelete = true;
} else {
table.setText(row, 1, "");
}
table.setWidget(row, 2, new InlineHTML(highlight(k.getShortName(), match)));
if (k.revision() != null) {
if ("HEAD".equals(k.getShortName())) {
setHeadRevision(row, 3, k.revision());
} else {
table.setText(row, 3, k.revision());
}
} else {
table.setText(row, 3, "");
}
FlowPanel actionsPanel = new FlowPanel();
if (k.webLinks() != null) {
for (WebLinkInfo webLink : Natives.asList(k.webLinks())) {
actionsPanel.add(webLink.toAnchor());
}
}
if (k.actions() != null) {
k.actions().copyKeysIntoChildren("id");
for (ActionInfo a : Natives.asList(k.actions().values())) {
actionsPanel.add(new ActionButton(getProjectKey(), k, a));
}
}
table.setWidget(row, 4, actionsPanel);
final FlexCellFormatter fmt = table.getFlexCellFormatter();
String iconCellStyle = Gerrit.RESOURCES.css().iconCell();
String dataCellStyle = Gerrit.RESOURCES.css().dataCell();
if (RefNames.REFS_CONFIG.equals(k.getShortName()) || "HEAD".equals(k.getShortName())) {
iconCellStyle = Gerrit.RESOURCES.css().specialBranchIconCell();
dataCellStyle = Gerrit.RESOURCES.css().specialBranchDataCell();
fmt.setStyleName(row, 0, iconCellStyle);
}
fmt.addStyleName(row, 1, iconCellStyle);
fmt.addStyleName(row, 2, dataCellStyle);
fmt.addStyleName(row, 3, dataCellStyle);
fmt.addStyleName(row, 4, dataCellStyle);
setRowItem(row, k);
}
项目:sigmah
文件:OfflineMenuPanel.java
private Widget createPanel() {
final FlowPanel rootPanel = new FlowPanel();
rootPanel.getElement().setId(MENU_ID);
// Application cache status
// rootPanel.add(createHeader(I18N.CONSTANTS.offlineModeHeader(), I18N.CONSTANTS.offlineModeAvailability()));
sigmahUpdateVariable = createVariable(I18N.CONSTANTS.offlineDatabaseLastCompleteUpdateNever());
// rootPanel.add(sigmahUpdateVariable);
final RatioBar applicationCacheRatioBar = new RatioBar(0.0);
bars.put(ProgressType.APPLICATION_CACHE, applicationCacheRatioBar);
// rootPanel.add(
wrapProgressBar(I18N.CONSTANTS.offlineModeProgress(), applicationCacheRatioBar, ProgressType.APPLICATION_CACHE);
// );
//
// rootPanel.add(createSeparator(true));
// Local database status
rootPanel.add(createHeader(I18N.CONSTANTS.offlineDatabaseHeader(), I18N.CONSTANTS.offlineDatabaseLastCompleteUpdate()));
databaseUpdateVariable = createVariable(I18N.CONSTANTS.offlineDatabaseLastCompleteUpdateNever());
rootPanel.add(databaseUpdateVariable);
final RatioBar localDatabaseRatioBar = new RatioBar(0.0);
bars.put(ProgressType.DATABASE, localDatabaseRatioBar);
rootPanel.add(wrapProgressBar(I18N.CONSTANTS.offlineSynchronizeProgress(), localDatabaseRatioBar, ProgressType.DATABASE));
updateDatabaseAnchor = createActionButton(I18N.CONSTANTS.offlineActionUpdateDatabase());
updateDatabaseAnchor.addStyleName(UPDATE_DATABASE_ACTION_STYLE);
rootPanel.add(updateDatabaseAnchor);
rootPanel.add(createSeparator(false));
// File base status
final InlineHTML offlineFileBaseHeader = createHeader(I18N.CONSTANTS.offlineFileBaseHeader());
rootPanel.add(offlineFileBaseHeader);
final FlowPanel pendingUploadsPanel = new FlowPanel();
pendingUploadsPanel.add(createListEntry(I18N.CONSTANTS.offlineTransfertUploadPending()));
pendingUploadsVariable = createVariable("0");
pendingUploadsPanel.add(pendingUploadsVariable);
rootPanel.add(pendingUploadsPanel);
final RatioBar uploadRatioBar = new RatioBar(0.0);
bars.put(ProgressType.UPLOAD, uploadRatioBar);
rootPanel.add(wrapProgressBar(I18N.CONSTANTS.offlineTransfertUploadProgress(), uploadRatioBar, ProgressType.UPLOAD));
final FlowPanel pendingDownloadsPanel = new FlowPanel();
pendingDownloadsPanel.add(createListEntry(I18N.CONSTANTS.offlineTransfertDownloadPending()));
pendingDownloadsVariable = createVariable("0");
pendingDownloadsPanel.add(pendingDownloadsVariable);
rootPanel.add(pendingDownloadsPanel);
final RatioBar downloadRatioBar = new RatioBar(0.0);
bars.put(ProgressType.DOWNLOAD, downloadRatioBar);
rootPanel.add(wrapProgressBar(I18N.CONSTANTS.offlineTransfertDownloadProgress(), downloadRatioBar, ProgressType.DOWNLOAD));
transferFilesAnchor = createActionButton(I18N.CONSTANTS.offlineActionTransferFiles());
transferFilesAnchor.addStyleName(TRANSFER_FILES_ACTION_STYLE);
rootPanel.add(transferFilesAnchor);
fileBaseWidgets = new Widget[] {offlineFileBaseHeader, pendingUploadsPanel, uploadRatioBar, pendingDownloadsPanel, downloadRatioBar, transferFilesAnchor};
rootPanel.add(createSeparator(true));
// Destroy offline mode button
removeOfflineDataAnchor = createActionButton(I18N.CONSTANTS.offlineActionDestroyLocalData());
removeOfflineDataAnchor.addStyleName(REMOVE_DATABASE_ACTION_STYLE);
rootPanel.add(removeOfflineDataAnchor);
return rootPanel;
}