@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface WebappAuthorSchemaAwareActionsHandler
Modifier and Type | Method and Description |
---|---|
boolean |
deleteBetweenOffsets(int start,
int end,
boolean backspace)
Deletes the content between the two given offsets using information from
the schema associated to the document such that document is left in a valid
state.
|
void |
deleteChar(int deleteOffset,
boolean del,
boolean wordLevel)
Deletes the character to the right of the caret if
del is true
else delete the left character. |
ro.sync.ecss.component.AuthorClipboardObject |
handleCopy(int startOffset,
int endOffset)
Copy from offset to offset inclusive.
|
void |
handlePaste(ro.sync.ecss.component.AuthorClipboardObject toPaste,
boolean removeSelection,
boolean pasteAsXml)
Paste a fragment.
|
void |
insertCharAtCurrentOffset(char ch)
Inserts the given character at the current caret position.
|
void handlePaste(ro.sync.ecss.component.AuthorClipboardObject toPaste, boolean removeSelection, boolean pasteAsXml) throws InvalidEditException
toPaste
- The fragment to pasteremoveSelection
- Remove the selectionpasteAsXml
- If true
treat the pasted text as an xml fragment. Else escape it
and insert it.InvalidEditException
- When paste was rejected.ro.sync.ecss.component.AuthorClipboardObject handleCopy(int startOffset, int endOffset) throws javax.swing.text.BadLocationException
startOffset
- Start offset (inclusive)endOffset
- End offset (inclusive)javax.swing.text.BadLocationException
void insertCharAtCurrentOffset(char ch)
ch
- The character to insert.boolean deleteBetweenOffsets(int start, int end, boolean backspace) throws InvalidEditException
start
- The start offset (inclusive).end
- The end offset (inclusive).backspace
- Whether the deletion was triggered by a backspace.true
if successful.InvalidEditException
- If the edit fails.void deleteChar(int deleteOffset, boolean del, boolean wordLevel) throws InvalidEditException
del
is true
else delete the left character.deleteOffset
- The caret offset where the deletion is performed.del
- Delete or Backspace.wordLevel
- true
if the delete should work at a word level.InvalidEditException
- Thrown when delete operation was rejected.© Copyright SyncRO Soft SRL 2002 - 2014. All rights reserved.