Class TextEditor

    • Constructor Detail

      • TextEditor

        public TextEditor()
        Creates a new instance of TextEditor
      • TextEditor

        public TextEditor​(boolean tabsAsSpaces)
        Creates a new instance of TextEditor
      • TextEditor

        public TextEditor​(boolean tabsAsSpaces,
                          boolean multiLineTab)
        Creates a new instance of TextEditor
      • TextEditor

        public TextEditor​(boolean tabsAsSpaces,
                          boolean multiLineTab,
                          boolean unwrapped)
        Creates a new instance of TextEditor
    • Method Detail

      • isMultiLineTabbed

        public boolean isMultiLineTabbed()
        Whether using the tab key indents the selected lines of code
        Returns:
        true if multiline tabbing is active
      • isOvertypeMode

        public static boolean isOvertypeMode()
        Returns:
        true if overtype mode is active, false for insert mode
      • isTabsAsSpaces

        public boolean isTabsAsSpaces()
        Returns:
        true if tabs are converted to spaces upon typing
      • isUnwrapped

        public boolean isUnwrapped()
        Returns:
        true if text wrapping is disabled
      • setBounds

        public void setBounds​(int x,
                              int y,
                              int width,
                              int height)
        Overrides:
        setBounds in class Component
      • isMultiLineTabbed

        public void isMultiLineTabbed​(boolean multiLineTab)
        Parameters:
        multiLineTab - the new multiLine tab value
      • isTabsAsSpaces

        public void isTabsAsSpaces​(boolean tabsAsSpaces)
        Parameters:
        tabsAsSpaces - whether tabs are converted to spaces
      • setOvertypeMode

        public void setOvertypeMode​(boolean isOvertypeMode)
        Set the caret to use depending on overtype/insert mode
        Parameters:
        isOvertypeMode - the new mode; true = overtype
      • setUnwrapped

        public void setUnwrapped​(boolean unwrapped)
        Parameters:
        unwrapped - the new unwrapped value