@API(type=INTERNAL,
src=PUBLIC)
public abstract class JoinRowCellsOperationBase
extends AbstractTableOperation
TABLE_INFO_ARGUMENT_DESCRIPTOR, TABLE_INFO_ARGUMENT_NAME, tableHelperNAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR| Constructor and Description |
|---|
JoinRowCellsOperationBase(AuthorTableHelper tableHelper)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doOperationInternal(AuthorAccess authorAccess,
ArgumentsMap args)
Join the contents of one or more cells.
|
protected abstract void |
generateColumnSpecifications(AuthorAccess authorAccess,
AuthorTableCellSpanProvider tableCellSpanProvider,
AuthorElement tableElement)
Generates column specifications for the given table and inserts them
into the document.
|
ArgumentDescriptor[] |
getArguments()
No arguments.
|
protected AuthorElement |
getCell(AuthorAccess authorAccess,
int selectionOffset,
boolean start)
Find the last cell for the join operation.
|
java.lang.String |
getDescription() |
createEmptyCell, doOperation, findCellInsertionOffset, getElementAncestor, isElement, isTableElementpublic JoinRowCellsOperationBase(AuthorTableHelper tableHelper)
tableHelper - Table helper with methods specific to a document type.protected void doOperationInternal(AuthorAccess authorAccess, ArgumentsMap args) throws java.lang.IllegalArgumentException, AuthorOperationException
doOperationInternal in class AbstractTableOperationauthorAccess - The author access.
Provides access to specific informations and actions for
editor, document, workspace, tables, change tracking, utility a.s.o.args - The map of arguments. All the arguments defined by method
AuthorOperation.getArguments() must be present in the map of arguments.java.lang.IllegalArgumentException - Thrown when one or more arguments are illegal.AuthorOperationException - Thrown when the operation fails.AbstractTableOperation.doOperationInternal(ro.sync.ecss.extensions.api.AuthorAccess, ro.sync.ecss.extensions.api.ArgumentsMap)protected AuthorElement getCell(AuthorAccess authorAccess, int selectionOffset, boolean start) throws javax.swing.text.BadLocationException
authorAccess - The author access.selectionOffset - The selection end offsetnull.javax.swing.text.BadLocationException - If method fails.public ArgumentDescriptor[] getArguments()
ArgumentDescriptor representing
the arguments this operation uses.AuthorOperation.getArguments()public java.lang.String getDescription()
Extension.getDescription()protected abstract void generateColumnSpecifications(AuthorAccess authorAccess, AuthorTableCellSpanProvider tableCellSpanProvider, AuthorElement tableElement) throws AuthorOperationException
authorAccess - Author access.
Provides access to specific informations and actions for
editor, document, workspace, tables, change tracking, utility a.s.o.tableCellSpanProvider - Table cell span provider.tableElement - The table element.AuthorOperationException - Failed to insert the column specifications into the table.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.