Package de.sciss.app
Interface Document
-
- All Superinterfaces:
Disposable
- All Known Implementing Classes:
BasicDocument
public interface Document extends Disposable
TheDocumentinterface is an attempt to create common classes and interfaces (the packagede.sciss.app) which can be shared by different programmes, such as Meloncillo or FScape, without having to make adjustments in different places each time a modification is made. This interface describes the most prominent methods needed for a general application document.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ApplicationgetApplication()Returns the application carrying this document.java.lang.StringgetName()UndoManagergetUndoManager()Returns the undo manager responsible for this document.booleanisDirty()Asks whether this document contains unsaved changes or not.voidsetDirty(boolean dirty)Marks this document as having unsaved changes or as being saved.-
Methods inherited from interface de.sciss.util.Disposable
dispose
-
-
-
-
Method Detail
-
getApplication
Application getApplication()
Returns the application carrying this document.- Returns:
- the application carrying this document
-
getUndoManager
UndoManager getUndoManager()
Returns the undo manager responsible for this document.- Returns:
- the undo manager responsible for this document
-
isDirty
boolean isDirty()
Asks whether this document contains unsaved changes or not.- Returns:
trueindicates that the document contains unsaved changes,falseindicates that the document was saved or cleared.
-
setDirty
void setDirty(boolean dirty)
Marks this document as having unsaved changes or as being saved.- Parameters:
dirty-trueindicates that the document contains unsaved changes,falseindicates that the document was saved or cleared.
-
getName
java.lang.String getName()
-
-