org.gnu.gtk
public class FileFilter extends GObject
Deprecated: This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may in the future have an equivalent in
java-gnome 4.0, try looking for
org.gnome.gtk.FileFilter
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
Constructor Summary | |
---|---|
FileFilter()
Creates a new FileFilter with no rules added to it. |
Method Summary | |
---|---|
void | addMimeType(String mimeType)
Adds a rule allowing a given mime type to filter. |
void | addPattern(String pattern)
Adds a rule allowing a shell style glob to a filter. |
String | getName()
Returns the human readable name of the file filter. |
void | setName(String name)
Sets the human readable name for the filter. |
Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Creates a new FileFilter with no rules added to it. Such a filter doesn't accept any files, so is not particularly useful until you add rules with addMimeType() or addPattern().Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Adds a rule allowing a given mime type to filter.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Adds a rule allowing a shell style glob to a filter.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Returns the human readable name of the file filter.Deprecated: Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries.
Sets the human readable name for the filter. This is the string that will be displayed in the file selector user interface if there is a selectable list of filters.Parameters: name The name of the filter.