Class BufferHistoryPanel

    • Field Detail

      • m_TextArea

        protected BaseTextArea m_TextArea
        the text area to display the result in.
      • m_FileChooser

        protected transient TextFileChooser m_FileChooser
        the file chooser for saving buffers.
      • m_CaretAtStart

        protected boolean m_CaretAtStart
        whether to position the caret at beginning instead of end.
      • m_LineWrap

        protected boolean m_LineWrap
        use line wrap.
      • m_WrapStyleWord

        protected boolean m_WrapStyleWord
        use word wrap style.
    • Constructor Detail

      • BufferHistoryPanel

        public BufferHistoryPanel()
    • Method Detail

      • getFileChooser

        protected TextFileChooser getFileChooser()
        Returns the file chooser and creates it if necessary.
      • setTextArea

        public void setTextArea​(BaseTextArea value)
        Sets the text area to display the results in.
        Parameters:
        value - the text area to use
      • saveEntry

        protected void saveEntry​(String name)
        Saves the entry to a file.
        Parameters:
        name - the entry to save
      • setCaretAtStart

        public void setCaretAtStart​(boolean value)
        Sets whether to position the caret at the start or at the end (default).
        Parameters:
        value - if true then the caret will be positioned at start
      • isCaretAtStart

        public boolean isCaretAtStart()
        Returns whether the caret is positioned at the start instead of the end.
        Returns:
        true if caret positioned at start
      • setLineWrap

        public void setLineWrap​(boolean value)
        Enables/disables line wrap.
        Parameters:
        value - if true line wrap gets enabled
      • getLineWrap

        public boolean getLineWrap()
        Returns whether line wrap is enabled.
        Returns:
        true if line wrap enabled
      • setWrapStyleWord

        public void setWrapStyleWord​(boolean value)
        Sets the style of wrapping used if the text area is wrapping lines. If set to true the lines will be wrapped at word boundaries (whitespace) if they are too long to fit within the allocated width. If set to false, the lines will be wrapped at character boundaries. By default this property is false.
        Parameters:
        value - indicates if word boundaries should be used for line wrapping
      • getWrapStyleWord

        public boolean getWrapStyleWord()
        Gets the style of wrapping used if the text area is wrapping lines. If set to true the lines will be wrapped at word boundaries (ie whitespace) if they are too long to fit within the allocated width. If set to false, the lines will be wrapped at character boundaries.
        Returns:
        if the wrap style should be word boundaries instead of character boundaries