|
NextApp Echo3 v3.0.rc1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.app.serial.property.ColorPeer
public class ColorPeer
SerialPropertyPeer for Color properties.
| Constructor Summary | |
|---|---|
ColorPeer()
|
|
| Method Summary | |
|---|---|
static Color |
fromString(java.lang.String value)
Generates a Color based on 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(Color color)
Generates a string representation of a Color. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColorPeer()
| Method Detail |
|---|
public static final Color fromString(java.lang.String value)
throws SerialException
Color based on a string representation.
value - the string value
Color
SerialException - if the string is not a valid representation of a color
public static final java.lang.String toString(Color color)
throws SerialException
Color.
color - the Color
SerialException
public java.lang.Object toProperty(Context context,
java.lang.Class objectClass,
org.w3c.dom.Element propertyElement)
throws SerialException
SerialPropertyPeer
toProperty in interface SerialPropertyPeercontext - the relevant ContextobjectClass - the class of the property containerpropertyElement - the XML <p> element to process
SerialException - 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
SerialPropertyPeer
toXml 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 value
SerialExceptionSerialPropertyPeer.toXml(nextapp.echo.app.util.Context,
java.lang.Class, org.w3c.dom.Element, java.lang.Object)
|
NextApp Echo3 v3.0.rc1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||