BasicFileChooserUI.BasicFileView (Java Platform SE 8 ) (original) (raw)
- javax.swing.filechooser.FileView
- javax.swing.plaf.basic.BasicFileChooserUI.BasicFileView
Enclosing class:
BasicFileChooserUI
protected class BasicFileChooserUI.BasicFileView
extends FileView
Field Summary
Fields
Modifier and Type Field Description protected Hashtable<File,Icon> iconCache Constructor Summary
Constructors
Constructor Description BasicFileView() Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type Method Description void cacheIcon(File f,Icon i) void clearIconCache() Icon getCachedIcon(File f) String getDescription(File f) A human readable description of the file. Icon getIcon(File f) The icon that represents this file in the JFileChooser. String getName(File f) The name of the file. String getTypeDescription(File f) A human readable description of the type of the file. Boolean isHidden(File f) * ### Methods inherited from class javax.swing.filechooser.[FileView](../../../../javax/swing/filechooser/FileView.html "class in javax.swing.filechooser") `[isTraversable](../../../../javax/swing/filechooser/FileView.html#isTraversable-java.io.File-)` * ### Methods inherited from class java.lang.[Object](../../../../java/lang/Object.html "class in java.lang") `[clone](../../../../java/lang/Object.html#clone--), [equals](../../../../java/lang/Object.html#equals-java.lang.Object-), [finalize](../../../../java/lang/Object.html#finalize--), [getClass](../../../../java/lang/Object.html#getClass--), [hashCode](../../../../java/lang/Object.html#hashCode--), [notify](../../../../java/lang/Object.html#notify--), [notifyAll](../../../../java/lang/Object.html#notifyAll--), [toString](../../../../java/lang/Object.html#toString--), [wait](../../../../java/lang/Object.html#wait--), [wait](../../../../java/lang/Object.html#wait-long-), [wait](../../../../java/lang/Object.html#wait-long-int-)`
Field Detail
* #### iconCache protected [Hashtable](../../../../java/util/Hashtable.html "class in java.util")<[File](../../../../java/io/File.html "class in java.io"),[Icon](../../../../javax/swing/Icon.html "interface in javax.swing")> iconCache
Constructor Detail
* #### BasicFileView public BasicFileView()
Method Detail
* #### clearIconCache public void clearIconCache() * #### getName public [String](../../../../java/lang/String.html "class in java.lang") getName([File](../../../../java/io/File.html "class in java.io") f) Description copied from class: `[FileView](../../../../javax/swing/filechooser/FileView.html#getName-java.io.File-)` The name of the file. Normally this would be simply`f.getName()`. Overrides: `[getName](../../../../javax/swing/filechooser/FileView.html#getName-java.io.File-)` in class `[FileView](../../../../javax/swing/filechooser/FileView.html "class in javax.swing.filechooser")` * #### getDescription public [String](../../../../java/lang/String.html "class in java.lang") getDescription([File](../../../../java/io/File.html "class in java.io") f) Description copied from class: `[FileView](../../../../javax/swing/filechooser/FileView.html#getDescription-java.io.File-)` A human readable description of the file. For example, a file named _jag.jpg_ might have a description that read: "A JPEG image file of James Gosling's face". Overrides: `[getDescription](../../../../javax/swing/filechooser/FileView.html#getDescription-java.io.File-)` in class `[FileView](../../../../javax/swing/filechooser/FileView.html "class in javax.swing.filechooser")` * #### getTypeDescription public [String](../../../../java/lang/String.html "class in java.lang") getTypeDescription([File](../../../../java/io/File.html "class in java.io") f) Description copied from class: `[FileView](../../../../javax/swing/filechooser/FileView.html#getTypeDescription-java.io.File-)` A human readable description of the type of the file. For example, a `jpg` file might have a type description of: "A JPEG Compressed Image File" Overrides: `[getTypeDescription](../../../../javax/swing/filechooser/FileView.html#getTypeDescription-java.io.File-)` in class `[FileView](../../../../javax/swing/filechooser/FileView.html "class in javax.swing.filechooser")` * #### getCachedIcon public [Icon](../../../../javax/swing/Icon.html "interface in javax.swing") getCachedIcon([File](../../../../java/io/File.html "class in java.io") f) * #### cacheIcon public void cacheIcon([File](../../../../java/io/File.html "class in java.io") f, [Icon](../../../../javax/swing/Icon.html "interface in javax.swing") i) * #### getIcon public [Icon](../../../../javax/swing/Icon.html "interface in javax.swing") getIcon([File](../../../../java/io/File.html "class in java.io") f) Description copied from class: `[FileView](../../../../javax/swing/filechooser/FileView.html#getIcon-java.io.File-)` The icon that represents this file in the `JFileChooser`. Overrides: `[getIcon](../../../../javax/swing/filechooser/FileView.html#getIcon-java.io.File-)` in class `[FileView](../../../../javax/swing/filechooser/FileView.html "class in javax.swing.filechooser")` * #### isHidden public [Boolean](../../../../java/lang/Boolean.html "class in java.lang") isHidden([File](../../../../java/io/File.html "class in java.io") f)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.