Class XChartPanel.SuffixSaveFilter

  • Enclosing class:
    XChartPanel<T extends Chart<?,​?>>

    private static class XChartPanel.SuffixSaveFilter
    extends javax.swing.filechooser.FileFilter
    File filter based on the suffix of a file. This file filter accepts all files that end with .suffix or the capitalized suffix.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String suffix  
    • Constructor Summary

      Constructors 
      Constructor Description
      SuffixSaveFilter​(java.lang.String suffix)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.io.File f)  
      java.lang.String getDescription()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • suffix

        private final java.lang.String suffix
    • Constructor Detail

      • SuffixSaveFilter

        public SuffixSaveFilter​(java.lang.String suffix)
        Parameters:
        suffix - This file filter accepts all files that end with .suffix or the capitalized suffix.
    • Method Detail

      • accept

        public boolean accept​(java.io.File f)
        Specified by:
        accept in class javax.swing.filechooser.FileFilter
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in class javax.swing.filechooser.FileFilter