Package de.loskutov.anyedit.compare
Class EditableSharedDocumentAdapter.SharedDocumentAdapterListener
- java.lang.Object
-
- de.loskutov.anyedit.compare.EditableSharedDocumentAdapter.SharedDocumentAdapterListener
-
- Enclosing class:
- EditableSharedDocumentAdapter
public static class EditableSharedDocumentAdapter.SharedDocumentAdapterListener extends java.lang.Object
Interface that provides this adapter with the state of the typed element and supports call backs to the element when the adapter state changes.
-
-
Field Summary
Fields Modifier and Type Field Description private StreamContent
content
-
Constructor Summary
Constructors Constructor Description SharedDocumentAdapterListener(StreamContent content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
handleDocumentConnected()
Method that is invoked when the adapter connects to the document provider.(package private) void
handleDocumentDeleted()
Method invoked when the file behind the shared document is deleted.(package private) void
handleDocumentDisconnected()
Method that is invoked when the adapter disconnects from the document provider.(package private) void
handleDocumentFlushed()
Method invoked when changes in the document are flushed to the adapter.(package private) void
handleDocumentSaved()
Method invoked when the document dirty state changes from dirty to clean.
-
-
-
Field Detail
-
content
private final StreamContent content
-
-
Constructor Detail
-
SharedDocumentAdapterListener
public SharedDocumentAdapterListener(StreamContent content)
-
-
Method Detail
-
handleDocumentConnected
void handleDocumentConnected()
Method that is invoked when the adapter connects to the document provider. This method is only invoked when the adapter first connects to the document.
-
handleDocumentDisconnected
void handleDocumentDisconnected()
Method that is invoked when the adapter disconnects from the document provider. This method is only invoked when the adapter no longer has any connection to the document provider.
-
handleDocumentFlushed
void handleDocumentFlushed()
Method invoked when changes in the document are flushed to the adapter.
-
handleDocumentDeleted
void handleDocumentDeleted()
Method invoked when the file behind the shared document is deleted.
-
handleDocumentSaved
void handleDocumentSaved()
Method invoked when the document dirty state changes from dirty to clean.
-
-