@API(type=INTERNAL, src=PUBLIC) public class DeleteColumnOperation extends DeleteColumnOperationBase implements CALSConstants
deletedColumnsIndices, tableElem
TABLE_INFO_ARGUMENT_DESCRIPTOR, TABLE_INFO_ARGUMENT_NAME, tableHelper
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
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR
Constructor and Description |
---|
DeleteColumnOperation()
Default constructor.
|
DeleteColumnOperation(AuthorTableHelper documentTypeHelper)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
updateColspec(AuthorAccess authorAccess,
java.lang.Integer deletedColumnIndex)
Update the colspec of a table for a given column.
|
protected void |
updateTableColSpan(AuthorAccess authorAccess,
AuthorTableCellSpanProvider spanProvider,
AuthorElement cell,
int colStartIndex,
int colEndIndex)
Update the column span for the table cell that is included into the deleted
column.
|
canDeleteColumn, doOperationInternal, getArguments, getDescription, performDeleteColumn, updateAppliableColWidthsNumber
createEmptyCell, doOperation, findCellInsertionOffset, getElementAncestor, isElement, isTableElement
public DeleteColumnOperation()
public DeleteColumnOperation(AuthorTableHelper documentTypeHelper)
documentTypeHelper
- The document type helper.public void updateColspec(AuthorAccess authorAccess, java.lang.Integer deletedColumnIndex)
DeleteColumnOperationBase
updateColspec
in class DeleteColumnOperationBase
authorAccess
- The Author access.deletedColumnIndex
- The index of the deleted column.DeleteColumnOperationBase.updateColspec(AuthorAccess, Integer)
protected void updateTableColSpan(AuthorAccess authorAccess, AuthorTableCellSpanProvider spanProvider, AuthorElement cell, int colStartIndex, int colEndIndex) throws AuthorOperationException
DeleteColumnOperationBase
updateTableColSpan
in class DeleteColumnOperationBase
authorAccess
- The author access.
Provides access to specific informations and actions for
editor, document, workspace, tables, change tracking, utility a.s.o.spanProvider
- The table span provider.
The object responsible for providing information
about the cell spanning.cell
- The table cell.colStartIndex
- The new column start index, 1 based.colEndIndex
- The new column end index, 1 based.AuthorOperationException
DeleteColumnOperationBase.updateTableColSpan(ro.sync.ecss.extensions.api.AuthorAccess, ro.sync.ecss.extensions.api.AuthorTableCellSpanProvider, ro.sync.ecss.extensions.api.node.AuthorElement, int, int)
© Copyright Syncro Soft SRL 2002 - 2020. All rights reserved.