@API(type=INTERNAL,
src=PUBLIC)
public class InsertTableOperation
extends AbstractTableOperation
implements InsertTableOperationBase
| Modifier and Type | Field and Description |
|---|---|
static ArgumentDescriptor |
TABLE_MODEL_ARGUMENT
Argument for default table model.
|
TABLE_INFO_ARGUMENT_DESCRIPTOR, TABLE_INFO_ARGUMENT_NAME, tableHelperNAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR| Constructor and Description |
|---|
InsertTableOperation()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doOperationInternal(AuthorAccess authorAccess,
ArgumentsMap args)
Perform the actual operation.
|
ArgumentDescriptor[] |
getArguments()
The operation will display a dialog for choosing table attributes.
|
java.lang.String |
getDescription() |
void |
insertTable(AuthorDocumentFragment[] fragments,
boolean cellsFragments,
AuthorAccess authorAccess,
java.lang.String namespace,
AuthorTableHelper tableHelper,
TableInfo tableInfo)
If the fragments array is not null, this method converts the given fragments array into a table.
|
void |
insertTable(AuthorDocumentFragment[] fragments,
java.util.List<java.util.Map<java.lang.String,java.lang.String>> rowAttributes,
boolean cellsFragments,
AuthorAccess authorAccess,
java.lang.String namespace,
AuthorTableHelper tableHelper,
TableInfo tableInfo)
If the fragments array is not null, this method converts the given fragments array into a table.
|
createEmptyCell, doOperation, findCellInsertionOffset, getElementAncestor, isElement, isTableElementpublic static final ArgumentDescriptor TABLE_MODEL_ARGUMENT
protected void doOperationInternal(AuthorAccess authorAccess, ArgumentsMap args) throws java.lang.IllegalArgumentException, AuthorOperationException
AbstractTableOperationdoOperationInternal 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)public ArgumentDescriptor[] getArguments()
getArguments in interface AuthorOperationArgumentDescriptor representing
the arguments this operation uses.AuthorOperation.getArguments()public java.lang.String getDescription()
getDescription in interface ExtensionExtension.getDescription()public void insertTable(AuthorDocumentFragment[] fragments, boolean cellsFragments, AuthorAccess authorAccess, java.lang.String namespace, AuthorTableHelper tableHelper, TableInfo tableInfo) throws AuthorOperationException
InsertTableOperationBaseinsertTable in interface InsertTableOperationBasefragments - An array of AuthorDocumentFragments that are used as content of the inserted cells.cellsFragments - If the value is true then the fragments
where originally cells.authorAccess - The author access.namespace - The namespace.tableHelper - The table helper.tableInfo - The details about table creation. If null, a dialog is
presented to let the user choose the details.AuthorOperationExceptionInsertTableOperationBase.insertTable(ro.sync.ecss.extensions.api.node.AuthorDocumentFragment[], boolean, ro.sync.ecss.extensions.api.AuthorAccess, java.lang.String, ro.sync.ecss.extensions.commons.table.operations.AuthorTableHelper, ro.sync.ecss.extensions.commons.table.operations.TableInfo)public void insertTable(AuthorDocumentFragment[] fragments, java.util.List<java.util.Map<java.lang.String,java.lang.String>> rowAttributes, boolean cellsFragments, AuthorAccess authorAccess, java.lang.String namespace, AuthorTableHelper tableHelper, TableInfo tableInfo) throws AuthorOperationException
fragments - An array of AuthorDocumentFragments that are used as content of the inserted cells.rowAttributes - For each fragment this list can contain a list of corresponding
attributes that can be set on the row element.cellsFragments - If the value is true then the fragments
where originally cells.authorAccess - The author access.namespace - The namespace.tableHelper - The table helper.tableInfo - The details about table creation. If null, a dialog is
presented to let the user choose the details.AuthorOperationException© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.