org.kde.koala
public class KSimpleFileFilter extends KFileFilter
UNKNOWN: A simple file filter.
Constructor Summary | |
---|---|
protected | KSimpleFileFilter(Class dummy) |
KSimpleFileFilter()
Creates a new filter. |
Method Summary | |
---|---|
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
boolean | filterDotFiles()
Checks whether filtering dot files is enabled.
|
boolean | filterSpecials()
Checks whether it filters "." and "..", default is true. |
protected void | finalize() Deletes the wrapped C++ instance |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
ArrayList | mimeFilters()
Returns the list of mime types. |
long | modeFilter()
Returns the mode filter, as set by setModeFilter(). |
boolean | passesFilter(KFileItem item)
Checks the given item. |
void | setFilterDotFiles(boolean filter)
Enable or disable filtering hidden dot files.
|
void | setFilterSpecials(boolean filter)
Filters "." and "..", default is true. |
void | setMimeFilters(String[] mimeFilters)
Sets a list of mime filters. |
void | setModeFilter(long mode)
Sets the mode filter. |
void | setNameFilters(String nameFilters, boolean caseSensitive, char separator)
Sets a list of regular expressions to filter by name.
|
void | setNameFilters(String nameFilters, boolean caseSensitive) |
void | setNameFilters(String nameFilters)
Sets a list of regular expressions to filter by name.
|
UNKNOWN: Creates a new filter.
Returns: true if filtering is enabled, false otherwise
See Also: KSimpleFileFilter
UNKNOWN: Checks whether filtering dot files is enabled.
Returns: true if enabled, false otherwise
UNKNOWN: Checks whether it filters ".
Returns: the list of mime types
See Also: KSimpleFileFilter
UNKNOWN: Returns the list of mime types.
Returns: the mode filter, 0 if disabled
See Also: KSimpleFileFilter
UNKNOWN: Returns the mode filter, as set by setModeFilter().
item.
Parameters: item the item to filter
Returns: true if the item
passes the filter, false otherwise
UNKNOWN: Checks the given item.
Parameters: filter true to enable filtering dot files, false to disable
See Also: KSimpleFileFilter
UNKNOWN: Enable or disable filtering hidden dot files.
Parameters: filter true to enable, false otherwise
UNKNOWN: Filters ".
Parameters: mimeFilters the list of mime types
See Also: KSimpleFileFilter
UNKNOWN: Sets a list of mime filters.
mode
is 0, the filter is
disabled.
When enabled, a file will only pass if the files mode
ANDed with mode
is not zero.Parameters: mode the new mode. 0 to disable
See Also: KSimpleFileFilter
UNKNOWN: Sets the mode filter.
Parameters: nameFilters a list of regular expressions, separated by
the character separator
caseSensitive if true, matches case sensitive. False
otherwise separator the separator in the nameFilter
UNKNOWN: Sets a list of regular expressions to filter by name.
Parameters: nameFilters a list of regular expressions, separated by space (' ')
UNKNOWN: Sets a list of regular expressions to filter by name.