public class FillImagePeer extends java.lang.Object implements SerialPropertyPeer
SerialPropertyPeer for FillImage properties.| Constructor and Description |
|---|
FillImagePeer() |
| Modifier and Type | Method and Description |
|---|---|
FillImage |
fromElement(Context context,
org.w3c.dom.Element fiElement)
Generates a
FillImage based on a <fi> DOM element. |
org.w3c.dom.Element |
toElement(Context context,
FillImage fillImage)
Generates a
<fi> DOM element representing a fill image. |
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.
|
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 org.w3c.dom.Element toElement(Context context, FillImage fillImage) throws SerialException
<fi> DOM element representing a fill image.
This method is used internally and for FillImageBorder serialization.context - a Context object which provides a
SerialContext and PropertyPeerFactoryfillImage - the FillImage to render<fi> element representing the fill imageSerialExceptionpublic FillImage fromElement(Context context, org.w3c.dom.Element fiElement) throws SerialException
FillImage based on a <fi> DOM element.
This method is used internally and for FillImageBorder serialization.context - a Context object which provides a
SerialContext and PropertyPeerFactoryfiElement - the <fi> element to parseFillImage representation of the elementSerialExceptionpublic 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(nextapp.echo.app.util.Context,
java.lang.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)