Oxygen XML Editor 11.2 Author API

ro.sync.ecss.extensions.api
Interface AuthorListener

All Known Implementing Classes:
AuthorListenerAdapter

public interface AuthorListener

Listener notified about Author document changes, document structure changes and document content changes.


Method Summary
 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.
 

Method Detail

beforeContentDelete

void beforeContentDelete(DocumentContentDeletedEvent e)
Called before some content is deleted from the document.

Parameters:
e - The DocumentContentDeletedEvent.

beforeAttributeChange

void beforeAttributeChange(AttributeChangedEvent e)
Called when an attribute is about to be changed in one of the document's elements.

Parameters:
e - The AttributeChangedEvent.

beforeContentInsert

void beforeContentInsert(DocumentContentInsertedEvent e)
Called when content is about to be inserted into a document.

Parameters:
e - The DocumentContentInsertedEvent.

beforeDoctypeChange

void beforeDoctypeChange()
Called before the DOCTYPE section is about to be changed.


beforeAuthorNodeStructureChange

void beforeAuthorNodeStructureChange(AuthorNode authorNode)
Called when a node structure is about to be changed.

Parameters:
authorNode - The AuthorNode that contains the modification.

beforeAuthorNodeNameChange

void beforeAuthorNodeNameChange(AuthorNode authorNode)
Called when a node name is about to be changed.
The authorNode is a reference to the actual node in the AuthorDocument 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.

Parameters:
authorNode - The AuthorNode that will be changed.

attributeChanged

void attributeChanged(AttributeChangedEvent e)
Called when an Author attribute is changed in one of the document's elements.

Parameters:
e - The AttributeChangedEvent.

authorNodeNameChanged

void authorNodeNameChanged(AuthorNode node)
This is called when a node has been renamed.

Parameters:
node - The AuthorNode that was renamed.

authorNodeStructureChanged

void authorNodeStructureChanged(AuthorNode node)
The node structure has been changed. An insert or delete operation has been made and affected the children of the node.

Parameters:
node - The AuthorNode that contains the modification.

documentChanged

void documentChanged(AuthorDocument oldDocument,
                     AuthorDocument newDocument)
A new document has been set into the author page.

Parameters:
oldDocument - The old Author document
newDocument - The new Author document.

contentDeleted

void contentDeleted(DocumentContentDeletedEvent e)
Called when content is deleted from the document.

Parameters:
e - The DocumentContentDeletedEvent.

contentInserted

void contentInserted(DocumentContentInsertedEvent e)
Called when content is inserted into the document.

Parameters:
e - The DocumentContentInsertedEvent.

doctypeChanged

void doctypeChanged()
The DOCTYPE section has been changed.


Oxygen XML Editor 11.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.