-
- All Implemented Interfaces:
-
java.lang.AutoCloseable,uniffi.wysiwyg_composer.ComposerModelInterface,uniffi.wysiwyg_composer.Disposable
public class ComposerModel implements Disposable, AutoCloseable, ComposerModelInterface
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classComposerModel.Companion
-
Constructor Summary
Constructors Constructor Description ComposerModel(Pointer pointer)ComposerModel(NoPointer noPointer)This constructor can be used to instantiate a fake object.
-
Method Summary
-
-
Constructor Detail
-
ComposerModel
ComposerModel(Pointer pointer)
-
ComposerModel
ComposerModel(NoPointer noPointer)
This constructor can be used to instantiate a fake object.
-
-
Method Detail
-
uniffiClonePointer
final Pointer uniffiClonePointer()
-
actionStates
Map<ComposerAction, ActionState> actionStates()
-
backspace
ComposerUpdate backspace()
-
bold
ComposerUpdate bold()
-
clear
ComposerUpdate clear()
-
codeBlock
ComposerUpdate codeBlock()
-
debugPanic
Unit debugPanic()
Force a panic for test purposes
-
delete
ComposerUpdate delete()
-
deleteIn
ComposerUpdate deleteIn(UInt start, UInt end)
-
enter
ComposerUpdate enter()
-
getContentAsHtml
String getContentAsHtml()
-
getContentAsMarkdown
String getContentAsMarkdown()
-
getContentAsMessageHtml
String getContentAsMessageHtml()
-
getContentAsMessageMarkdown
String getContentAsMessageMarkdown()
-
getContentAsPlainText
String getContentAsPlainText()
-
getCurrentDomState
ComposerState getCurrentDomState()
-
getLinkAction
LinkAction getLinkAction()
-
getMentionsState
MentionsState getMentionsState()
-
indent
ComposerUpdate indent()
-
inlineCode
ComposerUpdate inlineCode()
-
insertAtRoomMention
ComposerUpdate insertAtRoomMention()
Creates an at-room mention node and inserts it into the composer at the current selection
-
insertAtRoomMentionAtSuggestion
ComposerUpdate insertAtRoomMentionAtSuggestion(SuggestionPattern suggestion)
Creates an at-room mention node and inserts it into the composer, replacing the text content defined by the suggestion
-
insertMention
ComposerUpdate insertMention(String url, String text, List<Attribute> attributes)
Creates a mention node and inserts it into the composer at the current selection
-
insertMentionAtSuggestion
ComposerUpdate insertMentionAtSuggestion(String url, String text, SuggestionPattern suggestion, List<Attribute> attributes)
Creates a mention node and inserts it into the composer, replacing the text content defined by the suggestion
-
italic
ComposerUpdate italic()
-
orderedList
ComposerUpdate orderedList()
-
quote
ComposerUpdate quote()
-
redo
ComposerUpdate redo()
-
removeLinks
ComposerUpdate removeLinks()
-
replaceText
ComposerUpdate replaceText(String newText)
-
replaceTextIn
ComposerUpdate replaceTextIn(String newText, UInt start, UInt end)
-
replaceTextSuggestion
ComposerUpdate replaceTextSuggestion(String newText, SuggestionPattern suggestion, Boolean appendSpace)
-
select
ComposerUpdate select(UInt startUtf16Codeunit, UInt endUtf16Codeunit)
-
setContentFromHtml
ComposerUpdate setContentFromHtml(String html)
-
setContentFromMarkdown
ComposerUpdate setContentFromMarkdown(String markdown)
-
setCustomSuggestionPatterns
Unit setCustomSuggestionPatterns(List<String> customSuggestionPatterns)
-
setLink
ComposerUpdate setLink(String url, List<Attribute> attributes)
-
setLinkWithText
ComposerUpdate setLinkWithText(String url, String text, List<Attribute> attributes)
-
strikeThrough
ComposerUpdate strikeThrough()
-
toExampleFormat
String toExampleFormat()
-
underline
ComposerUpdate underline()
-
undo
ComposerUpdate undo()
-
unindent
ComposerUpdate unindent()
-
unorderedList
ComposerUpdate unorderedList()
-
-
-
-