GUIComponents now have names
[Mograsim.git] / net.mograsim.logic.ui.am2900 / src / net / mograsim / logic / ui / model / components / mi / nandbased / am2901 / GUIAm2901ALUOneBit.java
index 42b2357..ffe8b95 100644 (file)
@@ -17,7 +17,12 @@ public class GUIAm2901ALUOneBit extends SimpleRectangularSubmodelComponent
 {
        public GUIAm2901ALUOneBit(ViewModelModifiable model)
        {
-               super(model, 1, "GUIAm2901ALUOneBit");
+               this(model, null);
+       }
+
+       public GUIAm2901ALUOneBit(ViewModelModifiable model, String name)
+       {
+               super(model, 1, "GUIAm2901ALUOneBit", name);
                setSubmodelScale(.2);
                setInputPins("Cin", "CoutE", "CinE", "R", "RN", "S", "SN", "FN", "L");
                setOutputPins("Cout", "F");
@@ -90,6 +95,7 @@ public class GUIAm2901ALUOneBit extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentSupplier(GUIAm2901ALUOneBit.class.getCanonicalName(), (m, p) -> new GUIAm2901ALUOneBit(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIAm2901ALUOneBit.class.getCanonicalName(),
+                               (m, p, n) -> new GUIAm2901ALUOneBit(m, n));
        }
 }
\ No newline at end of file