Class SplitOperationBase
java.lang.Object
ro.sync.ecss.extensions.commons.table.operations.AbstractTableOperation
ro.sync.ecss.extensions.commons.table.operations.SplitOperationBase
- All Implemented Interfaces:
AuthorOperation,Extension
- Direct Known Subclasses:
SplitOperation,SplitOperation,SplitOperation,SplitOperation
@API(type=INTERNAL,
src=PUBLIC)
public abstract class SplitOperationBase
extends AbstractTableOperation
Operation for splitting the selected table cell (or the cell at caret
when there is no selection), if it spans over multiple rows or columns
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoOperationInternal(AuthorAccess authorAccess, ArgumentsMap args) Split the selected table cell (or the cell at caret when there is no selection), if it spans over multiple rows or columnsprotected StringGet the ID of the help page which will be called by the end user.protected abstract String[]protected abstract String[]protected abstract InsertColumnOperationBaseGet the insert column operation to be used when splitting cells that have no initial span.protected abstract InsertRowOperationBaseGet the insert row operation to be used when splitting cells that have no initial span.protected abstract JoinOperationBaseGet the join operation to be used when splitting cells that have no initial span.Methods inherited from class ro.sync.ecss.extensions.commons.table.operations.AbstractTableOperation
createEmptyCell, doOperation, findCellInsertionOffset, getElementAncestor, isElement, isTableElement
-
Constructor Details
-
SplitOperationBase
Constructor.- Parameters:
tableHelper- Table helper with methods specific to a document type.
-
-
Method Details
-
doOperationInternal
protected void doOperationInternal(AuthorAccess authorAccess, ArgumentsMap args) throws AuthorOperationException Split the selected table cell (or the cell at caret when there is no selection), if it spans over multiple rows or columns- 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:
-
getInsertRowOperation
Get the insert row operation to be used when splitting cells that have no initial span. -
getInsertColumnOperation
Get the insert column operation to be used when splitting cells that have no initial span. -
getJoinOperation
Get the join operation to be used when splitting cells that have no initial span. -
getDescription
- Returns:
- The description of the extension.
- See Also:
-
getArguments
- Returns:
- An array of
ArgumentDescriptorrepresenting the arguments this operation uses. - See Also:
-
getIgnoredAttributesForRowSplit
- Returns:
- The attributes which should be skipped, when creating a copy of the split cell.
-
getIgnoredAttributesForColumnSplit
- Returns:
- The attributes which should be skipped when creating a copy of the split cell.
-
getHelpPageID
Get the ID of the help page which will be called by the end user.- Returns:
- the ID of the help page which will be called by the end user or
null.
-