X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;ds=inline;f=net.mograsim.logic.model%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fmodel%2Fmodel%2Fcomponents%2FGUIComponent.java;h=c488de0633b2d9c57ba4bb696c9e056313d46915;hb=a86976434d00dce2652d93256cc12b6e3a0f324a;hp=1b97cd311dbbd16f89337b039d1f9a9c577fcbfa;hpb=b5d8c2d71e27350ea7c9314e40df5bb0584271cd;p=Mograsim.git
diff --git a/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/GUIComponent.java b/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/GUIComponent.java
index 1b97cd31..c488de06 100644
--- a/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/GUIComponent.java
+++ b/net.mograsim.logic.model/src/net/mograsim/logic/model/model/components/GUIComponent.java
@@ -14,11 +14,13 @@ import net.haspamelodica.swt.helper.gcs.GeneralGC;
import net.haspamelodica.swt.helper.swtobjectwrappers.Rectangle;
import net.mograsim.logic.model.model.ViewModelModifiable;
import net.mograsim.logic.model.model.wires.Pin;
-import net.mograsim.logic.model.serializing.snippets.HighLevelStateHandler;
+import net.mograsim.logic.model.snippets.HighLevelStateHandler;
/**
* The base class for all GUI components.
- * A GUIComponent
has a position and size. The size can only be modified by subclasses.
+ * A GUIComponent
has a reference to the ViewModel it belongs to.
+ * A GUIComponent
has a name. This name is unique in the model the GUIComponent
belongs to.
+ * A GUIComponent
has a position and size. The size can only be modified by subclasses.
*
* @author Daniel Kirschten
*/
@@ -29,7 +31,7 @@ public abstract class GUIComponent
*/
protected final ViewModelModifiable model;
/**
- * The name of this component. Is unique in its model.
+ * The name of this component. Is unique for all components in its model.
*/
public final String name;
private final Rectangle bounds;
@@ -148,7 +150,7 @@ public abstract class GUIComponent
/**
* Sets the given high-level state to the given value.
- * See {@link HighLevelStateHandler#setHighLevelState(String, Object)} for an explanation of high-level state IDs.
+ * See {@link HighLevelStateHandler} for an explanation of high-level state IDs.
*
* @see #getHighLevelState(String)
* @see HighLevelStateHandler#setHighLevelState(String, Object)
@@ -163,7 +165,7 @@ public abstract class GUIComponent
/**
* Gets the current value of the given high-level state.
- * See {@link HighLevelStateHandler#setHighLevelState(String, Object)} for an explanation of high-level state IDs.
+ * See {@link HighLevelStateHandler} for an explanation of high-level state IDs.
*
* @see #setHighLevelState(String, Object)
* @see HighLevelStateHandler#getHighLevelState(String)
@@ -277,7 +279,7 @@ public abstract class GUIComponent
// serializing
@SuppressWarnings("static-method") // this method is intended to be overridden
- public JsonElement getParams()
+ public JsonElement getParamsForSerializing()
{
return JsonNull.INSTANCE;
}