X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2Fmodel%2Fcomponents%2Fatomic%2FGUIBitDisplay.java;h=cd643db273266735276edbf69a7b9f3720caf707;hb=5ece0acf049bf9af2933f513fe0206565681f622;hp=8311d7d948b1cceed18694a0f37a5e73704a42f9;hpb=05f3deb7ee3a0b7162c75e1963be9a739618e3df;p=Mograsim.git diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/atomic/GUIBitDisplay.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/atomic/GUIBitDisplay.java index 8311d7d9..cd643db2 100644 --- a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/atomic/GUIBitDisplay.java +++ b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/atomic/GUIBitDisplay.java @@ -30,7 +30,12 @@ public class GUIBitDisplay extends GUIComponent public GUIBitDisplay(ViewModelModifiable model) { - super(model); + this(model, null); + } + + public GUIBitDisplay(ViewModelModifiable model, String name) + { + super(model, name); logicObs = (i) -> requestRedraw(); setSize(width, height); @@ -84,6 +89,6 @@ public class GUIBitDisplay extends GUIComponent static { ViewLogicModelAdapter.addComponentAdapter(new BitDisplayAdapter()); - IndirectGUIComponentCreator.setComponentSupplier(GUIBitDisplay.class.getCanonicalName(), (m, p) -> new GUIBitDisplay(m)); + IndirectGUIComponentCreator.setComponentSupplier(GUIBitDisplay.class.getCanonicalName(), (m, p, n) -> new GUIBitDisplay(m, n)); } } \ No newline at end of file