public interface IlvFileDocument extends IlvDocument
Modifier and Type | Field and Description |
---|---|
static String |
FILE_FILTER_PROPERTY
Bound property for storing the file filter that was used when reading
the file of the document.
|
static String |
MRU_PROPERTY
Bound property name that specifies whether the pathname of the file
document should be stored in the Most Recently Used file list
of the application.
|
APPLICATION_PROPERTY, ATTACHED_DOCUMENTS_PROPERTY, DOCUMENT_OWNER_PROPERTY, DOCUMENT_TEMPLATE_PROPERTY, EDITABLE_PROPERTY, MODIFIED_PROPERTY, SAVEABLE_PROPERTY, TITLE_PROPERTY
Modifier and Type | Method and Description |
---|---|
URL |
getPathName()
Returns the path of the document.
|
boolean |
readDocument(URL url,
IlvFileFilter filter)
Initializes the document data from the specified file
url . |
void |
setPathName(URL path)
Sets the path of the document.
|
boolean |
writeDocument(URL url,
IlvFileFilter filter)
Stores the document data in the file with the specified
url . |
activated, addView, clean, documentClosed, documentClosing, getApplication, getDocumentTemplate, getTitle, getView, getViewCount, initializeDocument, isModified, removeView, removeViews, setModified, setTitle
isProcessingAction, updateAction
actionPerformed
receiveMessage
addPropertyChangeListener, getProperty, removePropertyChangeListener, setProperty
static final String FILE_FILTER_PROPERTY
static final String MRU_PROPERTY
If this property is not set or its value is equal to Boolean.TRUE
,
the pathname of the file document is automatically stored in
the MRU list of the application.
Otherwise, the pathname of the file document is not stored in the MRU list
of the application.
URL getPathName()
null
if the
document is not associated with a file.setPathName(java.net.URL)
void setPathName(URL path)
getPathName()
boolean readDocument(URL url, IlvFileFilter filter)
url
.url
- The file URL to read data from.filter
- The file filter that indicates the format to use for
reading the data.true
if the document could read its data;
false
otherwise.writeDocument(java.net.URL, ilog.views.appframe.docview.IlvFileFilter)
boolean writeDocument(URL url, IlvFileFilter filter)
url
.url
- The file URL of the file to write data into.filter
- The file filter that indicates the format to use for
writing the data.true
if document data could write its data;
false
otherwise.readDocument(java.net.URL, ilog.views.appframe.docview.IlvFileFilter)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.