X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui.am2900%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2Fmodel%2Fcomponents%2Fmi%2Fnandbased%2FGUIsel3_4.java;h=5695df8f2f025bbe04f58fe3a1f82c526f750b8a;hb=5ece0acf049bf9af2933f513fe0206565681f622;hp=83440eee081e0e1bc7f5d4983a28ec461ca4b9c4;hpb=2fd5bc7536c065766aaa59113697d5c2ea690962;p=Mograsim.git diff --git a/net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIsel3_4.java b/net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIsel3_4.java index 83440eee..5695df8f 100644 --- a/net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIsel3_4.java +++ b/net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIsel3_4.java @@ -13,7 +13,12 @@ public class GUIsel3_4 extends SimpleRectangularSubmodelComponent { public GUIsel3_4(ViewModelModifiable model) { - super(model, 1, "GUIsel3_4"); + this(model, null); + } + + public GUIsel3_4(ViewModelModifiable model, String name) + { + super(model, 1, "GUIsel3_4", name); setSubmodelScale(.2); setInputPins("SA", "SB", "SC", "A1", "A2", "A3", "A4", "B1", "B2", "B3", "B4", "C1", "C2", "C3", "C4"); setOutputPins("Y1", "Y2", "Y3", "Y4"); @@ -113,6 +118,6 @@ public class GUIsel3_4 extends SimpleRectangularSubmodelComponent static { - IndirectGUIComponentCreator.setComponentProvider(GUIsel3_4.class.getCanonicalName(), (m, p) -> new GUIsel3_4(m)); + IndirectGUIComponentCreator.setComponentSupplier(GUIsel3_4.class.getCanonicalName(), (m, p, n) -> new GUIsel3_4(m, n)); } } \ No newline at end of file