Link samples table to GUI events

This commit is contained in:
2018-09-11 11:57:51 +02:00
parent 014116ba6f
commit 0cf9904929
3 changed files with 43 additions and 15 deletions

View File

@@ -175,6 +175,15 @@ public class Puck extends DeviceBase {
}
public void setId(String value) {
for (Device d : getParent().getChildren()) {
if (d instanceof Puck) {
if (((Puck)d).getId() != null){
if (((Puck)d).getId().equals(value)){
((Puck)d).setId(null);
}
}
}
}
id = value;
}