public class InsetsPeer extends java.lang.Object implements SerialPropertyPeer
SerialPropertyPeer for Insets properties.| Constructor and Description |
|---|
InsetsPeer() |
| Modifier and Type | Method and Description |
|---|---|
static Insets |
fromString(java.lang.String value)
Generates an
Insets property from a string representation. |
java.lang.Object |
toProperty(Context context,
java.lang.Class objectClass,
org.w3c.dom.Element propertyElement)
Translates an XML representation of a property to a property value object.
|
static java.lang.String |
toString(Insets insets)
Generates a string representation of an
Insets property. |
void |
toXml(Context context,
java.lang.Class objectClass,
org.w3c.dom.Element propertyElement,
java.lang.Object propertyValue)
Translates an object to an XML representation of a property.
|
public static Insets fromString(java.lang.String value) throws SerialException
Insets property from a string representation.value - the string representationInsets valueSerialException - if the provided string representation is not validpublic static java.lang.String toString(Insets insets) throws SerialException
Insets property.insets - the Insets propertySerialExceptionpublic java.lang.Object toProperty(Context context, java.lang.Class objectClass, org.w3c.dom.Element propertyElement) throws SerialException
SerialPropertyPeertoProperty in interface SerialPropertyPeercontext - the relevant ContextobjectClass - the class of the property containerpropertyElement - the XML <p> element to processSerialException - when the property cannot be de-serialized.SerialPropertyPeer.toProperty(Context,
Class, org.w3c.dom.Element)public void toXml(Context context, java.lang.Class objectClass, org.w3c.dom.Element propertyElement, java.lang.Object propertyValue) throws SerialException
SerialPropertyPeertoXml in interface SerialPropertyPeercontext - the relevant contextobjectClass - the class of the property containerpropertyElement - the XML <p> element in which the
property value should be renderedpropertyValue - the property valueSerialExceptionSerialPropertyPeer.toXml(nextapp.echo.app.util.Context,
java.lang.Class, org.w3c.dom.Element, java.lang.Object)