Made classes in package "nandbased" usable for JSON
[Mograsim.git] / net.mograsim.logic.ui.am2900 / src / net / mograsim / logic / ui / model / components / mi / nandbased / GUInand3.java
index 64fd958..39d29e2 100644 (file)
@@ -7,6 +7,7 @@ import net.mograsim.logic.ui.model.components.submodels.SimpleRectangularSubmode
 import net.mograsim.logic.ui.model.wires.GUIWire;
 import net.mograsim.logic.ui.model.wires.Pin;
 import net.mograsim.logic.ui.model.wires.WireCrossPoint;
+import net.mograsim.logic.ui.serializing.IndirectGUIComponentCreator;
 
 public class GUInand3 extends SimpleRectangularSubmodelComponent
 {
@@ -47,4 +48,9 @@ public class GUInand3 extends SimpleRectangularSubmodelComponent
                new GUIWire(submodelModifiable, C, nandABC.getPin("B"), new Point(60, 62.5), new Point(60, 17.5));
                new GUIWire(submodelModifiable, nandABC.getPin("Y"), Y, new Point[0]);
        }
+
+       static
+       {
+               IndirectGUIComponentCreator.setComponentProvider(GUInand3.class.getCanonicalName(), (m, p) -> new GUInand3(m));
+       }
 }
\ No newline at end of file