Class DeleteColumnOperation
java.lang.Object
ro.sync.ecss.extensions.commons.table.operations.AbstractTableOperation
ro.sync.ecss.extensions.commons.table.operations.DeleteColumnOperationBase
ro.sync.ecss.extensions.commons.table.operations.cals.DeleteColumnOperation
- All Implemented Interfaces:
AuthorOperation
,Extension
,CALSConstants
- Direct Known Subclasses:
DeleteColumnOperation
@API(type=INTERNAL,
src=PUBLIC)
public class DeleteColumnOperation
extends DeleteColumnOperationBase
implements CALSConstants
Operation used to delete a CALS table column.
-
Field Summary
Fields inherited from class ro.sync.ecss.extensions.commons.table.operations.DeleteColumnOperationBase
deletedColumnsIndices, tableElem
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
ConstructorsConstructorDescriptionDefault constructor.DeleteColumnOperation
(AuthorTableHelper documentTypeHelper) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
updateColspec
(AuthorAccess authorAccess, 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.Methods inherited from class ro.sync.ecss.extensions.commons.table.operations.DeleteColumnOperationBase
canDeleteColumn, doOperationInternal, getArguments, getDescription, performDeleteColumn, updateAppliableColWidthsNumber
Methods inherited from class ro.sync.ecss.extensions.commons.table.operations.AbstractTableOperation
createEmptyCell, doOperation, findCellInsertionOffset, getElementAncestor, isElement, isTableElement
-
Constructor Details
-
DeleteColumnOperation
public DeleteColumnOperation()Default constructor. -
DeleteColumnOperation
Constructor.- Parameters:
documentTypeHelper
- The document type helper.
-
-
Method Details
-
updateColspec
Description copied from class:DeleteColumnOperationBase
Update the colspec of a table for a given column.- Overrides:
updateColspec
in classDeleteColumnOperationBase
- Parameters:
authorAccess
- The Author access.deletedColumnIndex
- The index of the deleted column.- See Also:
-
updateTableColSpan
protected void updateTableColSpan(AuthorAccess authorAccess, AuthorTableCellSpanProvider spanProvider, AuthorElement cell, int colStartIndex, int colEndIndex) throws AuthorOperationException Description copied from class:DeleteColumnOperationBase
Update the column span for the table cell that is included into the deleted column.- Specified by:
updateTableColSpan
in classDeleteColumnOperationBase
- Parameters:
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.- Throws:
AuthorOperationException
- See Also:
-