Class ConsolePanel.OutputPanel

    • Field Detail

      • m_Title

        protected String m_Title
        the title of the panel.
      • m_OutputEnabled

        protected boolean m_OutputEnabled
        whether output is enabled.
      • m_ButtonEnabledDisable

        protected BaseButton m_ButtonEnabledDisable
        the button for enabling/disabling the output.
      • m_SpinnerMaxLines

        protected JSpinner m_SpinnerMaxLines
        the spinner for the maximum number of lines.
      • m_ButtonClear

        protected BaseButton m_ButtonClear
        the button for clearing the output.
    • Constructor Detail

      • OutputPanel

        public OutputPanel​(String title)
        Initializes the panel.
        title - the title of the panel
    • Method Detail

      • initGUI

        protected void initGUI()
        Initializes the widgets.
        initGUI in class BasePanel
      • getTitle

        public String getTitle()
        Returns the title of the panel.
        the title of the panel
      • setOutputEnabled

        public void setOutputEnabled​(boolean value)
        Sets whether the output is enabled.
        value - if true the output will get enabled
      • clear

        public void clear()
        Clears the text.
        Specified by:
        clear in interface LogPanel
      • copy

        public void copy()
        Copies the text to the clipboard.
        Specified by:
        copy in interface LogPanel
      • saveAs

        public void saveAs()
        Saves the current content to a file.
        Specified by:
        saveAs in interface LogPanel
      • find

        public void find()
        For finding a string.
      • findNext

        public void findNext()
        Finds the next occurrence.
      • setLineWrap

        public void setLineWrap​(boolean value)
        Sets the line wrap flag.
        Specified by:
        setLineWrap in interface LogPanel
        value - if true line wrap is enabled
      • getLineWrap

        public boolean getLineWrap()
        Returns the current line wrap setting.
        Specified by:
        getLineWrap in interface LogPanel
        true if line wrap is enabled
      • setText

        public void setText​(String value)
        Sets the current text.
        Specified by:
        setText in interface LogPanel
        value - the text
      • getText

        public String getText()
        Returns the current text.
        Specified by:
        getText in interface LogPanel
        the tex
      • trimOutput

        protected void trimOutput()
        Trims the output of the text area if necessary.
      • append

        public void append​(LoggingLevel level,
                           String msg)
        Appends the given string.
        Specified by:
        append in interface LogPanel
        level - the logging level
        msg - the message to append
      • getContent

        public String getContent()
        Returns the content of the text area.
        the currently displayed text