Class DefaultComponentDelegate
- java.lang.Object
-
- com.inductiveautomation.ignition.common.xmlserialization.serialization.AbstractSerializationDelegate<java.lang.Object>
-
- com.inductiveautomation.ignition.common.xmlserialization.serialization.DefaultObjectSerializationDelegate
-
- com.inductiveautomation.factorypmi.designer.xmlserialization.DefaultComponentDelegate
-
- All Implemented Interfaces:
SerializationDelegate<java.lang.Object>
- Direct Known Subclasses:
BasicContainerDelegate
,TableDelegate
public class DefaultComponentDelegate extends DefaultObjectSerializationDelegate
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Class[]
bool
protected java.lang.Class[]
border
protected java.lang.Class[]
color
protected java.lang.Class[]
cursor
protected java.lang.Class[]
dataSet
protected java.lang.Class[]
dim
protected java.util.Set<java.lang.String>
ignore
protected java.lang.Class[]
integer
protected java.lang.Class[]
putClientProperty
protected java.lang.Class[]
rect
protected java.lang.Class[]
rect2d
protected java.lang.Class[]
string
protected java.lang.Class[]
treeMap
-
Fields inherited from class com.inductiveautomation.ignition.common.xmlserialization.serialization.DefaultObjectSerializationDelegate
elementName, equalityDelegates, propertyComparator, skipReferenceTracking, TRANSIENT_KEY
-
-
Constructor Summary
Constructors Constructor Description DefaultComponentDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isTransient(java.beans.PropertyDescriptor pd)
protected void
serializeClientProperties(XMLSerializationContext context, Element elm, javax.swing.JComponent comp, java.util.List<java.lang.String> propsToSerialize)
Serialized all of the "client properties" contained in the CLIENT_PROPS list for a componentprotected Element
serializeComponentCommons(XMLSerializationContext context, javax.swing.JComponent comp)
Adds a special <c-comm> element that has the component's preferred size, bounds, name, and layout constraints.protected void
serializeProperties(XMLSerializationContext context, Element elm, java.lang.Object obj)
Runs through the javabean properties of the given object, and comares the values of each property to the value that a clean copy of the object would have.-
Methods inherited from class com.inductiveautomation.ignition.common.xmlserialization.serialization.DefaultObjectSerializationDelegate
doProperty, initConstructorTypes, isConstructorOnly, isSkipReferenceTracking, safeArrayEquals, safeEquals, serialize, serializeConstructor, setConstructorOnly, setSkipReferenceTracking, startObject, writeCall, writeCall, writeConstructor
-
-
-
-
Field Detail
-
putClientProperty
protected java.lang.Class[] putClientProperty
-
bool
protected java.lang.Class[] bool
-
integer
protected java.lang.Class[] integer
-
string
protected java.lang.Class[] string
-
treeMap
protected java.lang.Class[] treeMap
-
dim
protected java.lang.Class[] dim
-
rect
protected java.lang.Class[] rect
-
rect2d
protected java.lang.Class[] rect2d
-
dataSet
protected java.lang.Class[] dataSet
-
color
protected java.lang.Class[] color
-
border
protected java.lang.Class[] border
-
cursor
protected java.lang.Class[] cursor
-
ignore
protected java.util.Set<java.lang.String> ignore
-
-
Method Detail
-
serializeComponentCommons
protected Element serializeComponentCommons(XMLSerializationContext context, javax.swing.JComponent comp) throws SerializationException
Adds a special <c-comm> element that has the component's preferred size, bounds, name, and layout constraints.- Throws:
SerializationException
-
serializeClientProperties
protected void serializeClientProperties(XMLSerializationContext context, Element elm, javax.swing.JComponent comp, java.util.List<java.lang.String> propsToSerialize) throws SerializationException
Serialized all of the "client properties" contained in the CLIENT_PROPS list for a component- Throws:
SerializationException
-
isTransient
protected boolean isTransient(java.beans.PropertyDescriptor pd)
- Overrides:
isTransient
in classDefaultObjectSerializationDelegate
-
serializeProperties
protected void serializeProperties(XMLSerializationContext context, Element elm, java.lang.Object obj) throws SerializationException
Description copied from class:DefaultObjectSerializationDelegate
Runs through the javabean properties of the given object, and comares the values of each property to the value that a clean copy of the object would have. Serializes all properties that have a dirty value.- Overrides:
serializeProperties
in classDefaultObjectSerializationDelegate
- Throws:
SerializationException
-
-