@API(type=INTERNAL, src=PUBLIC) public class DITAMapAuthorTableOperationsHandler extends AuthorTableOperationsHandler
Constructor and Description |
---|
DITAMapAuthorTableOperationsHandler() |
Modifier and Type | Method and Description |
---|---|
AuthorElement |
getTableElementContainingOffset(AuthorAccess access,
int offset)
Returns the element representing the table that contains the given offset.
|
boolean |
handleDeleteColumn(AuthorTableDeleteColumnArguments arguments)
Handles delete column operation.
|
boolean |
handleDeleteRow(AuthorTableDeleteRowArguments arguments)
Handles delete row operation.
|
boolean |
handleDeleteRows(AuthorTableDeleteRowsArguments arguments)
Handles delete rows operation.
|
boolean |
handleInsertColumn(AuthorTableInsertColumnArguments tablePasteColumnArgs)
Handles insert column operation.
|
getColumnSpecification
public boolean handleInsertColumn(AuthorTableInsertColumnArguments tablePasteColumnArgs) throws AuthorOperationException
AuthorTableOperationsHandler
SelectionInterpretationMode.TABLE_COLUMN
interpretation mode was imposed.
SelectionInterpretationMode.TABLE_COLUMN
interpretation mode is
already set by default by the application when a table column is selected.
It can be also imposed from the AuthorSelectionModel.setSelectionInterpretationMode(SelectionInterpretationMode)
method, for any selection content.
SelectionInterpretationMode.TABLE_COLUMN
,
when pasting the fragments this method is called. The fragments array are included in the
argument object.handleInsertColumn
in class AuthorTableOperationsHandler
tablePasteColumnArgs
- The arguments for insert column operation like:
the offset where the column is inserted, the array containing the cells fragments
that compose an Author table column, information about column width specification,
the Author access.true
if the insert column operation succeeds.AuthorOperationException
- An insert column operation exception.
If the AuthorOperationException.isOperationRejectedOnPurpose()
method
of this exception returns true, the exception is presented to the user.AuthorTableOperationsHandler.handleInsertColumn(ro.sync.ecss.extensions.api.table.operations.AuthorTableInsertColumnArguments)
public boolean handleDeleteColumn(AuthorTableDeleteColumnArguments arguments) throws AuthorOperationException
AuthorTableOperationsHandler
SelectionInterpretationMode.TABLE_COLUMN
interpretation mode was imposed.
SelectionInterpretationMode.TABLE_COLUMN
interpretation mode is
already set by default by the application when a table column is selected.
It can be also imposed from the AuthorSelectionModel.setSelectionInterpretationMode(SelectionInterpretationMode)
method, for any selection content.
SelectionInterpretationMode.TABLE_COLUMN
,
when deleting the fragments this method is called. The fragments array are included in the
argument object.handleDeleteColumn
in class AuthorTableOperationsHandler
arguments
- The arguments for delete column operation (like the Author access
and the column cells start and end offsets).true
if the delete column operation succeeds.AuthorOperationException
- A delete column operation exception.
If the AuthorOperationException.isOperationRejectedOnPurpose()
method
of this exception returns true, the exception is presented to the user.AuthorTableOperationsHandler.handleDeleteColumn(ro.sync.ecss.extensions.api.table.operations.AuthorTableDeleteColumnArguments)
public boolean handleDeleteRow(AuthorTableDeleteRowArguments arguments) throws AuthorOperationException
AuthorTableOperationsHandler
SelectionInterpretationMode.TABLE_ROW
interpretation mode was imposed.
SelectionInterpretationMode.TABLE_ROW
interpretation mode is
already set by default by the application when a table row is selected.
It can be also imposed from the AuthorSelectionModel.setSelectionInterpretationMode(SelectionInterpretationMode)
method, for any selection content.
SelectionInterpretationMode.TABLE_ROW
,
when deleting the fragments this method is called. The fragments array are included in the
argument object.handleDeleteRow
in class AuthorTableOperationsHandler
arguments
- The arguments for delete row operation (like the Author access and
the content interval of the row element that must be deleted).true
if the delete row operation succeeds.AuthorOperationException
- A delete row operation exception.
If the AuthorOperationException.isOperationRejectedOnPurpose()
method
of this exception returns true, the exception is presented to the user.AuthorTableOperationsHandler.handleDeleteRow(ro.sync.ecss.extensions.api.table.operations.AuthorTableDeleteRowArguments)
public boolean handleDeleteRows(AuthorTableDeleteRowsArguments arguments) throws AuthorOperationException
AuthorTableOperationsHandler
SelectionInterpretationMode.TABLE_ROW
interpretation mode was imposed.
SelectionInterpretationMode.TABLE_ROW
interpretation mode is
already set by default by the application when a table row is selected.
It can be also imposed from the AuthorSelectionModel.setSelectionInterpretationMode(SelectionInterpretationMode)
method, for any selection content.
SelectionInterpretationMode.TABLE_ROW
,
when deleting the fragments this method is called.handleDeleteRows
in class AuthorTableOperationsHandler
arguments
- The arguments for delete rows operation (like the Author access and
the content intervals that determine the rows element that must be deleted).true
if the delete rows operation succeeds.AuthorOperationException
- A delete row operation exception.
If the AuthorOperationException.isOperationRejectedOnPurpose()
method
of this exception returns true, the exception is presented to the user.AuthorTableOperationsHandler.handleDeleteRows(ro.sync.ecss.extensions.api.table.operations.AuthorTableDeleteRowsArguments)
public AuthorElement getTableElementContainingOffset(AuthorAccess access, int offset)
AuthorTableOperationsHandler
getTableElementContainingOffset
in class AuthorTableOperationsHandler
access
- Access to Author operations.offset
- The offset to search the parent table element for.AuthorTableOperationsHandler.getTableElementContainingOffset(ro.sync.ecss.extensions.api.AuthorAccess, int)
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.