|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.jfimagine.jfgraph.shape.base.AbstractObject
|
+--com.jfimagine.jfgraph.shape.base.Property
Property class. An instance for BaseProperty.
| Field Summary | |
static int |
PROPERTYTYPE_BOOLEAN
PropertyType: Boolean type |
static int |
PROPERTYTYPE_CURRENCY
PropertyType: Currency type |
static int |
PROPERTYTYPE_DATETIME
PropertyType: DateTime type |
static java.lang.String |
PROPERTYTYPE_DESC_BOOLEAN
PropertyType description: Boolean type |
static java.lang.String |
PROPERTYTYPE_DESC_CURRENCY
PropertyType description: Currency type |
static java.lang.String |
PROPERTYTYPE_DESC_DATETIME
PropertyType description: DateTime type |
static java.lang.String |
PROPERTYTYPE_DESC_NUMERIC
PropertyType description: Numeric type |
static java.lang.String |
PROPERTYTYPE_DESC_STRING
PropertyType description: String type |
static int |
PROPERTYTYPE_NUMERIC
PropertyType: Numeric type |
static int |
PROPERTYTYPE_STRING
PropertyType: String type |
static java.lang.String |
XML_COMMENT
A XML string tag represents the comment of this property |
static java.lang.String |
XML_FORMAT
A XML string tag represents the display format of this property |
static java.lang.String |
XML_NAME
A XML string tag represents the name of this property |
static java.lang.String |
XML_PROPERTY
A XML string tag represents a jfproperty |
static java.lang.String |
XML_TYPE
A XML string tag represents the type of this property |
static java.lang.String |
XML_VALUE
A XML string tag represents the string value of this property |
| Fields inherited from class com.jfimagine.jfgraph.shape.base.AbstractObject |
m_lastError, XML_OBJECTID, XML_OBJECTTYPE |
| Constructor Summary | |
Property()
Constructor for Property |
|
| Method Summary | |
protected void |
appendChildToDOM(Element element,
JFVersion version)
Append necessary xml child for current element, this method will be called internally by toDOM. |
java.lang.Object |
clone()
Creates a new object of the same class and with the same contents as this object. |
protected AbstractObject |
cloneMe()
Creates a new AbstractObject of the same class and with the same contents as this object. |
boolean |
equals(java.lang.Object obj)
Determines whether or not two objects are equal. |
protected void |
extractChildFromDOM(Element element,
JFVersion version)
Extract needed xml child from current element, this method will be called internally by fromDOM. |
java.lang.String |
getComment()
Get the comment of property |
static java.lang.String |
getDescByType(int id)
get type desc by a type id |
java.lang.String |
getFormat()
Get the display format of property |
java.lang.String |
getName()
Get the name of property |
int |
getType()
Get the type of property |
static int |
getTypeByDesc(java.lang.String desc)
get type id by a type description |
static java.util.List |
getTypeDescList()
get a string list of all types |
java.lang.String |
getValue()
Get the value of property |
int |
hashCode()
Returns the hashcode for this Object. |
void |
loadFromStream(JFReader stream,
boolean skipHead,
JFVersion version)
Load property data from a binary stream |
void |
saveToStream(JFWriter stream,
JFVersion version)
Save this property to a binary stream |
void |
setComment(java.lang.String comment)
Set the comment of current property. |
void |
setFormat(java.lang.String displayFormat)
Set the display format of current property. |
void |
setName(java.lang.String name)
Set the name of current property. |
void |
setType(int type)
Set the type of current property. |
void |
setValue(java.lang.String value)
Set the value of current property. |
java.lang.String |
toString()
Convert this property to String |
| Methods inherited from class com.jfimagine.jfgraph.shape.base.AbstractObject |
fromDOM, getLastError, getMaxObjectId, getObjectId, getObjectType, getXMLTag, getZoomScale, isShowDesign, setLastError, setObjectId, setObjectType, setShowDesign, setValue, setXMLTag, setZoomScale, toDOM |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String XML_PROPERTY
public static final java.lang.String XML_NAME
public static final java.lang.String XML_TYPE
public static final java.lang.String XML_FORMAT
public static final java.lang.String XML_VALUE
public static final java.lang.String XML_COMMENT
public static final int PROPERTYTYPE_STRING
public static final java.lang.String PROPERTYTYPE_DESC_STRING
public static final int PROPERTYTYPE_NUMERIC
public static final java.lang.String PROPERTYTYPE_DESC_NUMERIC
public static final int PROPERTYTYPE_BOOLEAN
public static final java.lang.String PROPERTYTYPE_DESC_BOOLEAN
public static final int PROPERTYTYPE_CURRENCY
public static final java.lang.String PROPERTYTYPE_DESC_CURRENCY
public static final int PROPERTYTYPE_DATETIME
public static final java.lang.String PROPERTYTYPE_DESC_DATETIME
| Constructor Detail |
public Property()
| Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
name - The name of this propertypublic static java.util.List getTypeDescList()
public static java.lang.String getDescByType(int id)
public static int getTypeByDesc(java.lang.String desc)
public int getType()
public void setType(int type)
type - The type of this propertypublic java.lang.String getFormat()
public void setFormat(java.lang.String displayFormat)
displayFormat - The display format of this propertypublic java.lang.String getValue()
public void setValue(java.lang.String value)
value - The value of this propertypublic java.lang.String getComment()
public void setComment(java.lang.String comment)
comment - The comment of this propertypublic java.lang.String toString()
toString in class AbstractObject
protected AbstractObject cloneMe()
throws java.lang.CloneNotSupportedException
cloneMe in class AbstractObjectjava.lang.CloneNotSupportedException
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class AbstractObjectjava.lang.CloneNotSupportedExceptionpublic int hashCode()
hashCode in class AbstractObjectpublic boolean equals(java.lang.Object obj)
equals in class AbstractObjectobj - an object to be compared with this object
protected void appendChildToDOM(Element element,
JFVersion version)
appendChildToDOM in class AbstractObjectelement - A XML element to append child xml nodesversion - A file version notification so this object can obey the rules to save data.
protected void extractChildFromDOM(Element element,
JFVersion version)
extractChildFromDOM in class AbstractObjectelement - An element used to extract needed xml childversion - A file version notification so this object can obey the rules to fetch data.
public void saveToStream(JFWriter stream,
JFVersion version)
throws java.io.IOException
saveToStream in class AbstractObjectstream - An binary output streamversion - A file version notification so this object can obey the rules to save data.
java.io.IOException
public void loadFromStream(JFReader stream,
boolean skipHead,
JFVersion version)
throws java.io.IOException
loadFromStream in class AbstractObjectstream - An binary input streamskipHead - Skip head 'TYPE' check, an shape object should always
has its own shape-type stored, if this shape-type has already been readed,
this loadFromStream should/could not read the type anymore.version - A file version notification so this object can obey the rules to fetch data.
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||