Class AbstractOutputPanelWithPopupMenu<T extends BaseFileChooser>

    • Field Detail

      • m_FileChooser

        protected transient T extends BaseFileChooser m_FileChooser
        the filechooser.
    • Constructor Detail

      • AbstractOutputPanelWithPopupMenu

        public AbstractOutputPanelWithPopupMenu()
    • Method Detail

      • createFileChooser

        protected abstract T createFileChooser()
        Creates the filechooser to use.
        Returns:
        the filechooser
      • getFileChooser

        protected T getFileChooser()
        Returns the filechooser to use.
        Returns:
        the filechooser
      • save

        protected abstract String save​(File file)
        Saves the content to the specified file.
        Parameters:
        file - the file to save to
        Returns:
        null if successful, otherwise error message
      • save

        protected void save()
        Pops up the filechooser.
      • canCopyToClipboard

        public boolean canCopyToClipboard()
        Returns whether copying to the clipboard is supported.
        Default implementation returns false.
        Returns:
        true if copy to clipboard is supported
        See Also:
        copyToClipboard()
      • copyToClipboard

        public void copyToClipboard()
        Copies the content to the clipboard.
        Default implementation does nothing.
        See Also:
        canCopyToClipboard()