Class TextAreaDefaults


  • public class TextAreaDefaults
    extends java.lang.Object
    Encapsulates default settings for a text area. This can be passed to the constructor once the necessary fields have been filled out. The advantage of doing this over calling lots of set() methods after creating the text area is that this method is faster.
    • Constructor Detail

      • TextAreaDefaults

        public TextAreaDefaults​(@NotNull
                                @NotNull ScriptEditControl scriptEditControl,
                                @NotNull
                                @NotNull MenuEntries menuEntries)
        Creates a new instance.
        Parameters:
        scriptEditControl - the script edit control to affect
        menuEntries - the menu entries to include in the function menu popup
    • Method Detail

      • getInputHandler

        @NotNull
        public @NotNull InputHandler getInputHandler()
      • getDocument

        @Nullable
        public @Nullable SyntaxDocument getDocument()
      • getEditable

        public boolean getEditable()
      • getCaretVisible

        public boolean getCaretVisible()
      • getCaretBlinks

        public boolean getCaretBlinks()
      • getBlockCaret

        public boolean getBlockCaret()
      • getElectricScroll

        public int getElectricScroll()
      • getCols

        public int getCols()
      • getRows

        public int getRows()
      • getStyles

        @NotNull
        public @NotNull SyntaxStyles getStyles()
        Returns the syntax styles used to paint colorized text.
        Returns:
        the styles
      • getCaretColor

        @NotNull
        public @NotNull java.awt.Color getCaretColor()
      • getSelectionColor

        @NotNull
        public @NotNull java.awt.Color getSelectionColor()
      • getLineHighlightColor

        @NotNull
        public @NotNull java.awt.Color getLineHighlightColor()
      • getLineHighlight

        public boolean getLineHighlight()
      • getBracketHighlightColor

        @NotNull
        public @NotNull java.awt.Color getBracketHighlightColor()
      • getBracketHighlight

        public boolean getBracketHighlight()
      • getEolMarkerColor

        @NotNull
        public @NotNull java.awt.Color getEolMarkerColor()
      • getEolMarkers

        public boolean getEolMarkers()
      • getPaintInvalid

        public boolean getPaintInvalid()
      • getPopup

        @Nullable
        public @Nullable javax.swing.JPopupMenu getPopup()