@API(type=INTERNAL, src=PUBLIC) public abstract class SplitCellAboveBelowOperationBase extends AbstractTableOperation
tableHelper
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR
Constructor and Description |
---|
SplitCellAboveBelowOperationBase(AuthorTableHelper tableHelper)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
doOperation(AuthorAccess authorAccess,
ArgumentsMap args)
Perform the actual operation.
|
ArgumentDescriptor[] |
getArguments() |
java.lang.String |
getDescription() |
protected abstract java.lang.String[] |
getIgnoredAttributes() |
void |
splitCell(AuthorElement cell,
AuthorAccess authorAccess,
boolean above)
Split the cell.
|
createEmptyCell, findCellInsertionOffset, getElementAncestor, isElement, isTableElement
public SplitCellAboveBelowOperationBase(AuthorTableHelper tableHelper)
tableHelper
- Document type specific table information helper.public void doOperation(AuthorAccess authorAccess, ArgumentsMap args) throws java.lang.IllegalArgumentException, AuthorOperationException
AuthorOperation
Workspace.isStandalone()
.
To get to the Workspace
you may use: AuthorAccess.getWorkspaceAccess()
.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.AuthorOperation.doOperation(ro.sync.ecss.extensions.api.AuthorAccess, ro.sync.ecss.extensions.api.ArgumentsMap)
public void splitCell(AuthorElement cell, AuthorAccess authorAccess, boolean above) throws AuthorOperationException, javax.swing.text.BadLocationException
cell
- The table cell to split.authorAccess
- Access to author functionality.above
- If true
the cell will be split above.AuthorOperationException
javax.swing.text.BadLocationException
public ArgumentDescriptor[] getArguments()
ArgumentDescriptor
representing
the arguments this operation uses.AuthorOperation.getArguments()
public java.lang.String getDescription()
Extension.getDescription()
protected abstract java.lang.String[] getIgnoredAttributes()
© Copyright SyncRO Soft SRL 2002 - 2014. All rights reserved.