Class JoinRowCellsOperation
java.lang.Object
ro.sync.ecss.extensions.commons.table.operations.AbstractTableOperation
ro.sync.ecss.extensions.commons.table.operations.JoinRowCellsOperationBase
ro.sync.ecss.extensions.commons.table.operations.cals.JoinRowCellsOperation
- All Implemented Interfaces:
AuthorOperation,Extension,CALSConstants
- Direct Known Subclasses:
JoinRowCellsOperation
@API(type=INTERNAL,
src=PUBLIC)
public class JoinRowCellsOperation
extends JoinRowCellsOperationBase
implements CALSConstants
This is the CALS tables implementation of the operation used to join
the content of two or more cells from the same table row.
If selection exists, the cell at selection start offset determines the destination cell where
the content of the next cells will be moved.
If there is no selection, then the caret must be between
two table cells.
The operation modifies the
namest and nameend
attributes of the destination 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_DESCRIPTORFields inherited from interface ro.sync.ecss.extensions.commons.table.operations.cals.CALSConstants
ATTRIBUTE_NAME_ALIGN, ATTRIBUTE_NAME_COLNAME, ATTRIBUTE_NAME_COLNUM, ATTRIBUTE_NAME_COLS, ATTRIBUTE_NAME_COLSEP, ATTRIBUTE_NAME_COLWIDTH, ATTRIBUTE_NAME_ID, ATTRIBUTE_NAME_MOREROWS, ATTRIBUTE_NAME_NAMEEND, ATTRIBUTE_NAME_NAMEST, ATTRIBUTE_NAME_ROWSEP, ATTRIBUTE_NAME_SPANNAME, ATTRIBUTE_NAME_TABLE_WIDTH, ATTRIBUTE_NAME_XML_ID, ELEMENT_NAME_COLSPEC, ELEMENT_NAME_ENTRY, ELEMENT_NAME_INFORMALTABLE, ELEMENT_NAME_ROW, ELEMENT_NAME_SPANSPEC, ELEMENT_NAME_TABLE, ELEMENT_NAME_TGROUP -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.JoinRowCellsOperation(AuthorTableHelper tableHelper) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgenerateColumnSpecifications(AuthorAccess authorAccess, AuthorTableCellSpanProvider tableSpanSupport, AuthorElement tableElement) Generates column specifications for the given table and inserts them into it.Methods inherited from class ro.sync.ecss.extensions.commons.table.operations.JoinRowCellsOperationBase
doOperationInternal, getArguments, getCell, getDescriptionMethods inherited from class ro.sync.ecss.extensions.commons.table.operations.AbstractTableOperation
createEmptyCell, doOperation, findCellInsertionOffset, getElementAncestor, isElement, isTableElement
-
Constructor Details
-
JoinRowCellsOperation
Constructor.- Parameters:
tableHelper- The table helper
-
JoinRowCellsOperation
public JoinRowCellsOperation()Constructor.
-
-
Method Details
-
generateColumnSpecifications
protected void generateColumnSpecifications(AuthorAccess authorAccess, AuthorTableCellSpanProvider tableSpanSupport, AuthorElement tableElement) throws AuthorOperationException Generates column specifications for the given table and inserts them into it.- Specified by:
generateColumnSpecificationsin classJoinRowCellsOperationBase- Parameters:
authorAccess- Access.tableSpanSupport- Span support.tableElement- The table element.- Throws:
AuthorOperationException- Failed to insert the column specifications into the table.
-