Class DeleteRowOperationBase

    • Constructor Detail

      • DeleteRowOperationBase

        public DeleteRowOperationBase​(AuthorTableHelper documentTypeHelper)
        Constructor.
        Parameters:
        documentTypeHelper - The table helper specific to a document type. An implementation of AuthorTableHelper.
    • Method Detail

      • performDeleteRows

        public boolean performDeleteRows​(AuthorAccess authorAccess,
                                         java.util.List<ContentInterval> contentIntervals)
                                  throws AuthorOperationException
        Delete table rows. The rows that must be deleted are determined in the following order:
        • by the list of content intervals if not null
        • all the rows that intersect the selection
        • the row at caret offset
        Parameters:
        authorAccess - The access to Author operations.
        contentIntervals - The content intervals that intersects the rows that must be deleted. Each interval contains two integers, one for start interval offset and one for end interval offset.
        Returns:
        true if the rows are deleted.
        Throws:
        AuthorOperationException
      • performDeleteRows

        public boolean performDeleteRows​(AuthorAccess authorAccess,
                                         int startRowOffset,
                                         int endRowOffset)
                                  throws AuthorOperationException
        Delete table rows. The row that must be deleted is determined in the following order:
        • by startRowOffset and endRowOffset if both are bigger than 0
        • all the rows that intersect the selection
        • the row at caret offset
        Parameters:
        authorAccess - The access to Author operations.
        startRowOffset - The start row offset.
        endRowOffset - The end row offset.
        Returns:
        true if at least one row is deleted.
        Throws:
        java.lang.IllegalArgumentException
        AuthorOperationException
      • getDescription

        public java.lang.String getDescription()
        Returns:
        The description of the extension.
        See Also:
        Extension.getDescription()
      • createSplitCellOperation

        protected abstract SplitCellAboveBelowOperationBase createSplitCellOperation()
        Create the split cell operation. The operation is needed to split the cells that span over multiple rows and start on the row to be deleted.
        Returns:
        The split cell operation.