@API(type=NOT_EXTENDABLE, src=PUBLIC) public class DITAAuthorActionEventHandler extends DefaultAuthorActionEventHandler
AuthorActionEventHandler.AuthorActionEventType
Constructor and Description |
---|
DITAAuthorActionEventHandler() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
areCompatibleLists(AuthorNode node1,
AuthorNode node2)
Check if two given nodes are compatible lists (i.e.
|
boolean |
canHandleEvent(AuthorAccess authorAccess,
AuthorActionEventDetails eventDetails)
Check if an Author action event can be handled.
|
AuthorElement |
getListItemAncestorToSplit(AuthorNode node,
AuthorAccess access)
Return the list item ancestor of the current node that needs to be split on Enter.
|
protected java.lang.String |
getParagraphElement(AuthorAccess authorAccess)
Get the preferred XML element content to be inserted.
|
boolean |
handleEvent(AuthorAccess authorAccess,
AuthorActionEventHandler.AuthorActionEventType eventType)
An event was generated.
|
protected boolean |
isList(AuthorNode node)
Check if the given node is a list.
|
protected boolean |
isMovableListItem(AuthorAccess authorAccess,
AuthorNode candidate)
Checks if this node represents a list item that can be promoted/demoted.
|
canHandleEvent, getContentCompletionActions, getDescription, getPreferredXMLElementContent, promote, promoteSubListItems
protected boolean isMovableListItem(AuthorAccess authorAccess, AuthorNode candidate)
DefaultAuthorActionEventHandler
isMovableListItem
in class DefaultAuthorActionEventHandler
authorAccess
- The Author access.candidate
- The node that candidates for promotion/demotion.true
if the list item can be promoted/demoted.DefaultAuthorActionEventHandler.isMovableListItem(ro.sync.ecss.extensions.api.AuthorAccess, ro.sync.ecss.extensions.api.node.AuthorNode)
protected boolean isList(AuthorNode node)
DefaultAuthorActionEventHandler
isList
in class DefaultAuthorActionEventHandler
node
- The node.true
if the node is a list.DefaultAuthorActionEventHandler.isList(ro.sync.ecss.extensions.api.node.AuthorNode)
protected java.lang.String getParagraphElement(AuthorAccess authorAccess)
DefaultAuthorActionEventHandler
null
.getParagraphElement
in class DefaultAuthorActionEventHandler
authorAccess
- The author access.protected boolean areCompatibleLists(AuthorNode node1, AuthorNode node2)
DefaultAuthorActionEventHandler
areCompatibleLists
in class DefaultAuthorActionEventHandler
true
if the two given nodes are compatible lists.DefaultAuthorActionEventHandler.areCompatibleLists(ro.sync.ecss.extensions.api.node.AuthorNode, ro.sync.ecss.extensions.api.node.AuthorNode)
public AuthorElement getListItemAncestorToSplit(AuthorNode node, AuthorAccess access)
AuthorActionEventHandler
node
- The node.access
- Access object to the Author API.null
.AuthorActionEventHandler.getListItemAncestorToSplit(ro.sync.ecss.extensions.api.node.AuthorNode, ro.sync.ecss.extensions.api.AuthorAccess)
public boolean handleEvent(AuthorAccess authorAccess, AuthorActionEventHandler.AuthorActionEventType eventType)
AuthorActionEventHandler
handleEvent
in interface AuthorActionEventHandler
handleEvent
in class DefaultAuthorActionEventHandler
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.DefaultAuthorActionEventHandler.handleEvent(ro.sync.ecss.extensions.api.AuthorAccess, ro.sync.ecss.extensions.api.AuthorActionEventHandler.AuthorActionEventType)
public boolean canHandleEvent(AuthorAccess authorAccess, AuthorActionEventDetails eventDetails)
AuthorActionEventHandler
authorAccess
- Access to the Author API.eventDetails
- The details of the event generated.true
if the Author action event can be handled.AuthorActionEventHandler.canHandleEvent(ro.sync.ecss.extensions.api.AuthorAccess, ro.sync.ecss.extensions.api.AuthorActionEventDetails)
© Copyright Syncro Soft SRL 2002 - 2021. All rights reserved.