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 java.lang.Object implements AuthorListener
Convenience implementation of theAuthorListener
.
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 Constructor Description AuthorListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attributeChanged(AttributeChangedEvent e)
Called when an Author attribute is changed in one of the document's elements.void
authorNodeNameChanged(AuthorNode node)
This is called when a node has been renamed.void
authorNodeStructureChanged(AuthorNode node)
The node structure has been changed.void
beforeAttributeChange(AttributeChangedEvent e)
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
beforeContentDelete(DocumentContentDeletedEvent e)
Called before some content is deleted from the document.void
beforeContentInsert(DocumentContentInsertedEvent e)
Called when content is about to be inserted into a document.void
beforeDoctypeChange()
Called before the DOCTYPE section is about to be changed.void
contentDeleted(DocumentContentDeletedEvent e)
Called when content is deleted from the document.void
contentInserted(DocumentContentInsertedEvent e)
Called when content is inserted into the document.void
doctypeChanged()
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
-
-
-
-
Method Detail
-
attributeChanged
public void attributeChanged(AttributeChangedEvent e)
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:
AuthorListener.attributeChanged(ro.sync.ecss.extensions.api.AttributeChangedEvent)
-
authorNodeNameChanged
public void authorNodeNameChanged(AuthorNode node)
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:
AuthorListener.authorNodeNameChanged(ro.sync.ecss.extensions.api.node.AuthorNode)
-
authorNodeStructureChanged
public void authorNodeStructureChanged(AuthorNode node)
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:
AuthorListener.authorNodeStructureChanged(ro.sync.ecss.extensions.api.node.AuthorNode)
-
beforeAttributeChange
public void beforeAttributeChange(AttributeChangedEvent e)
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:
AuthorListener.beforeAttributeChange(AttributeChangedEvent)
-
beforeAuthorNodeStructureChange
public void beforeAuthorNodeStructureChange(AuthorNode authorNode)
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:
AuthorListener.beforeAuthorNodeStructureChange(ro.sync.ecss.extensions.api.node.AuthorNode)
-
beforeAuthorNodeNameChange
public void beforeAuthorNodeNameChange(AuthorNode authorNode)
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:
AuthorListener.beforeAuthorNodeNameChange(ro.sync.ecss.extensions.api.node.AuthorNode)
-
beforeContentDelete
public void beforeContentDelete(DocumentContentDeletedEvent e)
Description copied from interface:AuthorListener
Called before some content is deleted from the document.- Specified by:
beforeContentDelete
in interfaceAuthorListener
- Parameters:
e
- TheDocumentContentDeletedEvent
.- See Also:
AuthorListener.beforeContentDelete(DocumentContentDeletedEvent)
-
beforeContentInsert
public void beforeContentInsert(DocumentContentInsertedEvent e)
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:
AuthorListener.beforeContentInsert(DocumentContentInsertedEvent)
-
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:
AuthorListener.beforeDoctypeChange()
-
contentDeleted
public void contentDeleted(DocumentContentDeletedEvent e)
Description copied from interface:AuthorListener
Called when content is deleted from the document.- Specified by:
contentDeleted
in interfaceAuthorListener
- Parameters:
e
- TheDocumentContentDeletedEvent
.- See Also:
AuthorListener.contentDeleted(DocumentContentDeletedEvent)
-
contentInserted
public void contentInserted(DocumentContentInsertedEvent e)
Description copied from interface:AuthorListener
Called when content is inserted into the document.- Specified by:
contentInserted
in interfaceAuthorListener
- Parameters:
e
- TheDocumentContentInsertedEvent
.- See Also:
AuthorListener.contentInserted(DocumentContentInsertedEvent)
-
doctypeChanged
public void doctypeChanged()
Description copied from interface:AuthorListener
The DOCTYPE section has been changed.- Specified by:
doctypeChanged
in interfaceAuthorListener
- See Also:
AuthorListener.doctypeChanged()
-
documentChanged
public void documentChanged(AuthorDocument oldDocument, AuthorDocument newDocument)
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:
AuthorListener.documentChanged(ro.sync.ecss.extensions.api.node.AuthorDocument, ro.sync.ecss.extensions.api.node.AuthorDocument)
-
-