Package com.dua3.utility.ui
Interface RichTextEditorPane
- All Superinterfaces:
RichTextPane
- All Known Implementing Classes:
TextEditorPane,TextEditorPane
Toolkit-agnostic API for editable rich-text panes.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether pressing the ENTER key inserts a newline.voidsetEnterKeyInsertsNewline(boolean value) Configures ENTER key behavior.Methods inherited from interface com.dua3.utility.ui.RichTextPane
getDisplayScale, getHyperlinkHandler, getText, getTextFont, isWrapText, setDisplayScale, setHyperlinkHandler, setText, setTextFont, setWrapText
-
Method Details
-
isEnterKeyInsertsNewline
boolean isEnterKeyInsertsNewline()Returns whether pressing the ENTER key inserts a newline.- Returns:
- true if ENTER inserts a newline
-
setEnterKeyInsertsNewline
void setEnterKeyInsertsNewline(boolean value) Configures ENTER key behavior.- Parameters:
value- true if ENTER should insert a newline, false to leave ENTER handling to outer controls
-