ewe.data
Interface EditableData
- All Superinterfaces:
- Comparable, Copyable, DataUnit, Textable, Transferrable
- All Known Implementing Classes:
- EditableObject
- public interface EditableData
- extends DataUnit, Textable, Transferrable
getControl
public EditableObjectControl getControl()
- Get the Control for the object.
getProperty
public Object getProperty(String property,
Object defaultValue)
- Get a property for the object.
toSaveableData
public void toSaveableData(Wrapper data)
- This asks the object to set the Wrapper to be a value that can be used to save
the state of this object. The value set in the Wrapper should be
- Any primitive value.
- A ewe.sys.Time object for date/time values.
- A String object for complex data.
- A ByteArray or byte[] object for more complex data.
If you are calling setObject() for one of the specified types, you must NOT provide a null
object.
fromSaveableData
public void fromSaveableData(Wrapper data)
throws IllegalArgumentException
- This retrieves the state from the data in the wrapper. See toSaveableData() for acceptable
data types that should be stored in the Wrapper.
- Throws:
IllegalArgumentException