Revert "bug3896 Replaced Placeholder occurrence with BusyView"

This reverts commit 4c9f6a48e4.
This commit is contained in:
Vladislav Chumak committed 2016-09-13 18:03:05 +02:00
1 parent 4c9f6a48e4
commit 6988f32b6e
4 files changed
+60

No files matched your search

@@ -0,0 +1,5 @@
.content {
margin-top: 3em;
font-weight: bold;
vertical-align: center;
}
@@ -0,0 +1,23 @@
package com.sap.sailing.gwt.home.shared.partials.placeholder;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
public class Placeholder extends Composite {
interface PlaceholderUiBinder extends UiBinder<Widget, Placeholder> {
}
private static PlaceholderUiBinder uiBinder = GWT.create(PlaceholderUiBinder.class);
public Placeholder() {
PlaceholderResources.INSTANCE.css().ensureInjected();
initWidget(uiBinder.createAndBindUi(this));
this.setHeight(Window.getClientHeight() + "px");
}
}
@@ -0,0 +1,16 @@
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui">
<ui:with field="i18n" type="com.sap.sailing.gwt.common.client.i18n.TextMessages"/>
<ui:with field="res" type="com.sap.sailing.gwt.common.client.SharedResources" />
<ui:with field="local_res" type="com.sap.sailing.gwt.home.shared.partials.placeholder.PlaceholderResources" />
<g:HTMLPanel>
<div class="{res.mediaCss.grid}">
<div class="{res.mediaCss.columns}">
<div class="{local_res.css.content}">
<span style="margin-right: 10px">Loading...</span>
<img src="images/home/busy_indicator.gif" />
</div>
</div>
</div>
</g:HTMLPanel>
</ui:UiBinder>
@@ -0,0 +1,16 @@
package com.sap.sailing.gwt.home.shared.partials.placeholder;
import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.CssResource;
public interface PlaceholderResources extends ClientBundle {
public static final PlaceholderResources INSTANCE = GWT.create(PlaceholderResources.class);
@Source("InfoPlaceholder.gss")
LocalCss css();
public interface LocalCss extends CssResource {
String content();
}
}