projects
/
Mograsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GUIComponents now have names
[Mograsim.git]
/
net.mograsim.logic.ui.am2900
/
src
/
net
/
mograsim
/
logic
/
ui
/
model
/
components
/
mi
/
nandbased
/
GUIdlatch.java
diff --git
a/net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIdlatch.java
b/net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIdlatch.java
index
8258934
..
e0a6038
100644
(file)
--- a/
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIdlatch.java
+++ b/
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUIdlatch.java
@@
-15,7
+15,12
@@
public class GUIdlatch extends SimpleRectangularSubmodelComponent
public GUIdlatch(ViewModelModifiable model)
{
public GUIdlatch(ViewModelModifiable model)
{
- super(model, 1, "GUIdlatch");
+ this(model, null);
+ }
+
+ public GUIdlatch(ViewModelModifiable model, String name)
+ {
+ super(model, 1, "GUIdlatch", name);
setSubmodelScale(.4);
setInputPins("D", "E");
setOutputPins("Q", "_Q");
setSubmodelScale(.4);
setInputPins("D", "E");
setOutputPins("Q", "_Q");
@@
-86,6
+91,6
@@
public class GUIdlatch extends SimpleRectangularSubmodelComponent
static
{
static
{
- IndirectGUIComponentCreator.setComponentSupplier(GUIdlatch.class.getCanonicalName(), (m, p
) -> new GUIdlatch(m
));
+ IndirectGUIComponentCreator.setComponentSupplier(GUIdlatch.class.getCanonicalName(), (m, p
, n) -> new GUIdlatch(m, n
));
}
}
\ No newline at end of file
}
}
\ No newline at end of file