ewe.data
Interface LiveData

All Superinterfaces:
Comparable, Copyable, DataUnit, FieldListener
All Known Implementing Classes:
LiveObject

public interface LiveData
extends DataUnit, FieldListener

A LiveData is a more complex version of a DataUnit. In addition to the functionality of a DataUnit, a LiveData can also:

 1. Provide a visual means of editing its data.
 2. Encode and Decode its internal data as a text String.
 3. Provide a Name for itself (for displaying in a list).
 4. Provide an icon (IImage object) if one is associated with it.


Method Summary
 Editor getEditor(int options)
          Return a ewe.ui.Editor Object which can be used to visually edit the information in this LiveData object.
 IImage getIcon()
          Return an Icon for this object (if one exists) or null if no icon exists.
 String getName()
          Return a String representing a name for this object (for the purpose of displaying in lists, etc).
 void textDecode(String from)
          Decode this Object for a String previously encoded using textEncode()
 String textEncode()
          Encode this Object as a string.
 
Methods inherited from interface ewe.data.DataUnit
copyFrom, getNew
 
Methods inherited from interface ewe.util.Copyable
getCopy
 
Methods inherited from interface ewe.util.Comparable
compareTo
 
Methods inherited from interface ewe.ui.FieldListener
action, fieldChanged, fieldEvent
 

Method Detail

getEditor

public Editor getEditor(int options)
Return a ewe.ui.Editor Object which can be used to visually edit the information in this LiveData object.


textEncode

public String textEncode()
Encode this Object as a string.


textDecode

public void textDecode(String from)
Decode this Object for a String previously encoded using textEncode()


getName

public String getName()
Return a String representing a name for this object (for the purpose of displaying in lists, etc).


getIcon

public IImage getIcon()
Return an Icon for this object (if one exists) or null if no icon exists.