@API(type=INTERNAL, src=PUBLIC) public abstract class JoinOperationBase extends AbstractTableOperation
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CURSOR_OUTSIDE_THE_TABLE_ERROR_MESSAGE
Cursor outlide the table error message
|
static java.lang.String |
RECTANGULAR_SELECTIONS_ERROR_MESSAGE
Rectangular selection error message
|
static java.lang.String |
SELECT_AT_LEAST_TWO_ADJACENT_CELLS_ERROR_MESSAGE
Select at least two adjacent cells
|
TABLE_INFO_ARGUMENT_DESCRIPTOR, TABLE_INFO_ARGUMENT_NAME, tableHelper
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR
Constructor and Description |
---|
JoinOperationBase(AuthorTableHelper tableHelper)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doOperationInternal(AuthorAccess authorAccess,
ArgumentsMap args)
Join the contents of selected 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() |
java.lang.String |
getDescription() |
void |
joinCells(AuthorAccess authorAccess,
AuthorElement tableElement,
java.util.List<AuthorElement> cellElements)
Join table cells.
|
createEmptyCell, doOperation, findCellInsertionOffset, getElementAncestor, isElement, isTableElement
public static final java.lang.String CURSOR_OUTSIDE_THE_TABLE_ERROR_MESSAGE
public static final java.lang.String SELECT_AT_LEAST_TWO_ADJACENT_CELLS_ERROR_MESSAGE
public static final java.lang.String RECTANGULAR_SELECTIONS_ERROR_MESSAGE
public JoinOperationBase(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 AbstractTableOperation
authorAccess
- 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)
public void joinCells(AuthorAccess authorAccess, AuthorElement tableElement, java.util.List<AuthorElement> cellElements) throws AuthorOperationException, javax.swing.text.BadLocationException
authorAccess
- The author access.tableElement
- The table element.cellElements
- The cells fragments.AuthorOperationException
javax.swing.text.BadLocationException
public java.lang.String getDescription()
Extension.getDescription()
public ArgumentDescriptor[] getArguments()
ArgumentDescriptor
representing
the arguments this operation uses.AuthorOperation.getArguments()
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.