@API(type=INTERNAL, src=PUBLIC) public class DeleteColumnOperation extends DeleteColumnOperationBase implements CALSConstants
deletedColumnIndex, tableElem
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()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
performDeleteColumn(AuthorAccess authorAccess,
java.util.List<ContentInterval> columnIntervals,
boolean placeCaretInNextCell)
Delete table 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, doOperation, getArguments, getDescription, updateAppliableColWidthsNumber
createEmptyCell, findCellInsertionOffset, getElementAncestor, isElement, isTableElement
public boolean performDeleteColumn(AuthorAccess authorAccess, java.util.List<ContentInterval> columnIntervals, boolean placeCaretInNextCell) throws AuthorOperationException
DeleteColumnOperationBase
performDeleteColumn
in class DeleteColumnOperationBase
authorAccess
- The access to Author operations.columnIntervals
- The intervals of the column to be deleted.
If null
, the column at caret offset is deleted.placeCaretInNextCell
- true
to place caret in the next cell.true
if a column is deletedAuthorOperationException
DeleteColumnOperationBase.performDeleteColumn(ro.sync.ecss.extensions.api.AuthorAccess, java.util.List, boolean)
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 - 2014. All rights reserved.