Class FormattedTextEditableView.HtmlChangeListener
- java.lang.Object
-
- com._1c.g5.v8.dt.md.ui.editor.formattedtext.FormattedTextEditableView.HtmlChangeListener
-
- Enclosing class:
- FormattedTextEditableView
public class FormattedTextEditableView.HtmlChangeListener extends Object
Listener of changing HTML contents. Methods defined here are called from JavaScipt code. Must be defined as public for JavaScript code availability.
-
-
Constructor Summary
Constructors Constructor Description HtmlChangeListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onHtmlChanged(String html)
Called when HTML contents of the editor has been changed.void
onSelectionChanged(int offset, int length, JSObject tags, JSObject mods)
Called when the current selection in HTML editor has been changed.
-
-
-
Method Detail
-
onHtmlChanged
public void onHtmlChanged(String html)
Called when HTML contents of the editor has been changed.- Parameters:
html
- new HTML contents
-
onSelectionChanged
public void onSelectionChanged(int offset, int length, JSObject tags, JSObject mods)
Called when the current selection in HTML editor has been changed.- Parameters:
offset
- cursor offset from the beginninglength
- selection length including tagstags
- html tags in selectionmods
- modification flags of selected text; the first two elements contain font name and font size, the others correspond to command names applied to selected text
-
-