public class JsonComponent extends LinkedHashMap<String,Object> implements Frontend.IComponent, Externalizable
It only implements Externalizable to remove the need for a serialVersionUID in every subclass. Java serialization of this classes will fail. Use JsonWriter and JsonReader.
Modifier and Type | Class and Description |
---|---|
static interface |
JsonComponent.JsonPropertyListener |
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
JsonComponent(String type) |
JsonComponent(String type,
boolean identifiable) |
Modifier and Type | Method and Description |
---|---|
protected void |
fireChange(String property,
Object value,
Object oldValue) |
String |
getId() |
Object |
put(String property,
Object value) |
void |
readExternal(ObjectInput in) |
void |
setPropertyListener(JsonComponent.JsonPropertyListener propertyListener) |
void |
writeExternal(ObjectOutput out) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, putAll, putIfAbsent, remove, remove, replace, replace, size
public JsonComponent(String type)
public JsonComponent(String type, boolean identifiable)
public String getId()
public void setPropertyListener(JsonComponent.JsonPropertyListener propertyListener)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright © 2019. All rights reserved.