Oxygen XML Editor 11.2 Author API

ro.sync.ecss.extensions.api
Class AuthorExtensionStateListenerDelegator

java.lang.Object
  extended by ro.sync.ecss.extensions.api.AuthorExtensionStateListenerDelegator
All Implemented Interfaces:
AuthorExtensionStateListener, Extension

public class AuthorExtensionStateListenerDelegator
extends Object
implements AuthorExtensionStateListener

A single Author extension state listeners which delegates to other registered listeners. This is useful in case you need to receive activated() events in more implementations.


Constructor Summary
AuthorExtensionStateListenerDelegator()
           
 
Method Summary
 void activated(AuthorAccess authorAccess)
          Method called when the Author extension was activated.
 void addListener(AuthorExtensionStateListener listener)
          Add a new listener.
 void deactivated(AuthorAccess authorAccess)
          Method called when the Author extension was deactivated.
 String getDescription()
           
 void removeListener(AuthorExtensionStateListener listener)
          Remove a listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorExtensionStateListenerDelegator

public AuthorExtensionStateListenerDelegator()
Method Detail

activated

public void activated(AuthorAccess authorAccess)
Description copied from interface: AuthorExtensionStateListener
Method called when the Author extension was activated. This event is triggered when the Author extension where this listener is defined was activated in relation with a document opened in Author page. Listeners like AuthorMouseListener or AuthorListener can be added at this point.

Specified by:
activated in interface AuthorExtensionStateListener
Parameters:
authorAccess - The AuthorAccess of the Author page where the listener was activated.
See Also:
AuthorExtensionStateListener.activated(ro.sync.ecss.extensions.api.AuthorAccess)

deactivated

public void deactivated(AuthorAccess authorAccess)
Description copied from interface: AuthorExtensionStateListener
Method called when the Author extension was deactivated. This event is triggered when another Author extension corresponding to the the current document opened in Author page was activated, the user switches to another editor page or the editor is closed.

Specified by:
deactivated in interface AuthorExtensionStateListener
Parameters:
authorAccess - The AuthorAccess of the Author page where the listener was deactivated.
See Also:
AuthorExtensionStateListener.deactivated(ro.sync.ecss.extensions.api.AuthorAccess)

addListener

public void addListener(AuthorExtensionStateListener listener)
Add a new listener.

Parameters:
listener - The new extension state listener.

removeListener

public void removeListener(AuthorExtensionStateListener listener)
Remove a listener.

Parameters:
listener - The extension state listener to remove.

getDescription

public String getDescription()
Specified by:
getDescription in interface Extension
Returns:
The description of the extension.
See Also:
Extension.getDescription()

Oxygen XML Editor 11.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.