@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public interface WebappAuthorSchemaAwareActionsHandler
Modifier and Type | Method and Description |
---|---|
void |
delete(boolean del,
boolean wordLevel)
Deletes the the current selection using information from the schema
associated to the document such that document is left in a valid state.
|
ro.sync.ecss.component.AuthorClipboardObject |
handleCopy()
Copy from offset to offset inclusive.
|
void |
handleHtmlPaste(java.lang.String html)
Handles a paste with an HTML content from an external source.
|
void |
handlePaste(ro.sync.ecss.component.AuthorClipboardObject toPaste,
boolean removeSelection,
boolean pasteAsXml)
Paste a fragment.
|
void |
handleXmlPaste(java.lang.String xml)
Handles a paste with an XML content.
|
void |
insertCharAtCurrentOffset(char ch)
Inserts the given character at the current caret position.
|
void handleHtmlPaste(java.lang.String html) throws InvalidEditException
html
- The HTML content.InvalidEditException
- If the paste could not be performed.void handleXmlPaste(java.lang.String xml) throws InvalidEditException
xml
- the XML content.InvalidEditException
- If the paste could not be performed.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() throws javax.swing.text.BadLocationException
javax.swing.text.BadLocationException
void insertCharAtCurrentOffset(char ch)
ch
- The character to insert.void delete(boolean del, boolean wordLevel) throws InvalidEditException
del
- true
if the deletion was triggered by a DEL.wordLevel
- Whether we should delete an entire word.InvalidEditException
- If the edit fails.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.