{
public GUIhalfadder(ViewModelModifiable model)
{
- super(model, 1, "GUIhalfadder");
+ this(model, null);
+ }
+
+ public GUIhalfadder(ViewModelModifiable model, String name)
+ {
+ super(model, 1, "GUIhalfadder", name);
setSubmodelScale(.4);
setInputPins("A", "B");
setOutputPins("Y", "_Z");
static
{
- IndirectGUIComponentCreator.setComponentProvider(GUIhalfadder.class.getCanonicalName(), (m, p) -> new GUIhalfadder(m));
+ IndirectGUIComponentCreator.setComponentSupplier(GUIhalfadder.class.getCanonicalName(), (m, p, n) -> new GUIhalfadder(m, n));
}
}
\ No newline at end of file