@API(type=NOT_EXTENDABLE, src=PUBLIC) public interface AuthorActionEventHandler extends Extension
Modifier and Type | Interface and Description |
---|---|
static class |
AuthorActionEventHandler.AuthorActionEventType
Events that are delegated to this handler.
|
Modifier and Type | Method and Description |
---|---|
default boolean |
canHandleEvent(AuthorAccess authorAccess,
AuthorActionEventDetails eventDetails)
Check if an Author action event can be handled.
|
boolean |
canHandleEvent(AuthorAccess authorAccess,
AuthorActionEventHandler.AuthorActionEventType eventType)
Check if an Author action event can be handled.
|
default AuthorElement |
getListItemAncestorToSplit(AuthorNode node,
AuthorAccess access)
Return the list item ancestor of the current node that needs to be split on Enter.
|
boolean |
handleEvent(AuthorAccess authorAccess,
AuthorActionEventHandler.AuthorActionEventType eventType)
An event was generated.
|
getDescription
boolean handleEvent(AuthorAccess authorAccess, AuthorActionEventHandler.AuthorActionEventType eventType)
authorAccess
- Author access.eventType
- The type of the generated event.true
if the event was handled and the default operation
should be skipped, false
to let the default operation execute.boolean canHandleEvent(AuthorAccess authorAccess, AuthorActionEventHandler.AuthorActionEventType eventType)
authorAccess
- Access to the Author API.eventType
- The type of event generated.true
if the Author action event can be handled.default boolean canHandleEvent(AuthorAccess authorAccess, AuthorActionEventDetails eventDetails)
authorAccess
- Access to the Author API.eventDetails
- The details of the event generated.true
if the Author action event can be handled.default AuthorElement getListItemAncestorToSplit(AuthorNode node, AuthorAccess access)
node
- The node.access
- Access object to the Author API.null
.© Copyright Syncro Soft SRL 2002 - 2020. All rights reserved.