@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.srsoftware</groupId>
<artifactId>web4rail</artifactId>
<version>0.11.27</version>
<version>0.11.28</version>
<name>Web4Rail</name>
<packaging>jar</packaging>
<description>Java Model Railway Control</description>
@ -55,6 +55,7 @@ FreeStartBlock : Start-Block freigeben
Hardware settings : Hardware-Einstellungen
Height : Höhe
Help : Hilfe
(id: {}, length: {}) : (Id: {}, Länge: {})
if ({})\: : falls ({}):
inverted : invertiert
learn : lernen
@ -41,7 +41,7 @@ public class Car extends BaseClass {
private int id;
private String name;
public int length;
private String stockId = "";
protected String stockId = "";
private Train train;
protected Plan plan;
@ -84,7 +84,9 @@ public class Car extends BaseClass {
Tag list = new Tag("ul");
for (Car car : cars.values()) {
if (!(car instanceof Locomotive)) {
car.link("li").addTo(list);
Tag tag = car.link("li");
if (isSet(car.stockId) && !car.stockId.isEmpty()) tag.content(NBSP+t("(id: {}, length: {})",car.stockId,car.length));
tag.addTo(list);
}
list.addTo(win);
@ -204,7 +204,10 @@ public class Locomotive extends Car implements Constants,Device{
if (car instanceof Locomotive) {
Locomotive loco = (Locomotive) car;
loco.link("li").addTo(list);
Tag tag = loco.link("li");
if (isSet(loco.stockId) && !loco.stockId.isEmpty()) tag.content(NBSP+t("(id: {}, length: {})",loco.stockId,loco.length));