Class DefaultComponentDelegate
java.lang.Object
com.inductiveautomation.ignition.common.xmlserialization.serialization.AbstractSerializationDelegate<Object>
com.inductiveautomation.ignition.common.xmlserialization.serialization.DefaultObjectSerializationDelegate
com.inductiveautomation.factorypmi.designer.xmlserialization.DefaultComponentDelegate
- All Implemented Interfaces:
SerializationDelegate<Object>
- Direct Known Subclasses:
BasicContainerDelegate
,TableDelegate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Class[]
protected Class[]
protected Class[]
protected Class[]
protected Class[]
protected Class[]
protected Class[]
protected Class[]
protected Class[]
protected Class[]
protected Class[]
protected Class[]
Fields inherited from class com.inductiveautomation.ignition.common.xmlserialization.serialization.DefaultObjectSerializationDelegate
elementName, propertyComparator, skipReferenceTracking, TRANSIENT_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected void
serializeClientProperties
(XMLSerializationContext context, Element elm, JComponent comp, List<String> propsToSerialize) Serialized all of the "client properties" contained in the CLIENT_PROPS list for a componentprotected Element
serializeComponentCommons
(XMLSerializationContext context, 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, 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, serialize, serializeConstructor, setConstructorOnly, setSkipReferenceTracking, startObject, writeCall, writeCall, writeConstructor
-
Field Details
-
putClientProperty
-
bool
-
integer
-
string
-
treeMap
-
dim
-
rect
-
rect2d
-
dataSet
-
color
-
border
-
cursor
-
ignore
-
-
Constructor Details
-
DefaultComponentDelegate
public DefaultComponentDelegate()
-
-
Method Details
-
serializeComponentCommons
protected Element serializeComponentCommons(XMLSerializationContext context, 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, JComponent comp, List<String> propsToSerialize) throws SerializationException Serialized all of the "client properties" contained in the CLIENT_PROPS list for a component- Throws:
SerializationException
-
isTransient
- Overrides:
isTransient
in classDefaultObjectSerializationDelegate
-
serializeProperties
protected void serializeProperties(XMLSerializationContext context, Element elm, 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
-