Longer reloading time

master
mandlm 2015-12-16 23:11:36 +01:00
parent e233a26104
commit f2c9265d5f
2 changed files with 8 additions and 9 deletions

View File

@ -14,7 +14,8 @@ public class FotoStream implements EntryPoint
{ {
private final CurrentImageURLServiceAsync imageURLService = GWT.create(CurrentImageURLService.class); private final CurrentImageURLServiceAsync imageURLService = GWT.create(CurrentImageURLService.class);
public void onModuleLoad() { public void onModuleLoad()
{
final Image image = new Image(); final Image image = new Image();
image.setVisible(false); image.setVisible(false);
image.addLoadHandler(new LoadHandler() image.addLoadHandler(new LoadHandler()
@ -56,7 +57,7 @@ public class FotoStream implements EntryPoint
} }
}; };
imageReloadTimer.scheduleRepeating(2000); imageReloadTimer.scheduleRepeating(5000);
RootPanel.get("imageContainer").add(image); RootPanel.get("imageContainer").add(image);
} }

View File

@ -1,8 +1,6 @@
/** Add css rules here for your application. */
body {
background-color: black;
}
div
{
padding: 20px;
background-color: black;
}