GUIComponents now have names
[Mograsim.git] / net.mograsim.logic.ui.am2900 / src / net / mograsim / logic / ui / model / components / mi / nandbased / GUIor4.java
index a3caf9d..b0d3029 100644 (file)
@@ -13,7 +13,12 @@ public class GUIor4 extends SimpleRectangularSubmodelComponent
 {
        public GUIor4(ViewModelModifiable model)
        {
-               super(model, 1, "GUIor4");
+               this(model, null);
+       }
+
+       public GUIor4(ViewModelModifiable model, String name)
+       {
+               super(model, 1, "GUIor4", name);
                setSubmodelScale(.2);
                setInputPins("A1", "A2", "A3", "A4");
                setOutputPins("Y");
@@ -91,6 +96,6 @@ public class GUIor4 extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentSupplier(GUIor4.class.getCanonicalName(), (m, p) -> new GUIor4(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIor4.class.getCanonicalName(), (m, p, n) -> new GUIor4(m, n));
        }
 }
\ No newline at end of file