GUIComponents now have names
[Mograsim.git] / net.mograsim.logic.ui.am2900 / src / net / mograsim / logic / ui / model / components / mi / nandbased / am2901 / GUIAm2901ALUFuncDecode.java
index f08898f..07af76d 100644 (file)
@@ -15,7 +15,12 @@ public class GUIAm2901ALUFuncDecode extends SimpleRectangularSubmodelComponent
 {
        public GUIAm2901ALUFuncDecode(ViewModelModifiable model)
        {
-               super(model, 1, "GUIAm2901ALUFuncDecode");
+               this(model, null);
+       }
+
+       public GUIAm2901ALUFuncDecode(ViewModelModifiable model, String name)
+       {
+               super(model, 1, "GUIAm2901ALUFuncDecode", name);
                setSubmodelScale(.25);
                setInputPins("I5", "I4", "I3");
                setOutputPins("CinE", "L", "SN", "SBE", "FN", "RN");
@@ -110,7 +115,7 @@ public class GUIAm2901ALUFuncDecode extends SimpleRectangularSubmodelComponent
 
        static
        {
-               IndirectGUIComponentCreator.setComponentProvider(GUIAm2901ALUFuncDecode.class.getCanonicalName(),
-                               (m, p) -> new GUIAm2901ALUFuncDecode(m));
+               IndirectGUIComponentCreator.setComponentSupplier(GUIAm2901ALUFuncDecode.class.getCanonicalName(),
+                               (m, p, n) -> new GUIAm2901ALUFuncDecode(m, n));
        }
 }
\ No newline at end of file