Class ExtensionFileFilterWithClass

    • Field Detail

      • m_Classname

        protected String m_Classname
        the classname.
    • Constructor Detail

      • ExtensionFileFilterWithClass

        public ExtensionFileFilterWithClass​(String classname)
        Constructs a filter that matches all files.
        Parameters:
        classname - the classname this filter is for
      • ExtensionFileFilterWithClass

        public ExtensionFileFilterWithClass​(String classname,
                                            String description,
                                            String extension)
        Constructs a filter that matches files with the given extension, not case-sensitive.
        Parameters:
        classname - the classname this filter is for
        description - the display string
        extension - the extensions of the files (no dot!)
      • ExtensionFileFilterWithClass

        public ExtensionFileFilterWithClass​(String classname,
                                            String description,
                                            String[] extensions)
        Constructs a filter that matches files with the given extension, not case-sensitive.
        Parameters:
        classname - the classname this filter is for
        description - the display string
        extensions - the extensions of the files (no dot!)
      • ExtensionFileFilterWithClass

        public ExtensionFileFilterWithClass​(String classname,
                                            String description,
                                            String extension,
                                            boolean caseSensitive)
        Constructs a filter that matches files with the given extension, not case-sensitive.
        Parameters:
        classname - the classname this filter is for
        description - the display string
        extension - the extensions of the files (no dot!)
        caseSensitive - if true then the filter is case-sensitive
      • ExtensionFileFilterWithClass

        public ExtensionFileFilterWithClass​(String classname,
                                            String description,
                                            String[] extensions,
                                            boolean caseSensitive)
        Constructs a filter that matches files with the given extension, not case-sensitive.
        Parameters:
        classname - the classname this filter is for
        description - the display string
        extensions - the extensions of the files (no dot!)
        caseSensitive - if true then the filter is case-sensitive
    • Method Detail

      • getClassname

        public String getClassname()
        Returns the associated classname.
        Returns:
        the classname
      • compareTo

        public int compareTo​(ExtensionFileFilter o)
        Compares this image format with the specified filter for order. Returns a negative integer, zero, or a positive integer as this filter is less than, equal to, or greater than the specified filter.
        Specified by:
        compareTo in interface Comparable<ExtensionFileFilter>
        Overrides:
        compareTo in class ExtensionFileFilter
        Parameters:
        o - the filter to be compared.
        Returns:
        a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.