GUIComponents now have names
[Mograsim.git] / net.mograsim.logic.ui.am2900 / src / net / mograsim / logic / ui / model / components / mi / nandbased / GUInand3.java
index 4443e21..56076cf 100644 (file)
@@ -13,7 +13,12 @@ public class GUInand3 extends SimpleRectangularSubmodelComponent
 {
        public GUInand3(ViewModelModifiable model)
        {
-               super(model, 1, "GUInand3");
+               this(model, null);
+       }
+
+       public GUInand3(ViewModelModifiable model, String name)
+       {
+               super(model, 1, "GUInand3", name);
                setSubmodelScale(.4);
                setInputPins("A", "B", "C");
                setOutputPins("Y");
@@ -51,6 +56,6 @@ public class GUInand3 extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentSupplier(GUInand3.class.getCanonicalName(), (m, p) -> new GUInand3(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUInand3.class.getCanonicalName(), (m, p, n) -> new GUInand3(m, n));
        }
 }
\ No newline at end of file