|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--ru.novosoft.dc.rtf.dom.ShapeEntry
The basic class for shape entries contains shape properties and ID.
| Constructor Summary | |
ShapeEntry()
|
|
| Method Summary | |
void |
exportTo(org.w3c.dom.Element elem)
Export shape-entry ID number andproperties to the specifed DOM element. |
int |
getID()
Return shape-entry ID number. |
int |
getInt(java.lang.String name,
int defaultValue)
Return an integer value of the property with the specified name or the default value if this property is undefined or contains incorrect value. |
java.lang.Object |
getProperty(java.lang.String name)
Return a value of property or null if the property is undefined. |
java.lang.Object |
getProperty(java.lang.String name,
java.lang.Object defaultValue)
Return a value of the property or the default value passed in parameters if the property is undefined. |
boolean |
hasID()
Return true if ID number is specified. |
boolean |
isTrue(java.lang.String name,
java.lang.String defaultValue)
Call the getProperty(name, defaultValue) method and return true if the resulting string is equal to "1" (this means true in shape properties). |
java.util.Hashtable |
properties()
Return the shape properties table. |
void |
setID(int value)
Set shape-entry ID number. |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Set property. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public ShapeEntry()
| Method Detail |
public final void setID(int value)
public final int getID()
public final boolean hasID()
public final java.util.Hashtable properties()
public final void setProperty(java.lang.String name,
java.lang.Object value)
public final java.lang.Object getProperty(java.lang.String name)
public final java.lang.Object getProperty(java.lang.String name,
java.lang.Object defaultValue)
public final int getInt(java.lang.String name,
int defaultValue)
public final boolean isTrue(java.lang.String name,
java.lang.String defaultValue)
public void exportTo(org.w3c.dom.Element elem)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||