Package ro.sync.ecss.extensions.api
Interface AuthorActionEventHandler
- All Superinterfaces:
- Extension
- All Known Implementing Classes:
- AuthorActionEventHandlerBase,- DefaultAuthorActionEventHandler,- DITAAuthorActionEventHandler,- DocbookAuthorActionEventHandler,- TEIAuthorActionEventHandler,- XHTMLAuthorActionEventHandler
Intercepts action events in the Author mode and can handle them in a special manner.
 Since 19.0 an AuthorActionEventHandlerBase extended API base has been added which can be extended to provide additional functionality.
- Since:
- 18
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumEvents that are delegated to this handler.
- 
Method SummaryModifier and TypeMethodDescriptiondefault booleancanHandleEvent(AuthorAccess authorAccess, AuthorActionEventDetails eventDetails) Check if an Author action event can be handled.booleancanHandleEvent(AuthorAccess authorAccess, AuthorActionEventHandler.AuthorActionEventType eventType) Check if an Author action event can be handled.default AuthorElementgetListItemAncestorToSplit(AuthorNode node, AuthorAccess access) Return the list item ancestor of the current node that needs to be split on Enter.booleanhandleEvent(AuthorAccess authorAccess, AuthorActionEventHandler.AuthorActionEventType eventType) An event was generated.Methods inherited from interface ro.sync.ecss.extensions.api.ExtensiongetDescription
- 
Method Details- 
handleEventboolean handleEvent(AuthorAccess authorAccess, AuthorActionEventHandler.AuthorActionEventType eventType) An event was generated.- Parameters:
- authorAccess- Author access.
- eventType- The type of the generated event.
- Returns:
- trueif the event was handled and the default operation should be skipped,- falseto let the default operation execute.
 
- 
canHandleEventboolean canHandleEvent(AuthorAccess authorAccess, AuthorActionEventHandler.AuthorActionEventType eventType) Check if an Author action event can be handled.- Parameters:
- authorAccess- Access to the Author API.
- eventType- The type of event generated.
- Returns:
- trueif the Author action event can be handled.
 
- 
canHandleEventCheck if an Author action event can be handled.- Parameters:
- authorAccess- Access to the Author API.
- eventDetails- The details of the event generated.
- Returns:
- trueif the Author action event can be handled.
 
- 
getListItemAncestorToSplitReturn the list item ancestor of the current node that needs to be split on Enter.- Parameters:
- node- The node.
- access- Access object to the Author API.
- Returns:
- the list item ancestor of the current node that needs to be split on Enter, or null.
 
 
-