GUIComponents now have names
[Mograsim.git] / net.mograsim.logic.ui.am2900 / src / net / mograsim / logic / ui / model / components / mi / nandbased / am2901 / GUIAm2901DestDecode.java
index 7c7f380..f6bd0bb 100644 (file)
@@ -13,7 +13,12 @@ public class GUIAm2901DestDecode extends SimpleRectangularSubmodelComponent
 {
        public GUIAm2901DestDecode(ViewModelModifiable model)
        {
-               super(model, 1, "GUIAm2901DestDecode");
+               this(model, null);
+       }
+
+       public GUIAm2901DestDecode(ViewModelModifiable model, String name)
+       {
+               super(model, 1, "GUIAm2901DestDecode", name);
                setSubmodelScale(.25);
                setInputPins("I8", "I7", "I6");
                setOutputPins("NSH", "RSH", "RAMWE", "YF", "LSH", "QWE");
@@ -147,6 +152,6 @@ public class GUIAm2901DestDecode extends SimpleRectangularSubmodelComponent
        static
        {
                IndirectGUIComponentCreator.setComponentSupplier(GUIAm2901DestDecode.class.getCanonicalName(),
-                               (m, p) -> new GUIAm2901DestDecode(m));
+                               (m, p, n) -> new GUIAm2901DestDecode(m, n));
        }
 }
\ No newline at end of file