TrueZIP 6.8.2

de.schlichtherle.io.swing
Class FilterFileView

java.lang.Object
  extended by javax.swing.filechooser.FileView
      extended by de.schlichtherle.io.swing.FilterFileView
Direct Known Subclasses:
FileView

abstract class FilterFileView
extends FileView

An abstract decorator which simply delegates to another instance of FileView. If the delegate is null, all methods in this class return null. Subclasses should override individual methods to implement some specific behaviour. Note that this class does not override any methods in Object - this should be done in subclasses.

Version:
$Id: FilterFileView.java 06f3ba684701 2010/11/04 01:15:55 christian $
Author:
Christian Schlichtherle

Field Summary
private  FileView delegate
          The file view to be decorated - may be null.
 
Constructor Summary
protected FilterFileView(FileView delegate)
          Constructs a new decorating file view.
 
Method Summary
 FileView getDelegate()
          Returns the file view to be decorated - may be null.
 String getDescription(File f)
           
 Icon getIcon(File f)
           
 String getName(File f)
           
 String getTypeDescription(File f)
           
 Boolean isTraversable(File f)
           
 void setDelegate(FileView delegate)
          Sets the file view to be decorated - may be null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

private FileView delegate
The file view to be decorated - may be null.

Constructor Detail

FilterFileView

protected FilterFileView(FileView delegate)
Constructs a new decorating file view.

Parameters:
delegate - The file view to be decorated - may be null.
Method Detail

getDelegate

public FileView getDelegate()
Returns the file view to be decorated - may be null.


setDelegate

public void setDelegate(FileView delegate)
Sets the file view to be decorated - may be null.

Throws:
IllegalArgumentException - If delegate is this instance.

getDescription

public String getDescription(File f)
Overrides:
getDescription in class FileView

getIcon

public Icon getIcon(File f)
Overrides:
getIcon in class FileView

getName

public String getName(File f)
Overrides:
getName in class FileView

getTypeDescription

public String getTypeDescription(File f)
Overrides:
getTypeDescription in class FileView

isTraversable

public Boolean isTraversable(File f)
Overrides:
isTraversable in class FileView

TrueZIP 6.8.2

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.