public GUIManualSwitch(ViewModelModifiable model)
{
- super(model);
+ this(model, null);
+ }
+
+ public GUIManualSwitch(ViewModelModifiable model, String name)
+ {
+ super(model, name);
logicObs = (i) -> requestRedraw();
setSize(width, height);
static
{
ViewLogicModelAdapter.addComponentAdapter(new ManualSwitchAdapter());
- IndirectGUIComponentCreator.setComponentSupplier(GUIManualSwitch.class.getName(), (m, p) -> new GUIManualSwitch(m));
+ IndirectGUIComponentCreator.setComponentSupplier(GUIManualSwitch.class.getName(), (m, p, n) -> new GUIManualSwitch(m, n));
}
}
\ No newline at end of file