|
Oxygen XML Editor 14.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SelectionInterpretationMode>
ro.sync.ecss.extensions.api.SelectionInterpretationMode
@API(type=NOT_EXTENDABLE, src=PUBLIC) public enum SelectionInterpretationMode
Impose how the selection is interpreted by the application.
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.
Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
Enum Constant Summary | |
---|---|
TABLE
Table selection interpretation. |
|
TABLE_COLUMN
Table column selection interpretation. |
|
TABLE_ROW
Table row selection interpretation. |
Method Summary | |
---|---|
static SelectionInterpretationMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SelectionInterpretationMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SelectionInterpretationMode TABLE_COLUMN
public static final SelectionInterpretationMode TABLE_ROW
public static final SelectionInterpretationMode TABLE
Method Detail |
---|
public static SelectionInterpretationMode[] values()
for (SelectionInterpretationMode c : SelectionInterpretationMode.values()) System.out.println(c);
public static SelectionInterpretationMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
|
Oxygen XML Editor 14.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |