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