updated loading icon style
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/news-feed@114695 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
4a5940089e
commit
16142838e4
|
@ -10,7 +10,7 @@
|
|||
<dependent-module archiveName="workspace-light-tree-2.13.1-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/workspace-light-tree/workspace-light-tree">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="wsmail-widget-1.7.3-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/wsmail-widget/wsmail-widget">
|
||||
<dependent-module archiveName="wsmail-widget-1.8.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/wsmail-widget/wsmail-widget">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="gcube-widgets-1.9.1-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/gcube-widgets/gcube-widgets">
|
||||
|
|
|
@ -38,6 +38,7 @@ import org.gcube.portlets.user.newsfeed.client.event.ShowNewUpdatesEventHandler;
|
|||
import org.gcube.portlets.user.newsfeed.client.event.UnLikeEvent;
|
||||
import org.gcube.portlets.user.newsfeed.client.event.UnLikeEventHandler;
|
||||
import org.gcube.portlets.user.newsfeed.client.ui.FilterPanel;
|
||||
import org.gcube.portlets.user.newsfeed.client.ui.LoadingText;
|
||||
import org.gcube.portlets.user.newsfeed.client.ui.NewFeedsAvailable;
|
||||
import org.gcube.portlets.user.newsfeed.client.ui.ResultsFor;
|
||||
import org.gcube.portlets.user.newsfeed.client.ui.ShowMoreFeeds;
|
||||
|
@ -121,7 +122,7 @@ public class NewsFeedPanel extends Composite {
|
|||
|
||||
private boolean isFirstTweet = false;
|
||||
|
||||
|
||||
private LoadingText loadingIcon = new LoadingText();
|
||||
private Image loadingImage;
|
||||
private UserInfo myUserInfo;
|
||||
private FilterType currentFilter;
|
||||
|
@ -248,7 +249,7 @@ public class NewsFeedPanel extends Composite {
|
|||
newsPanel.setHorizontalAlignment(HasAlignment.ALIGN_CENTER);
|
||||
newsPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP);
|
||||
loadingImage = new Image(loading);
|
||||
newsPanel.add(loadingImage);
|
||||
newsPanel.add(loadingIcon);
|
||||
|
||||
CheckSession.getInstance().startPolling();
|
||||
|
||||
|
@ -650,7 +651,7 @@ public class NewsFeedPanel extends Composite {
|
|||
protected void doShowMoreUpdates() {
|
||||
showMoreUpdatesPanel.remove(0);
|
||||
loadingImage.getElement().getStyle().setMargin(10, Unit.PX);
|
||||
showMoreUpdatesPanel.add(loadingImage);
|
||||
showMoreUpdatesPanel.add(loadingIcon);
|
||||
int from = (fromStartingPoint == null) ? allUpdates.size()+1 : fromStartingPoint;
|
||||
|
||||
final int quantity = 10;
|
||||
|
@ -836,7 +837,7 @@ public class NewsFeedPanel extends Composite {
|
|||
newsPanel.setHeight("300px");
|
||||
newsPanel.setHorizontalAlignment(HasAlignment.ALIGN_CENTER);
|
||||
newsPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
|
||||
newsPanel.add(loadingImage);
|
||||
newsPanel.add(loadingIcon);
|
||||
}
|
||||
|
||||
private void showProblems() {
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
package org.gcube.portlets.user.newsfeed.client.ui;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
import com.google.gwt.user.client.ui.Composite;
|
||||
import com.google.gwt.user.client.ui.Widget;
|
||||
|
||||
public class LoadingText extends Composite {
|
||||
|
||||
private static LoadingTextUiBinder uiBinder = GWT
|
||||
.create(LoadingTextUiBinder.class);
|
||||
|
||||
interface LoadingTextUiBinder extends UiBinder<Widget, LoadingText> {
|
||||
}
|
||||
|
||||
public LoadingText() {
|
||||
initWidget(uiBinder.createAndBindUi(this));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
<!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" xmlns:b="urn:import:com.github.gwtbootstrap.client.ui">
|
||||
<g:VerticalPanel horizontalAlignment="CENTER" width="100%">
|
||||
<b:Icon type="GEAR" size="FOUR_TIMES" spin="true" />
|
||||
<b:Caption>
|
||||
<b:Heading size="4">Please wait</b:Heading>
|
||||
<b:Paragraph>
|
||||
Contacting infrastructure services ...
|
||||
</b:Paragraph>
|
||||
</b:Caption>
|
||||
</g:VerticalPanel>
|
||||
</ui:UiBinder>
|
|
@ -4,7 +4,7 @@
|
|||
<inherits name='com.google.gwt.user.User' />
|
||||
|
||||
<!-- To Comment out -->
|
||||
<!-- <set-property name="user.agent" value="safari,gecko1_8" /> -->
|
||||
<set-property name="user.agent" value="safari,gecko1_8" />
|
||||
|
||||
<!-- Other module inherits -->
|
||||
<inherits name="net.eliasbalasis.tibcopagebus4gwt.tibcopagebus4gwt" />
|
||||
|
|
Loading…
Reference in New Issue