@API(type=INTERNAL, src=PUBLIC) public class DeleteColumnOperation extends DeleteColumnOperationBase implements XHTMLConstants
deletedColumnIndex, tableElem
TABLE_INFO_ARGUMENT_DESCRIPTOR, TABLE_INFO_ARGUMENT_NAME, tableHelper
ATTRIBUTE_NAME_COLSPAN, ATTRIBUTE_NAME_ID, ATTRIBUTE_NAME_ROWSPAN, ATTRIBUTE_NAME_XML_ID, ELEMENT_NAME_INFORMALTABLE, ELEMENT_NAME_TABLE, ELEMENT_NAME_TD, ELEMENT_NAME_TH, ELEMENT_NAME_THEAD, ELEMENT_NAME_TR
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
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
- When the operation fails.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 - 2015. All rights reserved.