public class IlvDataDocument extends IlvAbstractDocument
Modifier and Type | Field and Description |
---|---|
static String |
DATA_PROPERTY
Bound property name for the data associated with the document.
|
REDO_CMD, UNDO_CMD
APPLICATION_PROPERTY, ATTACHED_DOCUMENTS_PROPERTY, DOCUMENT_OWNER_PROPERTY, DOCUMENT_TEMPLATE_PROPERTY, EDITABLE_PROPERTY, MODIFIED_PROPERTY, SAVEABLE_PROPERTY, TITLE_PROPERTY
Constructor and Description |
---|
IlvDataDocument()
Constructs a new
IlvDataDocument instance. |
IlvDataDocument(Object data)
Constructs a new
IlvDataDocument associated with the
specified data. |
Modifier and Type | Method and Description |
---|---|
Object |
getData()
Returns the data object associated with this document.
|
boolean |
initializeDocument(Object userData)
Initializes a new data document.
|
void |
setData(Object data)
Sets a new data object to the document.
|
actionPerformed, activated, addActionHandler, addEdit, addPropertyChangeListener, addView, attachDocument, canRedo, canUndo, clean, documentClosed, documentClosing, getActiveView, getApplication, getDocumentTemplate, getProperty, getTitle, getUndoManager, getView, getViewCount, getViews, isModified, isProcessingAction, notifyViews, receiveMessage, redo, registerMappings, removeActionHandler, removePropertyChangeListener, removeView, removeViews, setApplication, setModified, setProperty, setTitle, undo, updateAction, updateModificationState
public static final String DATA_PROPERTY
getData()
,
setData(java.lang.Object)
,
Constant Field Valuespublic IlvDataDocument()
IlvDataDocument
instance.public IlvDataDocument(Object data)
IlvDataDocument
associated with the
specified data.data
- The user data stored by the document.setData(java.lang.Object)
public boolean initializeDocument(Object userData)
initializeDocument
in interface IlvDocument
initializeDocument
in class IlvAbstractDocument
userData
- The user data with which the document is initialized. Its value can be
null
. This parameter is set to the data document using the method
setData(java.lang.Object)
.true
. An overridden method should return true
if the document has been successfully initialized; false
otherwise.setData(java.lang.Object)
,
IlvApplication.newDocument(java.lang.Object, boolean)
,
IlvApplication.newDocument()
,
IlvApplication.newDocument(IlvDocumentTemplate, boolean, Object)
public Object getData()
setData(java.lang.Object)
,
DATA_PROPERTY
public void setData(Object data)
DATA_PROPERTY
.data
- The new data object of the document.getData()
,
DATA_PROPERTY
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.