javax.swing.plaf
Class FileChooserUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.FileChooserUI
Direct Known Subclasses:
BasicFileChooserUI, MultiFileChooserUI

public abstract class FileChooserUI
extends ComponentUI

An abstract base class for delegates that implement the pluggable look and feel for a JFileChooser.

See Also:
JFileChooser

Constructor Summary
FileChooserUI()
          Constructs a new FileChooserUI.
 
Method Summary
abstract  void ensureFileIsVisible(JFileChooser chooser, File file)
          Ensures that a specified file is visible in the JFileChooser
abstract  FileFilter getAcceptAllFileFilter(JFileChooser chooser)
          Returns a FileFilter that accepts every file.
abstract  String getApproveButtonText(JFileChooser chooser)
          Determines which text is appropriate for the approve button according to the design guidelines of the implemented look and feel.
abstract  String getDialogTitle(JFileChooser chooser)
          Determines which text is appropriate for the title bar of a JFileChooser according to the design guidelines of the implemented look and feel.
abstract  FileView getFileView(JFileChooser chooser)
          Returns a view to a file, which is able to retrieve its name, icon, and other properties that are relevant for presenting the file to the user.
abstract  void rescanCurrentDirectory(JFileChooser chooser)
          Refreshes the currently displayed directory.
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileChooserUI

public FileChooserUI()
Constructs a new FileChooserUI.

Method Detail

getAcceptAllFileFilter

public abstract FileFilter getAcceptAllFileFilter(JFileChooser chooser)
Returns a FileFilter that accepts every file. While the filtering itself is not specific to any look and feel, the text returned by FileFilter.getDescription() need not be the same across all look and feels.

Parameters:
chooser - the JFileChooser for which a FileFilter is requested.
See Also:
JFileChooser.getAcceptAllFileFilter(), FileFilter.getDescription()

getFileView

public abstract FileView getFileView(JFileChooser chooser)
Returns a view to a file, which is able to retrieve its name, icon, and other properties that are relevant for presenting the file to the user.

Parameters:
chooser - the JFileChooser for which a FileFilter is requested.

getApproveButtonText

public abstract String getApproveButtonText(JFileChooser chooser)
Determines which text is appropriate for the approve button according to the design guidelines of the implemented look and feel.

Parameters:
chooser - the JFileChooser whose button text is requested.
See Also:
JFileChooser.getApproveButtonText()

getDialogTitle

public abstract String getDialogTitle(JFileChooser chooser)
Determines which text is appropriate for the title bar of a JFileChooser according to the design guidelines of the implemented look and feel.

Parameters:
chooser - the JFileChooser whose dialog title is requested.
See Also:
JFileChooser.getDialogTitle()

rescanCurrentDirectory

public abstract void rescanCurrentDirectory(JFileChooser chooser)
Refreshes the currently displayed directory.

Parameters:
chooser - the JFileChooser whose dialog title needs re-scanning.

ensureFileIsVisible

public abstract void ensureFileIsVisible(JFileChooser chooser,
                                         File file)
Ensures that a specified file is visible in the JFileChooser

Parameters:
chooser - the JFileChooser that should display the file file.
file - the file that needs to be made visible.