@API(type=INTERNAL, src=PUBLIC) public class InsertColumnOperation extends InsertColumnOperationBase implements XHTMLConstants
INSERT_MULTIPLE_COLUMNS_ARGUMENT_DESCRIPTOR, POSITION_ARGUMENT, POSITION_ARGUMENT_DESCRIPTOR
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_TR
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR
Modifier | Constructor and Description |
---|---|
|
InsertColumnOperation()
Constructor.
|
protected |
InsertColumnOperation(AuthorTableHelper documentTypeHelper)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getCellElementName(AuthorElement rowElement,
int newColumnIndex)
Get the name of the element that will be inserted as a cell into the table.
|
protected void |
updateColumnCellsSpan(AuthorAccess authorAccess,
AuthorTableCellSpanProvider tableSupport,
AuthorElement tableElem,
int newColumnIndex,
TableColumnSpecificationInformation columnSpecification,
java.lang.String namespace,
int noOfColumnsToBeInserted)
Increments the column span of the cells intersecting the new column.
|
doOperation, getArguments, getDefaultContentForEmptyCells, getDescription, performInsertColumn, removeMultipleInsertionDescriptor
createEmptyCell, findCellInsertionOffset, getElementAncestor, isElement, isTableElement
public InsertColumnOperation()
protected InsertColumnOperation(AuthorTableHelper documentTypeHelper)
documentTypeHelper
- Document type helper, has methods specific to a document type.protected java.lang.String getCellElementName(AuthorElement rowElement, int newColumnIndex)
InsertColumnOperationBase
getCellElementName
in class InsertColumnOperationBase
rowElement
- The row element where the new cell will be inserted.newColumnIndex
- The new column index. 0 based.InsertColumnOperationBase.getCellElementName(ro.sync.ecss.extensions.api.node.AuthorElement, int)
protected void updateColumnCellsSpan(AuthorAccess authorAccess, AuthorTableCellSpanProvider tableSupport, AuthorElement tableElem, int newColumnIndex, TableColumnSpecificationInformation columnSpecification, java.lang.String namespace, int noOfColumnsToBeInserted) throws AuthorOperationException
InsertColumnOperationBase
updateColumnCellsSpan
in class InsertColumnOperationBase
authorAccess
- The author access.
Provides access to specific informations and actions for
editor, document, workspace, tables, change tracking, utility a.s.o.tableSupport
- The table cell span provider.tableElem
- The table element.newColumnIndex
- The index of the column to insert.columnSpecification
- The table column specification data.namespace
- The namespace to be used.noOfColumnsToBeInserted
- The number of columns to be inserted.AuthorOperationException
- When the insertion fails.InsertColumnOperationBase.updateColumnCellsSpan(ro.sync.ecss.extensions.api.AuthorAccess, ro.sync.ecss.extensions.api.AuthorTableCellSpanProvider, ro.sync.ecss.extensions.api.node.AuthorElement, int, ro.sync.ecss.extensions.api.table.operations.TableColumnSpecificationInformation, java.lang.String, int)
© Copyright SyncRO Soft SRL 2002 - 2015. All rights reserved.