Quaqua 7.4.2 2011-07-05

ch.randelshofer.quaqua.filechooser
Interface FileInfo

All Known Implementing Classes:
FileSystemTreeModel.AliasDirectoryNode, FileSystemTreeModel.AliasNode, FileSystemTreeModel.DirectoryNode, FileSystemTreeModel.Node

public interface FileInfo

Provides information about a File object. FileInfo uses a worker thread for validating the information that it provides. The quality of the information returned increases over time.

Version:
$Id: FileInfo.java 363 2010-11-21 17:41:04Z wrandelshofer $
Author:
Werner Randelshofer

Method Summary
 java.io.File getFile()
          Returns the unresolved file object.
 java.lang.String getFileKind()
          Returns the kind of the file.
 int getFileLabel()
          Returns the (color) label of the file.
 long getFileLength()
          Returns the length of the file.
 javax.swing.Icon getIcon()
          Returns the icon of the file.
 java.io.File getResolvedFile()
          Returns the resolved file object.
 java.lang.String getUserName()
          Returns the user name of the file.
 boolean isAcceptable()
          Returns true, if the file object is acceptable, i.e.
 boolean isHidden()
          Returns true, if the file object is hidden.
 boolean isTraversable()
          Returns true, if the file object is traversable.
 boolean isValidating()
          Returns true if a worker thread is validating the information provided by this file info object.
 java.io.File lazyGetResolvedFile()
          Lazyily returns the resolved file object.
 

Method Detail

getFile

java.io.File getFile()
Returns the unresolved file object.


getResolvedFile

java.io.File getResolvedFile()
Returns the resolved file object.


lazyGetResolvedFile

java.io.File lazyGetResolvedFile()
Lazyily returns the resolved file object. Returns null, if the file object has not been resolved yet.


isTraversable

boolean isTraversable()
Returns true, if the file object is traversable.


isHidden

boolean isHidden()
Returns true, if the file object is hidden.


isAcceptable

boolean isAcceptable()
Returns true, if the file object is acceptable, i.e. selectable in the JFileChooser.


getFileLabel

int getFileLabel()
Returns the (color) label of the file. Returns -1 if the label has not (yet) been determined.


getUserName

java.lang.String getUserName()
Returns the user name of the file.


getIcon

javax.swing.Icon getIcon()
Returns the icon of the file. Returns a proxy icon if the real icon has not yet been fetched from the file system.


getFileLength

long getFileLength()
Returns the length of the file. Returns -1 if the length has not (yet) been determined.


getFileKind

java.lang.String getFileKind()
Returns the kind of the file. Returns null if the kind has not (yet) been determined.


isValidating

boolean isValidating()
Returns true if a worker thread is validating the information provided by this file info object.


Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.