Introduce FrontendSpecifics

This commit is contained in:
2025-05-26 14:06:07 +02:00
parent 03941fc302
commit 06e9348016
24 changed files with 140 additions and 88 deletions

View File

@ -1,6 +1,8 @@
package fabrik.simulator.pic16f84;
import com.gluonhq.charm.glisten.control.ToggleButtonGroup;
import fabrik.simulator.pic16f84.frontendspecifics.FrontendSpecificToggleButtonGroup;
import fabrik.simulator.pic16f84.frontendspecifics.ToggleButtonGroup;
import fabrik.simulator.pic16f84.interfaces.*;
import javafx.application.Platform;
@ -219,7 +221,7 @@ public class Controller_Frontend extends PICComponent implements FrontendControl
commands.decode(0);
}
watchdogTimer.testAndTrigger();
Table.refresh();
table.refresh();
CreateWindow.refreshTable();
ioPorts.refreshUI(getTRISbuttons(), getPORTbuttons());
updateStack();
@ -285,7 +287,7 @@ public class Controller_Frontend extends PICComponent implements FrontendControl
commands.resetTotalExecutionTime();
watchdogTimer.reset();
wdtCheck.setSelected(false);
Table.refresh();
table.refresh();
read = ParseFile.parseDatei(fileAddress);
prog = read [0];
ind = read[1];
@ -477,27 +479,27 @@ public class Controller_Frontend extends PICComponent implements FrontendControl
private static void setTRISbuttons(ToggleButtonGroup[] allButtons) {
private void setTRISbuttons(ToggleButtonGroup[] allButtons) {
allTRISbuttons = allButtons;
}
public static ToggleButtonGroup [] getTRISbuttons() {
public FrontendSpecificToggleButtonGroup [] getTRISbuttons() {
return allTRISbuttons;
}
private static void setPORTbuttons(ToggleButtonGroup[] allButtons) {
private void setPORTbuttons(ToggleButtonGroup[] allButtons) {
allPORTbuttons = allButtons;
}
public static ToggleButtonGroup [] getPORTbuttons() {
public ToggleButtonGroup [] getPORTbuttons() {
return allPORTbuttons;
}
public static Circle[] getLEDsA() {
public Circle[] getLEDsA() {
return allLEDsA;
}
public static Circle[] getLEDsB() {
public Circle[] getLEDsB() {
return allLEDsB;
}
@ -570,6 +572,3 @@ public class Controller_Frontend extends PICComponent implements FrontendControl
}
}