Construct a new document context.
Private _conflictPrivate _contentsPrivate _createPrivate _dialogsPrivate _disposedPrivate _factoryPrivate _filePrivate _finishFinish a saveAs operation given a new path.
Private _handleHandle a save/load error with a dialog.
Private _isPrivate _isPrivate _isPrivate _lastPrivate _linePrivate _managerPrivate _maybeAdd a checkpoint the file is writable.
Private _maybeHandle a time conflict.
Private _maybeSave a file, dealing with conflicts.
Private _modelPrivate _onHandle a change on the contents manager.
Private _onHandle a change to a session property.
Private _openerPrivate _pathPrivate _pathPrivate _populateHandle an initial population.
Private _populatedPrivate _raiseHandle a time conflict.
Private _readyPrivate _renameRename the document.
the new name for the document.
Private _revertRevert the document contents to disk contents.
call the model's initialization function after deserializing the content.
Private _saveSave the document contents to disk.
Private _savePrivate _transPrivate _updateUpdate our contents model, without the content.
Private _updateReadonly sessionThe client session object associated with the context.
Protected translatorReadonly urlThe url resolver for the context.
Protected canWhether the document can be saved via the Contents API.
Test whether the context is disposed.
Whether the context is ready.
Configurable margin used to detect document modification conflicts, in milliseconds
Configurable margin used to detect document modification conflicts, in milliseconds
The current local path associated with the document. If the document is in the default notebook file browser, this is the same as the path.
Get the model associated with the document.
The current path associated with the document.
A signal emitted on the start and end of a saving operation.
Add a sibling widget to the document manager.
The widget to add to the document manager.
Optional options: IOpenOptionsThe desired options for adding the sibling.
A disposable used to remove the sibling if desired.
It is assumed that the widget has the same model and context as the original widget.
Create a checkpoint for the file.
List available checkpoints for a file.
Generated using TypeDoc
An implementation of a document context.
This class is typically instantiated by the document manager.