Package ro.sync.ecss.extensions.api
Class AuthorExtensionStateListenerDelegator
java.lang.Object
ro.sync.ecss.extensions.api.AuthorExtensionStateListenerDelegator
- All Implemented Interfaces:
AuthorExtensionStateListener,Extension
@API(type=EXTENDABLE,
src=PUBLIC)
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivated(AuthorAccess authorAccess) Method called when the Author extension was activated.voidaddListener(AuthorExtensionStateListener listener) Add a new listener.voiddeactivated(AuthorAccess authorAccess) Method called when the Author extension was deactivated.voidremoveListener(AuthorExtensionStateListener listener) Remove a listener.
-
Constructor Details
-
AuthorExtensionStateListenerDelegator
public AuthorExtensionStateListenerDelegator()
-
-
Method Details
-
activated
Description copied from interface:AuthorExtensionStateListenerMethod 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 likeAuthorMouseListenerorAuthorListenercan be added at this point.- Specified by:
activatedin interfaceAuthorExtensionStateListener- Parameters:
authorAccess- TheAuthorAccessof the Author page where the listener was activated.- See Also:
-
deactivated
Description copied from interface:AuthorExtensionStateListenerMethod 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:
deactivatedin interfaceAuthorExtensionStateListener- Parameters:
authorAccess- TheAuthorAccessof the Author page where the listener was deactivated.- See Also:
-
addListener
Add a new listener.- Parameters:
listener- The new extension state listener.
-
removeListener
Remove a listener.- Parameters:
listener- The extension state listener to remove.
-
getDescription
- Specified by:
getDescriptionin interfaceExtension- Returns:
- The description of the extension.
- See Also:
-