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
/
GUImux1.java
diff --git
a/net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUImux1.java
b/net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUImux1.java
index
291f628
..
0e6eca6
100644
(file)
--- a/
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUImux1.java
+++ b/
net.mograsim.logic.ui.am2900/src/net/mograsim/logic/ui/model/components/mi/nandbased/GUImux1.java
@@
-13,7
+13,12
@@
public class GUImux1 extends SimpleRectangularSubmodelComponent
{
public GUImux1(ViewModelModifiable model)
{
{
public GUImux1(ViewModelModifiable model)
{
- super(model, 1, "GUImux1");
+ this(model, null);
+ }
+
+ public GUImux1(ViewModelModifiable model, String name)
+ {
+ super(model, 1, "GUImux1", name);
setSubmodelScale(.4);
setInputPins("S0", "I0", "I1");
setOutputPins("Y");
setSubmodelScale(.4);
setInputPins("S0", "I0", "I1");
setOutputPins("Y");
@@
-58,6
+63,6
@@
public class GUImux1 extends SimpleRectangularSubmodelComponent
static
{
static
{
- IndirectGUIComponentCreator.setComponent
Provider(GUImux1.class.getCanonicalName(), (m, p) -> new GUImux1(m
));
+ IndirectGUIComponentCreator.setComponent
Supplier(GUImux1.class.getCanonicalName(), (m, p, n) -> new GUImux1(m, n
));
}
}
\ No newline at end of file
}
}
\ No newline at end of file