public class XJDocument extends XJObject
| Modifier and Type | Field and Description |
|---|---|
protected static int |
absoluteCounter |
protected boolean |
dirty |
protected XJData |
documentData |
protected String |
documentFileExtDescription |
protected List |
documentFileExts |
protected String |
documentPath |
protected String |
documentTitle |
protected XJWindow |
documentWindow |
protected XJFileMonitor |
fileMonitor |
protected boolean |
firstDocument |
protected Component |
javaContainer |
protected boolean |
writing |
| Constructor and Description |
|---|
XJDocument() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
autoSave() |
void |
awake() |
void |
changeDone() |
void |
changeReset() |
boolean |
close(boolean force) |
void |
documentDidReadData() |
void |
documentWillReadData() |
void |
documentWillWriteData() |
long |
getDateOfModificationOnDisk() |
XJData |
getDocumentData() |
String |
getDocumentFolder() |
String |
getDocumentName() |
String |
getDocumentNameWithoutExtension() |
String |
getDocumentPath() |
Component |
getSwingComponent()
Returns the original Swing container
|
XJWindow |
getWindow() |
boolean |
isDirty() |
boolean |
isFirstDocument() |
boolean |
isInternalOnly()
Returns true if the document is internal: if this is the case, it will not be
added and handled by XJApplication.
|
boolean |
isModifiedOnDisk() |
boolean |
load(String file) |
void |
observeValueForKey(Object sender,
String key,
Object object) |
boolean |
reload() |
boolean |
save(boolean saveAs) |
void |
setDirty(boolean dirty) |
void |
setDocumentData(XJData data) |
void |
setDocumentFileType(List ext,
String description) |
void |
setJavaContainer(Component container) |
void |
setTitle(String title) |
void |
setWindow(XJWindow window) |
void |
showWindow() |
void |
synchronizeLastModifiedDate() |
addObserver, addObserverForKey, bindObserverForKey, keyValueChanged, removeObserver, removeObserverForKeyprotected XJData documentData
protected XJWindow documentWindow
protected String documentTitle
protected String documentPath
protected List documentFileExts
protected String documentFileExtDescription
protected boolean dirty
protected boolean firstDocument
protected boolean writing
protected Component javaContainer
protected static int absoluteCounter
protected final XJFileMonitor fileMonitor
public boolean isInternalOnly()
public boolean isFirstDocument()
public void setDirty(boolean dirty)
public boolean isDirty()
public void changeDone()
public void changeReset()
public void setTitle(String title)
public void setWindow(XJWindow window)
public XJWindow getWindow()
public void setJavaContainer(Component container)
public Component getSwingComponent()
public void showWindow()
public void setDocumentData(XJData data)
public XJData getDocumentData()
public String getDocumentPath()
public String getDocumentFolder()
public String getDocumentName()
public String getDocumentNameWithoutExtension()
public void observeValueForKey(Object sender, String key, Object object)
observeValueForKey in class XJObjectpublic boolean autoSave()
public boolean save(boolean saveAs)
public boolean close(boolean force)
public boolean isModifiedOnDisk()
public void synchronizeLastModifiedDate()
public long getDateOfModificationOnDisk()
public void documentWillWriteData()
public void documentWillReadData()
public void documentDidReadData()
Copyright © 2013. All rights reserved.