Public Member Functions | |
boolean | register (in tmozIObjectView ovi) |
Register view. | |
boolean | unRegister () |
Unregister view. | |
boolean | closeView () |
Request to close window. | |
boolean | getDataSource (out AString fileName) |
Return name of data file. | |
boolean | getDataCopy (out AString fileName, in tmozIException tmozException) |
Return copy of the data. | |
boolean | updateData (in AString fileName, in boolean changeType) |
Called by framework to save data. | |
Public Attributes | |
readonly attribute tmozIObjectView | view |
Associated view. | |
readonly attribute AString | mimeType |
mime-type | |
readonly attribute AString | name |
name of the object |
Abstract interface representing viewable object. Such object can be displayed in the Tahiti.
View can obtain data using getDataSource or getDataCopy. Type of the file is in the variable mimeType. If the file is displayed view is stored in the member variable view.
boolean closeView | ( | ) |
Request to close window.
Function close view. User will be asked if modified file should be saved before closing.
boolean getDataCopy | ( | out AString | fileName, | |
in tmozIException | tmozException | |||
) |
Return copy of the data.
tmozException | object for exception |
fileName | Copy of the data. It is up to caller to delete this file. |
boolean getDataSource | ( | out AString | fileName | ) |
Return name of data file.
Function return true if file is directly accessible using this name. Return false is file cannot be accessed directly.
Function have to always return fileName and it can be treated as an original file name.
fileName | Name of original file or path to the data file |
boolean register | ( | in tmozIObjectView | ovi | ) |
Register view.
Called when new view should be registered. Object have to be without view before calling this method.
ovi | New view |
boolean unRegister | ( | ) |
Unregister view.
View have to be unregistered when it is closed.
boolean updateData | ( | in AString | fileName, | |
in boolean | changeType | |||
) |
Called by framework to save data.
Function is used by associated view to save new data.
fileName | name of input file | |
changeType | True if mime-type should be changed according to fileName. False if mime-type is same as source data. |
readonly attribute AString mimeType |
mime-type
Mime-type of the object. This is usually fully qualified mime type - e.g. image/jpeg. Sometimes it is generic mime-type octet-stream/binary. In such case real type have to be found.
readonly attribute AString name |
name of the object
Name of the object depends on the parent container.
readonly attribute tmozIObjectView view |
Associated view.
Can be NULL if view does not exists. Object can be displayed using tmozIDocManager.