goat.editors
Interface Editor

All Known Implementing Classes:
GeneralEditor

public interface Editor

The Editor interface needs to be implemented by all the editors that want to interact with Goat. The Editor will be invoked by passing in the EditorMetaData Object which would contain the meta-data associated with the editor. CustomEditors will need to accept the EditorMetaData object in their constructor if they want to be used from within Goat.

See Also:
EditorMetaData

Method Summary
 byte[] getData()
          Return the data contained by the editor
 EditorMetaData getMetaData()
          Returns the meta-data object associated with the editor.
 void setData(byte[] data)
          Set the data to be displayed by the editor.
 

Method Detail

setData

public void setData(byte[] data)
Set the data to be displayed by the editor. After invoking the editor, the application will pass in the data associated with the table cell that was clicked by calling this method.
Parameters:
data - The data passed in to the editor.

getData

public byte[] getData()
Return the data contained by the editor

getMetaData

public EditorMetaData getMetaData()
Returns the meta-data object associated with the editor. Generally you will return the same object which was passed in as the constructor.
Returns:
The EditorMetaData object associated with the editor