com.alee.extended.tree
Class FileTreeNodeFilter

java.lang.Object
  extended by com.alee.extended.tree.FileTreeNodeFilter
All Implemented Interfaces:
Filter<FileTreeNode>

public class FileTreeNodeFilter
extends java.lang.Object
implements Filter<FileTreeNode>

Custom filter for file tree nodes.

Author:
Mikle Garin

Field Summary
protected  Filter<java.io.File> filter
          Used file filter.
 
Constructor Summary
FileTreeNodeFilter()
          Constructs new FileTreeNodeFilter with default file filter.
FileTreeNodeFilter(Filter<java.io.File> filter)
          Constructs new FileTreeNodeFilter using the specified file filter.
 
Method Summary
 boolean accept(FileTreeNode object)
          Returns whether the specified object is accepted by this filter or not.
 Filter<java.io.File> getFilter()
          Returns used file filter.
 void setFilter(Filter<java.io.File> filter)
          Sets used file filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filter

protected Filter<java.io.File> filter
Used file filter.

Constructor Detail

FileTreeNodeFilter

public FileTreeNodeFilter()
Constructs new FileTreeNodeFilter with default file filter.


FileTreeNodeFilter

public FileTreeNodeFilter(Filter<java.io.File> filter)
Constructs new FileTreeNodeFilter using the specified file filter.

Parameters:
filter - file filter
Method Detail

getFilter

public Filter<java.io.File> getFilter()
Returns used file filter.

Returns:
used file filter

setFilter

public void setFilter(Filter<java.io.File> filter)
Sets used file filter.

Parameters:
filter - used file filter

accept

public boolean accept(FileTreeNode object)
Returns whether the specified object is accepted by this filter or not.

Specified by:
accept in interface Filter<FileTreeNode>
Parameters:
object - object to process
Returns:
true if the specified object is accepted by this filter, false otherwise