X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2Fmodel%2Fcomponents%2FGUIComponent.java;fp=net.mograsim.logic.ui%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2Fmodel%2Fcomponents%2FGUIComponent.java;h=1699da5a33b5d0e3bdec40686d7e7e1bff7916f7;hb=5897a6d81c418d27ca5bb402e5f1038e10a191fb;hp=f9294036a20148bf3ad0e6fef789b0e67aaf9618;hpb=1e4c26b6d59f2cc40ce5af657c54ce65788e2c43;p=Mograsim.git diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/GUIComponent.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/GUIComponent.java index f9294036..1699da5a 100644 --- a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/GUIComponent.java +++ b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/components/GUIComponent.java @@ -5,15 +5,12 @@ import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.TreeMap; import java.util.function.Consumer; -import java.util.function.Supplier; import net.haspamelodica.swt.helper.gcs.GeneralGC; import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle; import net.mograsim.logic.ui.model.ViewModelModifiable; import net.mograsim.logic.ui.model.wires.Pin; -import net.mograsim.logic.ui.serializing.SubmodelComponentParams; /** * The base class for all GUI components.
@@ -43,8 +40,6 @@ public abstract class GUIComponent private final List redrawListeners; private final Runnable redrawListenerForSubcomponents; - // Defines how the GUIComponent is referenced in SubmodelComponentParams - protected Supplier identifierDelegate = () -> getClass().getSimpleName(); // creation and destruction @@ -268,22 +263,6 @@ public abstract class GUIComponent */ public abstract void render(GeneralGC gc, Rectangle visibleRegion); - // serializing - - /** - * @return an identifier used to reference this GUIComponent inside of {@link SubmodelComponentParams} - */ - public String getIdentifier() - { - return identifierDelegate.get(); - } - - @SuppressWarnings("static-method") - public Map getInstantiationParameters() - { - return new TreeMap<>(); - } - // listeners /**