Link samples table to GUI events
This commit is contained in:
@@ -148,6 +148,10 @@ public class Controller {
|
||||
|
||||
public void selectSample(Sample sample) {
|
||||
getMainFrame().basePlatePanel.selectSample(sample);
|
||||
if ((puckPanel != null) && puckPanel.isShowing()){
|
||||
puckPanel.selectSample(sample);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//public Panel getMainFrame() {
|
||||
@@ -162,7 +166,6 @@ public class Controller {
|
||||
void onInitialize(int runCount) {
|
||||
getMainFrame().addDevice(basePlate);
|
||||
basePlate.addListener(basePlateListener);
|
||||
System.out.println(basePlate.getState());
|
||||
|
||||
if (puckSensorAccess == PuckSensorAccess.Esera) {
|
||||
getMainFrame().getContext().getDevicePool().addListener(new DevicePoolListener() {
|
||||
@@ -294,6 +297,10 @@ public class Controller {
|
||||
public Puck getPuck(String name) {
|
||||
return basePlate.getPuckByName(name);
|
||||
}
|
||||
|
||||
public Sample getSample(String name) {
|
||||
return basePlate.getSampleByName(name);
|
||||
}
|
||||
|
||||
public BasePlate getBasePlate() {
|
||||
return basePlate;
|
||||
|
||||
Reference in New Issue
Block a user