APIdia Launch Partner
Top Description Constructors Methods
javax.swing.plaf

public abstract Class FileChooserUI

extends ComponentUI
Class Inheritance
Known Direct Subclasses
javax.swing.plaf.basic.BasicFileChooserUI, javax.swing.plaf.multi.MultiFileChooserUI
Imports
javax.swing.*, javax.swing.filechooser.FileFilter, .FileView, java.io.File

Pluggable look and feel interface for JFileChooser.
Author
Jeff Dinkins

Constructor Summary

AccessConstructor and Description
protected
FileChooserUI()

Constructor for subclasses to call.

Method Summary

Modifier and TypeMethod and Description
public abstract void
ensureFileIsVisible(JFileChooser
the file chooser
fc
,
File
the file
f
)

Ensure the file in question is visible.

public abstract FileFilter

Returns:

an accept-all file filter
getAcceptAllFileFilter
(JFileChooser
the file chooser
fc
)

Returns an accept-all file filter.

public abstract String

Returns:

approve button text.
getApproveButtonText
(JFileChooser
the file chooser
fc
)

Returns approve button text.

public JButton

Returns:

the default JButton for current look and feel
getDefaultButton
(JFileChooser
the JFileChooser whose default button is requested
fc
)

Returns default button for current LookAndFeel.

public abstract String

Returns:

the dialog title.
getDialogTitle
(JFileChooser
the file chooser
fc
)

Returns the dialog title.

public abstract FileView

Returns:

a file view
getFileView
(JFileChooser
the file chooser
fc
)

Returns a file view.

public abstract void
rescanCurrentDirectory(JFileChooser
the file chooser
fc
)

Rescan the current directory.

Inherited from javax.swing.plaf.ComponentUI:
containscreateUIgetAccessibleChildgetAccessibleChildrenCountgetBaselinegetBaselineResizeBehaviorgetMaximumSizegetMinimumSizegetPreferredSizeinstallUIpaintuninstallUIupdate

Constructor Detail

FileChooserUIback to summary
protected FileChooserUI()

Constructor for subclasses to call.

Method Detail

ensureFileIsVisibleback to summary
public abstract void ensureFileIsVisible(JFileChooser fc, File f)

Ensure the file in question is visible.

Parameters
fc:JFileChooser

the file chooser

f:File

the file

getAcceptAllFileFilterback to summary
public abstract FileFilter getAcceptAllFileFilter(JFileChooser fc)

Returns an accept-all file filter.

Parameters
fc:JFileChooser

the file chooser

Returns:FileFilter

an accept-all file filter

getApproveButtonTextback to summary
public abstract String getApproveButtonText(JFileChooser fc)

Returns approve button text.

Parameters
fc:JFileChooser

the file chooser

Returns:String

approve button text.

getDefaultButtonback to summary
public JButton getDefaultButton(JFileChooser fc)

Returns default button for current LookAndFeel. JFileChooser will use this button as default button for dialog windows.

Parameters
fc:JFileChooser

the JFileChooser whose default button is requested

Returns:JButton

the default JButton for current look and feel

Since
1.7
getDialogTitleback to summary
public abstract String getDialogTitle(JFileChooser fc)

Returns the dialog title.

Parameters
fc:JFileChooser

the file chooser

Returns:String

the dialog title.

getFileViewback to summary
public abstract FileView getFileView(JFileChooser fc)

Returns a file view.

Parameters
fc:JFileChooser

the file chooser

Returns:FileView

a file view

rescanCurrentDirectoryback to summary
public abstract void rescanCurrentDirectory(JFileChooser fc)

Rescan the current directory.

Parameters
fc:JFileChooser

the file chooser