Interface AuthorActionEventHandler

    • Method Detail

      • handleEvent

        boolean handleEvent​(AuthorAccess authorAccess,
                            AuthorActionEventHandler.AuthorActionEventType eventType)
        An event was generated.
        Parameters:
        authorAccess - Author access.
        eventType - The type of the generated event.
        Returns:
        true if the event was handled and the default operation should be skipped, false to let the default operation execute.
      • canHandleEvent

        boolean 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:
        true if the Author action event can be handled.
      • canHandleEvent

        default boolean canHandleEvent​(AuthorAccess authorAccess,
                                       AuthorActionEventDetails eventDetails)
        Check if an Author action event can be handled.
        Parameters:
        authorAccess - Access to the Author API.
        eventDetails - The details of the event generated.
        Returns:
        true if the Author action event can be handled.
      • getListItemAncestorToSplit

        default AuthorElement getListItemAncestorToSplit​(AuthorNode node,
                                                         AuthorAccess access)
        Return 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.