|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileView
javax.swing.plaf.basic.BasicFileChooserUI.BasicFileView
protected class BasicFileChooserUI.BasicFileView
Provides presentation information about files and directories.
Field Summary | |
---|---|
protected Hashtable<File,Icon> |
iconCache
Storage for cached icons. |
Constructor Summary | |
---|---|
BasicFileChooserUI.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 Boolean.TRUE if the given file/directory is hidden,
and Boolean.FALSE otherwise. |
Methods inherited from class javax.swing.filechooser.FileView |
---|
isTraversable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Hashtable<File,Icon> iconCache
Constructor Detail |
---|
public BasicFileChooserUI.BasicFileView()
Method Detail |
---|
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 FileView
f
- the file/directory.
public Icon getIcon(File f)
getIcon
in class FileView
f
- the file/directory.
public String getName(File f)
getName
in class FileView
f
- the file/directory.
public String getTypeDescription(File f)
getTypeDescription
in class FileView
f
- 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
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |