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