|
Oxygen XML Editor 14.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectro.sync.ecss.extensions.api.table.operations.AuthorTableOperationsHandler
ro.sync.ecss.extensions.dita.DITAAuthorTableOperationsHandler
public class DITAAuthorTableOperationsHandler
Author table operations handler for DITA framework.
Constructor Summary | |
---|---|
DITAAuthorTableOperationsHandler()
|
Method Summary | |
---|---|
TableColumnSpecificationInformation |
getColumnSpecification(AuthorAccess authorAccess,
AuthorElement tableElement,
int columnIndex)
Returns the column specification information of a table column. |
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 |
handleInsertColumn(AuthorTableInsertColumnArguments tablePasteColumnArgs)
Handles insert column operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DITAAuthorTableOperationsHandler()
Method Detail |
---|
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 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)
public TableColumnSpecificationInformation getColumnSpecification(AuthorAccess authorAccess, AuthorElement tableElement, int columnIndex)
AuthorTableOperationsHandler
AuthorTableOperationsHandler.handleInsertColumn(AuthorTableInsertColumnArguments)
method.
getColumnSpecification
in class AuthorTableOperationsHandler
authorAccess
- Access to Author operations.tableElement
- The table that contains the column.columnIndex
- The column index, 0
based.
null
if
there is no specification for this column.AuthorTableOperationsHandler.getColumnSpecification(ro.sync.ecss.extensions.api.AuthorAccess, ro.sync.ecss.extensions.api.node.AuthorElement, int)
|
Oxygen XML Editor 14.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |