[PATCH 2 of 3] Cosmetics
Wald Commits
scm-commit at wald.intevation.org
Tue Jul 30 16:20:34 CEST 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1375192594 -7200
# Node ID e1ec4d4f53c669bc6a98f94e2f2f0039001de842
# Parent 0f0f09badd29b4881f040945b3fc6ec80aa4d131
Cosmetics.
diff -r 0f0f09badd29 -r e1ec4d4f53c6 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/minfo/SedLoadOffEpochPanel.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/minfo/SedLoadOffEpochPanel.java Tue Jul 30 07:35:57 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/minfo/SedLoadOffEpochPanel.java Tue Jul 30 15:56:34 2013 +0200
@@ -38,7 +38,7 @@
import org.dive4elements.river.client.shared.model.SedimentLoadInfoObject;
import org.dive4elements.river.client.shared.model.SedimentLoadInfoRecord;
-
+/** Show input to select an official epoch. */
public class SedLoadOffEpochPanel
extends PeriodPanel
{
@@ -47,6 +47,7 @@
private ListGrid sedLoadTable;
+ /** Creates layout with title. */
public Canvas createWidget(DataList data) {
VLayout root = new VLayout();
@@ -104,6 +105,7 @@
return layout;
}
+ /** Creates the helper grid in which off epochs can be selected. */
protected Canvas createHelper() {
sedLoadTable = new ListGrid();
sedLoadTable.setShowHeaderContextMenu(false);
@@ -154,8 +156,8 @@
}
protected void fetchSedimentLoadData() {
- Config config = Config.getInstance();
- String locale = config.getLocale ();
+ Config config = Config.getInstance();
+ String locale = config.getLocale ();
ArtifactDescription adescr = artifact.getArtifactDescription();
DataList[] data = adescr.getOldData();
@@ -166,13 +168,13 @@
sedLoadInfoService.getSedimentLoadInfo(locale, river, "epoch", km[0], km[1],
new AsyncCallback<SedimentLoadInfoObject[]>() {
public void onFailure(Throwable caught) {
- GWT.log("Could not recieve sediment load informations.");
+ GWT.log("Could not receive sediment load informations.");
SC.warn(caught.getMessage());
}
public void onSuccess(SedimentLoadInfoObject[] sedLoad) {
int num = sedLoad != null ? sedLoad.length :0;
- GWT.log("Recieved " + num + " sediment load informations.");
+ GWT.log("Received " + num + " sediment load informations.");
if (num == 0) {
return;
@@ -191,5 +193,5 @@
sedLoadTable.addData(rec);
}
}
-
}
+// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
More information about the Dive4elements-commits
mailing list