Package ro.sync.ecss.extensions.api
Class AuthorListenerAdapter
java.lang.Object
ro.sync.ecss.extensions.api.AuthorListenerAdapter
- All Implemented Interfaces:
AuthorListener
,CompoundEditListener
@API(type=EXTENDABLE,
src=PUBLIC)
public class AuthorListenerAdapter
extends Object
implements AuthorListener
Convenience implementation of the
DANGER: You must avoid making live document changes on the received call backs. Please use instead the "ro.sync.ecss.extensions.api.AuthorDocumentController.setDocumentFilter(AuthorDocumentFilter)" API.
AuthorListener
.
DANGER: You must avoid making live document changes on the received call backs. Please use instead the "ro.sync.ecss.extensions.api.AuthorDocumentController.setDocumentFilter(AuthorDocumentFilter)" API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when an Author attribute is changed in one of the document's elements.void
This is called when a node has been renamed.void
The node structure has been changed.void
Called when an attribute is about to be changed in one of the document's elements.void
beforeAuthorNodeNameChange
(AuthorNode authorNode) Called when a node name is about to be changed.void
beforeAuthorNodeStructureChange
(AuthorNode authorNode) Called when a node structure is about to be changed.void
Called before some content is deleted from the document.void
Called when content is about to be inserted into a document.void
Called before the DOCTYPE section is about to be changed.void
Called when content is deleted from the document.void
Called when content is inserted into the document.void
The DOCTYPE section has been changed.void
documentChanged
(AuthorDocument oldDocument, AuthorDocument newDocument) A new document has been set into the author page.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ro.sync.ecss.extensions.api.CompoundEditListener
beforeCompoundEditCancelled, compoundEditCancelled, compoundEditEnded, compoundEditStarted
-
Constructor Details
-
AuthorListenerAdapter
public AuthorListenerAdapter()
-
-
Method Details
-
attributeChanged
Description copied from interface:AuthorListener
Called when an Author attribute is changed in one of the document's elements.- Specified by:
attributeChanged
in interfaceAuthorListener
- Parameters:
e
- TheAttributeChangedEvent
.- See Also:
-
authorNodeNameChanged
Description copied from interface:AuthorListener
This is called when a node has been renamed.- Specified by:
authorNodeNameChanged
in interfaceAuthorListener
- Parameters:
node
- TheAuthorNode
that was renamed.- See Also:
-
authorNodeStructureChanged
Description copied from interface:AuthorListener
The node structure has been changed. An insert or delete operation has been made and affected the children of the node.- Specified by:
authorNodeStructureChanged
in interfaceAuthorListener
- Parameters:
node
- TheAuthorNode
that contains the modification.- See Also:
-
beforeAttributeChange
Description copied from interface:AuthorListener
Called when an attribute is about to be changed in one of the document's elements.- Specified by:
beforeAttributeChange
in interfaceAuthorListener
- Parameters:
e
- TheAttributeChangedEvent
.- See Also:
-
beforeAuthorNodeStructureChange
Description copied from interface:AuthorListener
Called when a node structure is about to be changed.- Specified by:
beforeAuthorNodeStructureChange
in interfaceAuthorListener
- Parameters:
authorNode
- TheAuthorNode
that contains the modification.- See Also:
-
beforeAuthorNodeNameChange
Description copied from interface:AuthorListener
Called when a node name is about to be changed.
TheauthorNode
is a reference to the actual node in theAuthorDocument
so its name will be changed after the name change operation is completed.
If the old name of the node will be needed after the call of this method it should be obtained and saved during this method call.- Specified by:
beforeAuthorNodeNameChange
in interfaceAuthorListener
- Parameters:
authorNode
- TheAuthorNode
that will be changed.- See Also:
-
beforeContentDelete
Description copied from interface:AuthorListener
Called before some content is deleted from the document.- Specified by:
beforeContentDelete
in interfaceAuthorListener
- Parameters:
e
- TheDocumentContentDeletedEvent
.- See Also:
-
beforeContentInsert
Description copied from interface:AuthorListener
Called when content is about to be inserted into a document.- Specified by:
beforeContentInsert
in interfaceAuthorListener
- Parameters:
e
- TheDocumentContentInsertedEvent
.- See Also:
-
beforeDoctypeChange
public void beforeDoctypeChange()Description copied from interface:AuthorListener
Called before the DOCTYPE section is about to be changed.- Specified by:
beforeDoctypeChange
in interfaceAuthorListener
- See Also:
-
contentDeleted
Description copied from interface:AuthorListener
Called when content is deleted from the document.- Specified by:
contentDeleted
in interfaceAuthorListener
- Parameters:
e
- TheDocumentContentDeletedEvent
.- See Also:
-
contentInserted
Description copied from interface:AuthorListener
Called when content is inserted into the document.- Specified by:
contentInserted
in interfaceAuthorListener
- Parameters:
e
- TheDocumentContentInsertedEvent
.- See Also:
-
doctypeChanged
public void doctypeChanged()Description copied from interface:AuthorListener
The DOCTYPE section has been changed.- Specified by:
doctypeChanged
in interfaceAuthorListener
- See Also:
-
documentChanged
Description copied from interface:AuthorListener
A new document has been set into the author page.- Specified by:
documentChanged
in interfaceAuthorListener
- Parameters:
oldDocument
- The old Author documentnewDocument
- The new Author document.- See Also:
-