Class AbstractOutputPanelWithPopupMenu<T extends adams.gui.chooser.BaseFileChooser>

    • Field Detail

      • m_FileChooser

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

      • AbstractOutputPanelWithPopupMenu

        public AbstractOutputPanelWithPopupMenu()
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class adams.gui.core.DetachablePanel
      • 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.
      • createPopupMenu

        protected JPopupMenu createPopupMenu()
        Creates and returns the popup menu.
        Overrides:
        createPopupMenu in class adams.gui.core.DetachablePanel
        Returns:
        the menu
      • 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()