protected class BasicFileChooserUI.BasicFileView extends FileView
| Modifier and Type | Field and Description |
|---|---|
protected Hashtable<File,Icon> |
iconCache
Storage for cached icons.
|
| Constructor and Description |
|---|
BasicFileChooserUI.BasicFileView()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cacheIcon(File f,
Icon i)
Adds an icon to the cache, associating it with the given file/directory.
|
void |
clearIconCache()
Clears the icon cache.
|
Icon |
getCachedIcon(File f)
Retrieves the icon associated with the specified file/directory, if
there is one.
|
String |
getDescription(File f)
Returns a description of the given file/directory.
|
Icon |
getIcon(File f)
Returns an icon appropriate for the given file or directory.
|
String |
getName(File f)
Returns the name for the given file/directory.
|
String |
getTypeDescription(File f)
Returns a localised description for the type of file/directory.
|
Boolean |
isHidden(File f)
Returns
Boolean.TRUE if the given file/directory is hidden,
and Boolean.FALSE otherwise. |
isTraversablepublic BasicFileChooserUI.BasicFileView()
public void cacheIcon(File f, Icon i)
f - the file/directory.i - the icon.public void clearIconCache()
public Icon getCachedIcon(File f)
f - the file/directory.null).public String getDescription(File f)
getName(File).getDescription in class FileViewf - the file/directory.public String getTypeDescription(File f)
getTypeDescription in class FileViewf - the file/directory.public Boolean isHidden(File f)
Boolean.TRUE if the given file/directory is hidden,
and Boolean.FALSE otherwise.f - the file/directory.Boolean.TRUE or Boolean.FALSE.