Link samples table to GUI events

This commit is contained in:
2018-09-12 11:49:22 +02:00
parent e2e7a7e872
commit f32260086f
4 changed files with 59 additions and 24 deletions

View File

@@ -158,6 +158,17 @@ public class BasePlate extends DeviceBase {
return null;
}
public Sample getSampleByName(String name) {
try{
Puck p = getPuckByName(name.substring(0,2));
if (p!=null){
return p.getSamples()[Integer.valueOf(name.substring(2,3))-1];
}
} catch (Exception ex){
}
return null;
}
public void clearId(String id) {
for (Device d : getChildren()) {
if (d instanceof Puck){