X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2Fmodel%2Fcomponents%2FGUINandGate.java;h=6a3e694882ce8f76977e5cd012e891fbd7730e7a;hb=f14ea37d69488dd51518a36413af7176916b8bd7;hp=8078ddbfdac8a696c9dc19fa217c3f1842990c5b;hpb=27e409f74763ec63f931d7afdea78420973d6a37;p=Mograsim.git diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/GUINandGate.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/GUINandGate.java index 8078ddbf..6a3e6948 100644 --- a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/GUINandGate.java +++ b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/GUINandGate.java @@ -1,6 +1,9 @@ package net.mograsim.logic.ui.model.components; +import net.mograsim.logic.core.components.gates.NandGate; import net.mograsim.logic.ui.model.ViewModelModifiable; +import net.mograsim.logic.ui.modeladapter.ViewLogicModelAdapter; +import net.mograsim.logic.ui.modeladapter.componentadapters.SimpleGateAdapter; public class GUINandGate extends SimpleRectangularGUIGate { @@ -9,4 +12,9 @@ public class GUINandGate extends SimpleRectangularGUIGate super(model, logicWidth, "&", true); setInputCount(2);// TODO make variable } + + static + { + ViewLogicModelAdapter.addComponentAdapter(new SimpleGateAdapter<>(GUINandGate.class, NandGate::new)); + } } \ No newline at end of file