Working Component Management
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user