Made classes in package "nandbased" usable for JSON
[Mograsim.git] / net.mograsim.logic.ui.am2900 / src / net / mograsim / logic / ui / model / components / mi / nandbased / GUIfulladder.java
index 23656fa..7ec7771 100644 (file)
@@ -6,6 +6,7 @@ import net.mograsim.logic.ui.model.components.atomic.GUINandGate;
 import net.mograsim.logic.ui.model.components.submodels.SimpleRectangularSubmodelComponent;
 import net.mograsim.logic.ui.model.wires.GUIWire;
 import net.mograsim.logic.ui.model.wires.Pin;
+import net.mograsim.logic.ui.serializing.IndirectGUIComponentCreator;
 
 public class GUIfulladder extends SimpleRectangularSubmodelComponent
 {
@@ -45,4 +46,9 @@ public class GUIfulladder extends SimpleRectangularSubmodelComponent
                                new Point(52.5, 35), new Point(52.5, 45));
                new GUIWire(submodelModifiable, nandZ.getPin("Y"), Z);
        }
+
+       static
+       {
+               IndirectGUIComponentCreator.setComponentProvider(GUIfulladder.class.getCanonicalName(), (m, p) -> new GUIfulladder(m));
+       }
 }
\ No newline at end of file