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 thenamest
andnameend
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, tableHelper
-
Fields inherited from interface ro.sync.ecss.extensions.api.AuthorOperation
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR
-
Fields 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
Constructors Constructor Description JoinRowCellsOperation()
Constructor.JoinRowCellsOperation(AuthorTableHelper tableHelper)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
generateColumnSpecifications(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, getDescription
-
Methods inherited from class ro.sync.ecss.extensions.commons.table.operations.AbstractTableOperation
createEmptyCell, doOperation, findCellInsertionOffset, getElementAncestor, isElement, isTableElement
-
-
-
-
Constructor Detail
-
JoinRowCellsOperation
public JoinRowCellsOperation(AuthorTableHelper tableHelper)
Constructor.- Parameters:
tableHelper
- The table helper
-
JoinRowCellsOperation
public JoinRowCellsOperation()
Constructor.
-
-
Method Detail
-
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:
generateColumnSpecifications
in classJoinRowCellsOperationBase
- Parameters:
authorAccess
- Access.tableSpanSupport
- Span support.tableElement
- The table element.- Throws:
AuthorOperationException
- Failed to insert the column specifications into the table.
-
-