@API(type=INTERNAL,
src=PUBLIC)
public abstract class DeleteRowOperationBase
extends AbstractTableOperation
TABLE_INFO_ARGUMENT_DESCRIPTOR, TABLE_INFO_ARGUMENT_NAME, tableHelperNAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR| Constructor and Description |
|---|
DeleteRowOperationBase(AuthorTableHelper documentTypeHelper)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract SplitCellAboveBelowOperationBase |
createSplitCellOperation()
Create the split cell operation.
|
void |
doOperationInternal(AuthorAccess authorAccess,
ArgumentsMap args)
Delete the table rows.
|
ArgumentDescriptor[] |
getArguments()
No arguments for this operation.
|
java.lang.String |
getDescription() |
boolean |
performDeleteRows(AuthorAccess authorAccess,
int startRowOffset,
int endRowOffset)
Delete table rows.
|
boolean |
performDeleteRows(AuthorAccess authorAccess,
java.util.List<ContentInterval> contentIntervals)
Delete table rows.
|
createEmptyCell, doOperation, findCellInsertionOffset, getElementAncestor, isElement, isTableElementpublic DeleteRowOperationBase(AuthorTableHelper documentTypeHelper)
documentTypeHelper - The table helper specific to a document type.
An implementation of AuthorTableHelper.public boolean performDeleteRows(AuthorAccess authorAccess, java.util.List<ContentInterval> contentIntervals) throws AuthorOperationException
nullauthorAccess - 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.true if the rows are deleted.java.lang.IllegalArgumentExceptionAuthorOperationExceptionpublic boolean performDeleteRows(AuthorAccess authorAccess, int startRowOffset, int endRowOffset) throws AuthorOperationException
0authorAccess - The access to Author operations.startRowOffset - The start row offset.endRowOffset - The end row offset.true if at least one row is deleted.java.lang.IllegalArgumentExceptionAuthorOperationExceptionpublic final void doOperationInternal(AuthorAccess authorAccess, ArgumentsMap args) throws java.lang.IllegalArgumentException, AuthorOperationException
doOperationInternal in class AbstractTableOperationauthorAccess - The author access.
Provides access to specific informations and actions for
editor, document, workspace, tables, change tracking, utility a.s.o.args - The map of arguments. All the arguments defined by method
AuthorOperation.getArguments() must be present in the map of arguments.java.lang.IllegalArgumentException - Thrown when one or more arguments are illegal.AuthorOperationException - Thrown when the operation fails.ro.sync.ecss.extensions.api.AuthorOperation#doOperationInternal(ro.sync.ecss.extensions.api.AuthorAccess, ro.sync.ecss.extensions.api.ArgumentsMap)public ArgumentDescriptor[] getArguments()
ArgumentDescriptor representing
the arguments this operation uses.AuthorOperation.getArguments()public java.lang.String getDescription()
Extension.getDescription()protected abstract SplitCellAboveBelowOperationBase createSplitCellOperation()
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.