javax.swing.plaf.basic
protected class BasicFileChooserUI.BasicFileView extends FileView
| Field Summary | |
|---|---|
| protected Hashtable<File,Icon> | iconCache Storage for cached icons. |
| Constructor Summary | |
|---|---|
| BasicFileView()
Creates a new instance. | |
| Method Summary | |
|---|---|
| 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 {@link Boolean#TRUE} if the given file/directory is hidden,
and {@link Boolean#FALSE} otherwise.
|
Parameters: f the file/directory. i the icon.
Parameters: f the file/directory.
Returns: The cached icon (or null).
Parameters: f the file/directory.
Returns: A description of the given file/directory.
Parameters: f the file/directory.
Returns: An icon.
Parameters: f the file/directory.
Returns: The name of the file/directory.
Parameters: f the file/directory.
Returns: A type description for the given file/directory.
Parameters: f the file/directory.
Returns: {@link Boolean#TRUE} or {@link Boolean#FALSE}.