Class SplitOperationBase

java.lang.Object
ro.sync.ecss.extensions.commons.table.operations.AbstractTableOperation
ro.sync.ecss.extensions.commons.table.operations.SplitOperationBase
All Implemented Interfaces:
AuthorOperation, Extension
Direct Known Subclasses:
SplitOperation, SplitOperation, SplitOperation, SplitOperation

@API(type=INTERNAL, src=PUBLIC) public abstract class SplitOperationBase extends AbstractTableOperation
Operation for splitting the selected table cell (or the cell at caret when there is no selection), if it spans over multiple rows or columns
  • Constructor Details

    • SplitOperationBase

      public SplitOperationBase(AuthorTableHelper tableHelper)
      Constructor.
      Parameters:
      tableHelper - Table helper with methods specific to a document type.
  • Method Details

    • doOperationInternal

      protected void doOperationInternal(AuthorAccess authorAccess, ArgumentsMap args) throws AuthorOperationException
      Split the selected table cell (or the cell at caret when there is no selection), if it spans over multiple rows or columns
      Specified by:
      doOperationInternal in class AbstractTableOperation
      Parameters:
      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.
      Throws:
      AuthorOperationException - Thrown when the operation fails.
      See Also:
    • getInsertRowOperation

      protected abstract InsertRowOperationBase getInsertRowOperation()
      Get the insert row operation to be used when splitting cells that have no initial span.
    • getInsertColumnOperation

      protected abstract InsertColumnOperationBase getInsertColumnOperation()
      Get the insert column operation to be used when splitting cells that have no initial span.
    • getJoinOperation

      protected abstract JoinOperationBase getJoinOperation()
      Get the join operation to be used when splitting cells that have no initial span.
    • getDescription

      public String getDescription()
      Returns:
      The description of the extension.
      See Also:
    • getArguments

      public ArgumentDescriptor[] getArguments()
      Returns:
      An array of ArgumentDescriptor representing the arguments this operation uses.
      See Also:
    • getIgnoredAttributesForRowSplit

      protected abstract String[] getIgnoredAttributesForRowSplit()
      Returns:
      The attributes which should be skipped, when creating a copy of the split cell.
    • getIgnoredAttributesForColumnSplit

      protected abstract String[] getIgnoredAttributesForColumnSplit()
      Returns:
      The attributes which should be skipped when creating a copy of the split cell.
    • getHelpPageID

      protected String getHelpPageID()
      Get the ID of the help page which will be called by the end user.
      Returns:
      the ID of the help page which will be called by the end user or null.