Control
, XMLProperty
XMLControlElement
public interface XMLControl extends Control, XMLProperty
NOT_EDITABLE_BACKGROUND
Modifier and Type | Method | Description |
---|---|---|
boolean |
failedToRead() |
Returns true if the most recent read operation failed.
|
java.lang.Class<?> |
getObjectClass() |
Gets the class for which this stores data.
|
java.lang.String |
getObjectClassName() |
Gets the name of the object class for which this element stores data.
|
java.lang.String |
getPropertyType(java.lang.String name) |
Gets the type of the specified property.
|
java.lang.Object |
loadObject(java.lang.Object obj) |
Loads an object with data from this XMLControl.
|
void |
read(java.io.Reader reader) |
Reads the control from a Reader.
|
java.lang.String |
read(java.lang.String name) |
Reads the control from an xml document with the specified name.
|
void |
readXML(java.lang.String xml) |
Reads the control from an xml string.
|
void |
saveObject(java.lang.Object obj) |
Saves an object's data in this XMLControl.
|
java.lang.String |
toXML() |
Returns this control as an xml string.
|
void |
write(java.io.Writer writer) |
Writes the control to a Writer.
|
java.lang.String |
write(java.lang.String fileName) |
Writes the control as an xml document with the specified name.
|
calculationDone, clearMessages, clearValues, getBoolean, getDouble, getInt, getObject, getPropertyNames, getString, print, println, println, setLockValues, setValue, setValue, setValue, setValue
getChildControl, getChildControls, getLevel, getParentProperty, getPropertyClass, getPropertyContent, getPropertyName, getPropertyType, setValue
java.lang.String getPropertyType(java.lang.String name)
name
- the property namejava.lang.String getObjectClassName()
java.lang.Class<?> getObjectClass()
void saveObject(java.lang.Object obj)
obj
- the object to save.java.lang.Object loadObject(java.lang.Object obj)
obj
- the object to loadjava.lang.String read(java.lang.String name)
name
- the namevoid read(java.io.Reader reader)
reader
- the Readervoid readXML(java.lang.String xml)
xml
- the xml stringboolean failedToRead()
true
if the most recent read operation failedjava.lang.String write(java.lang.String fileName)
fileName
- the file namevoid write(java.io.Writer writer)
writer
- the Writerjava.lang.String toXML()