Class SimpleLogPanel

    • Field Detail

      • m_ButtonClear

        protected BaseButton m_ButtonClear
        the button for emptying the log.
      • m_ButtonCopy

        protected BaseButton m_ButtonCopy
        the button for copying the text.
      • m_ButtonSave

        protected BaseButton m_ButtonSave
        the button for saving the text.
      • m_CheckBoxLineWrap

        protected BaseCheckBox m_CheckBoxLineWrap
        the checkbox for linewrap.
      • m_FileChooser

        protected transient BaseFileChooser m_FileChooser
        the filechooser for saving the log.
    • Constructor Detail

      • SimpleLogPanel

        public SimpleLogPanel()
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class BasePanel
      • finishInit

        protected void finishInit()
        Finishes the initialization.
        Overrides:
        finishInit in class BasePanel
      • createFileChooser

        protected BaseFileChooser createFileChooser()
        Creates the filechooser.
        Returns:
        the filechooser
      • getFileChooser

        protected BaseFileChooser getFileChooser()
        Returns the filechooser to use.
        Returns:
        the filechooser
      • updateButtons

        protected void updateButtons()
        Updates the buttons.
      • append

        public void append​(LoggingLevel level,
                           String msg)
        Appends the given string.
        Specified by:
        append in interface LogPanel
        Parameters:
        level - the logging level
        msg - the message to append
      • 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
      • setLineWrap

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

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

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

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

        public void setRows​(int value)
        Sets the rows.
        Parameters:
        value - the rows
      • getRows

        public int getRows()
        Returns the rows.
        Returns:
        the rows
      • setColumns

        public void setColumns​(int value)
        Sets the columns.
        Parameters:
        value - the columns
      • getColumns

        public int getColumns()
        Returns the columns.
        Returns:
        the columns