implemented Locomotive and Train management

This commit is contained in:
Stephan Richter
2020-09-22 10:27:13 +02:00
parent 064c4ff594
commit 29888379c6
14 changed files with 254 additions and 42 deletions

View File

@@ -39,7 +39,7 @@ public abstract class StretchableTile extends Tile {
Tag label = new Tag("label").content(t("length:"));
new Tag("input").attr("type", "number").attr("name","length").attr("value", length).addTo(label);
label.addTo(form);
label.addTo(new Tag("p")).addTo(form);
return form;
}
@@ -57,7 +57,7 @@ public abstract class StretchableTile extends Tile {
}
@Override
public Tile update(HashMap<String, String> params) {
public Tile update(HashMap<String, String> params) throws IOException {
super.update(params);
for (Entry<String, String> entry : params.entrySet()) {
switch (entry.getKey()) {