Working Component Management

This commit is contained in:
2025-04-14 15:12:02 +02:00
parent 133ee646d1
commit ca36cffd47
20 changed files with 138 additions and 170 deletions

View File

@ -2,6 +2,7 @@ package fabrik.simulator.pic16f84;
import com.gluonhq.charm.glisten.control.ToggleButtonGroup;
import fabrik.simulator.pic16f84.interfaces.IOPortInterface;
import fabrik.simulator.pic16f84.interfaces.ToggleButtonInterface;
import javafx.collections.ListChangeListener;
import javafx.event.EventHandler;
import javafx.scene.control.Toggle;
@ -10,21 +11,12 @@ import javafx.scene.input.MouseEvent;
import java.io.IOException;
public class ToggleButtonGroupExt {
public class ToggleButtonGroupExt extends PICComponent implements ToggleButtonInterface {
private IOPortInterface ioPorts;
private static ToggleButtonGroupExt me;
public ToggleButtonGroupExt(IOPortInterface ioPorts) {
this.ioPorts = ioPorts;
}
public static ToggleButtonGroupExt get(IOPortInterface ioPorts) {
if (me == null) {
me = new ToggleButtonGroupExt(ioPorts);
}
return me;
public ToggleButtonGroupExt() {
}
@ -65,4 +57,10 @@ public class ToggleButtonGroupExt {
mouseEvent.consume();
}
};
@Override
public void initialize(PICComponents picComponents) {
System.out.println("ToggleButtonGroupExt");
super.initialize(picComponents);
}
}