Made classes in package "nandbased" usable for JSON
[Mograsim.git] / net.mograsim.logic.ui.am2900 / src / net / mograsim / logic / ui / model / components / mi / nandbased / GUIandor414.java
index f48795f..c514d4c 100644 (file)
@@ -5,6 +5,7 @@ import net.mograsim.logic.ui.model.ViewModelModifiable;
 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 GUIandor414 extends SimpleRectangularSubmodelComponent
 {
@@ -62,4 +63,9 @@ public class GUIandor414 extends SimpleRectangularSubmodelComponent
                new GUIWire(submodelModifiable, or.getPin("Y3"), Y3, new Point[0]);
                new GUIWire(submodelModifiable, or.getPin("Y4"), Y4, new Point(80, 72.5), new Point(80, 87.5));
        }
+
+       static
+       {
+               IndirectGUIComponentCreator.setComponentProvider(GUIandor414.class.getCanonicalName(), (m, p) -> new GUIandor414(m));
+       }
 }
\ No newline at end of file