Class BaseLogPanel

    • Field Detail

      • m_TextLog

        protected BaseTextArea m_TextLog
        the text area for the log.
      • m_ButtonClearLog

        protected BaseButton m_ButtonClearLog
        the button for clearing the log.
      • m_ButtonCopyLog

        protected BaseButton m_ButtonCopyLog
        the button for copy the log.
      • m_ButtonSaveLog

        protected BaseButton m_ButtonSaveLog
        the button for saving the log.
      • m_FileChooser

        protected BaseFileChooser m_FileChooser
        the file chooser for saving the log.
    • Constructor Detail

      • BaseLogPanel

        public BaseLogPanel()
    • Method Detail

      • initialize

        protected void initialize()
        For initializing members.
        Overrides:
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        For initializing the GUI.
        Overrides:
        initGUI in class BasePanel
      • setRows

        public void setRows​(int value)
        Sets the number rows in the text area.
        Parameters:
        value - the number of rows
      • getRows

        public int getRows()
        Returns the currently number of rows in the text area.
        Returns:
        the number of rows
      • setColumns

        public void setColumns​(int value)
        Sets the number columns in the text area.
        Parameters:
        value - the number of columns
      • getColumns

        public int getColumns()
        Returns the currently number of columns in the text area.
        Returns:
        the number of columns
      • getLog

        public String getLog()
        Returns the current log content.
        Returns:
        the current log
      • clear

        public void clear()
        Clears the log content.
      • copy

        public void copy()
        Copies the log content (selected or all) to the clipboard.
      • save

        public void save()
        Saves the log to a file that the user chooses.
      • append

        public void append​(String msg)
        Appens the log message. Automatically appends a newline.
        Parameters:
        msg - the message to append