Package ro.sync.ecss.extensions.api
Enum Class SelectionInterpretationMode
- All Implemented Interfaces:
Serializable
,Comparable<SelectionInterpretationMode>
,Constable
@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public enum SelectionInterpretationMode
extends Enum<SelectionInterpretationMode>
Impose how the selection is interpreted by the application.
The
To obtain this behavior for any selection, the
For instance, when two paragraphs are copied, the clipboard object contains a list with two Author document fragments (one for each paragraph). If the selection interpretation mode is imposed to
For a custom document type, when a content with an imposed
See
The
TABLE_COLUMN
interpretation mode is
already set by default by the application when a table column is selected.
In this case, when the column is pasted, it is also interpreted as a table column
by the application built-in document types.
To obtain this behavior for any selection, the
TABLE_COLUMN
interpretation mode must be imposed from
AuthorSelectionModel.setSelectionInterpretationMode(SelectionInterpretationMode)
method.
For instance, when two paragraphs are copied, the clipboard object contains a list with two Author document fragments (one for each paragraph). If the selection interpretation mode is imposed to
TABLE_COLUMN
,
when pasting the fragments a table column is created, each paragraph being
the content of a column cell.
For a custom document type, when a content with an imposed
TABLE_COLUMN
interpretation mode is pasted the AuthorTableOperationsHandler#handlePasteColumn(AuthorTablePasteColumnArguments)
method is called. If there is no implementation for this extension, the default paste
behavior is invoked.
See
ExtensionsBundle.getAuthorTableOperationsHandler()
for handling the
paste column operation.- Since:
- 14
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTable selection interpretation.Table cells selection interpretation (one or more table cells are selected).Table column selection interpretation.Table rows selection interpretation (one or more table rows are selected). -
Method Summary
Modifier and TypeMethodDescriptionstatic SelectionInterpretationMode
Returns the enum constant of this class with the specified name.static SelectionInterpretationMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TABLE_COLUMN
Table column selection interpretation. -
TABLE_ROW
Table rows selection interpretation (one or more table rows are selected). -
TABLE_CELLS
Table cells selection interpretation (one or more table cells are selected). -
TABLE
Table selection interpretation.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-