Class AbstractSimpleConversionPanel

    • Field Detail

      • m_ButtonInputCopy

        protected BaseButton m_ButtonInputCopy
        the button for copying the input.
      • m_ButtonInputPaste

        protected BaseButton m_ButtonInputPaste
        the button for pasting the input.
      • m_ButtonInputOpen

        protected BaseButton m_ButtonInputOpen
        the button for loading the input from file.
      • m_ButtonOutputCopy

        protected BaseButton m_ButtonOutputCopy
        the button for copying the output.
      • m_ButtonOutputPaste

        protected BaseButton m_ButtonOutputPaste
        the button for pasting the output.
      • m_ButtonOutputSave

        protected BaseButton m_ButtonOutputSave
        the button for saving the output to a file.
      • m_ButtonConvert

        protected BaseButton m_ButtonConvert
        the button initiating the conversion.
      • m_FileChooserInput

        protected BaseFileChooser m_FileChooserInput
        the file chooser for loading the options.
      • m_FileChooserOutput

        protected BaseFileChooser m_FileChooserOutput
        the file chooser for saving the options.
    • Constructor Detail

      • AbstractSimpleConversionPanel

        public AbstractSimpleConversionPanel()
    • 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
      • newInputFileChooser

        protected BaseFileChooser newInputFileChooser()
        Returns the file chooser to use for the input.
        Returns:
        the file chooser
      • newOutputFileChooser

        protected BaseFileChooser newOutputFileChooser()
        Returns the file chooser to use for the output.
        Returns:
        the file chooser
      • openInput

        protected void openInput​(BaseFileChooser filechooser,
                                 BaseTextAreaWithButtons textarea)
        Loads the data from a file.
        Parameters:
        filechooser - the file chooser to use
        textarea - where to store the content
      • saveOutput

        protected void saveOutput​(BaseFileChooser filechooser,
                                  BaseTextAreaWithButtons textarea)
        Saves the output to a file.
        Parameters:
        filechooser - the file chooser to use
        textarea - the text to save
      • convert

        protected abstract void convert()
        Performs the conversion.