Class SplitCellAboveBelowOperationBase
java.lang.Object
ro.sync.ecss.extensions.commons.table.operations.AbstractTableOperation
ro.sync.ecss.extensions.commons.table.operations.SplitCellAboveBelowOperationBase
- All Implemented Interfaces:
AuthorOperation,Extension
- Direct Known Subclasses:
SplitCellAboveBelowOperation,SplitCellAboveBelowOperation,SplitCellAboveBelowOperation,SplitCellAboveBelowOperation
@API(type=INTERNAL,
src=PUBLIC)
public abstract class SplitCellAboveBelowOperationBase
extends AbstractTableOperation
Base operation for splitting a table cell.
The new cell resulting from the split operation will be positioned above or below the original cell.
-
Field Summary
Fields inherited from class ro.sync.ecss.extensions.commons.table.operations.AbstractTableOperation
CHANGE_TRACKING_BEHAVIOR_ARGUMENT, TABLE_INFO_ARGUMENT_DESCRIPTOR, TABLE_INFO_ARGUMENT_NAME, tableHelperFields inherited from interface ro.sync.ecss.extensions.api.AuthorOperation
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR -
Constructor Summary
ConstructorsConstructorDescriptionSplitCellAboveBelowOperationBase(AuthorTableHelper tableHelper) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoOperationInternal(AuthorAccess authorAccess, ArgumentsMap args) Perform the actual operation.protected abstract String[]voidsplitCell(AuthorElement cell, AuthorAccess authorAccess, boolean above) Split the cell.Methods inherited from class ro.sync.ecss.extensions.commons.table.operations.AbstractTableOperation
createEmptyCell, doOperation, findCellInsertionOffset, getElementAncestor, isElement, isTableElement
-
Constructor Details
-
SplitCellAboveBelowOperationBase
Constructor.- Parameters:
tableHelper- Document type specific table information helper.
-
-
Method Details
-
doOperationInternal
protected void doOperationInternal(AuthorAccess authorAccess, ArgumentsMap args) throws AuthorOperationException Description copied from class:AbstractTableOperationPerform the actual operation.- Specified by:
doOperationInternalin classAbstractTableOperation- Parameters:
authorAccess- 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 methodAuthorOperation.getArguments()must be present in the map of arguments.- Throws:
AuthorOperationException- Thrown when the operation fails.- See Also:
-
splitCell
public void splitCell(AuthorElement cell, AuthorAccess authorAccess, boolean above) throws AuthorOperationException, BadLocationException Split the cell.- Parameters:
cell- The table cell to split.authorAccess- Access to author functionality.above- Iftruethe cell will be split above.- Throws:
AuthorOperationExceptionBadLocationException
-
getArguments
- Returns:
- An array of
ArgumentDescriptorrepresenting the arguments this operation uses. - See Also:
-
getDescription
- Returns:
- The description of the extension.
- See Also:
-
getIgnoredAttributes
- Returns:
- The attributes which should be skipped, when creating a copy of the split cell.
-