javax.swing.plaf.basic
public class BasicFileChooserUI extends FileChooserUI
Nested Class Summary | |
---|---|
protected class | BasicFileChooserUI.AcceptAllFileFilter
A file filter that accepts all files. |
protected class | BasicFileChooserUI.ApproveSelectionAction
Handles a user action to approve the dialog selection.
|
protected class | BasicFileChooserUI.BasicFileView
Provides presentation information about files and directories. |
protected class | BasicFileChooserUI.CancelSelectionAction
Handles an action to cancel the file chooser.
|
protected class | BasicFileChooserUI.ChangeToParentDirectoryAction
An action to handle changes to the parent directory (for example, via
a click on the "up folder" button).
|
protected class | BasicFileChooserUI.DoubleClickListener
A mouse listener that handles double-click events.
|
protected class | BasicFileChooserUI.GoHomeAction
An action that changes the file chooser to display the user's home
directory.
|
protected class | BasicFileChooserUI.NewFolderAction
An action that handles the creation of a new folder/directory.
|
protected class | BasicFileChooserUI.SelectionListener
A listener for selection events in the file list.
|
protected class | BasicFileChooserUI.UpdateAction
DOCUMENT ME!
|
Field Summary | |
---|---|
protected int | cancelButtonMnemonic The localised mnemonic for the cancel button. |
protected String | cancelButtonText The localised text for the cancel button. |
protected String | cancelButtonToolTipText The localised tool tip text for the cancel button. |
protected Icon | computerIcon An icon representing a computer. |
protected Icon | detailsViewIcon An icon for the "details view" button. |
protected Icon | directoryIcon An icon representing a directory. |
protected int | directoryOpenButtonMnemonic The localised Mnemonic for the open button. |
protected String | directoryOpenButtonText The localised text for the open button. |
protected String | directoryOpenButtonToolTipText The localised tool tip text for the open button. |
protected Icon | fileIcon An icon representing a file. |
protected Icon | floppyDriveIcon An icon representing a floppy drive. |
protected Icon | hardDriveIcon An icon representing a hard drive. |
protected int | helpButtonMnemonic The localised mnemonic for the "help" button. |
protected String | helpButtonText The localised text for the "help" button. |
protected String | helpButtonToolTipText The localised tool tip text for the help button. |
protected Icon | homeFolderIcon An icon representing the user's home folder. |
protected Icon | listViewIcon An icon for the "list view" button. |
protected Icon | newFolderIcon An icon for the "new folder" button. |
protected int | openButtonMnemonic The localised mnemonic for the "open" button. |
protected String | openButtonText The localised text for the "open" button. |
protected String | openButtonToolTipText The localised tool tip text for the "open" button. |
protected int | saveButtonMnemonic The localised mnemonic for the "save" button. |
protected String | saveButtonText The localised text for the "save" button. |
protected String | saveButtonToolTipText The localised tool tip text for the save button. |
protected int | updateButtonMnemonic The localised mnemonic for the "update" button. |
protected String | updateButtonText The localised text for the "update" button. |
protected String | updateButtonToolTipText The localised tool tip text for the "update" button. |
protected Icon | upFolderIcon An icon for the "up folder" button. |
Constructor Summary | |
---|---|
BasicFileChooserUI(JFileChooser b)
Creates a new BasicFileChooserUI object.
|
Method Summary | |
---|---|
void | clearIconCache()
Clears the icon cache. |
protected MouseListener | createDoubleClickListener(JFileChooser fc, JList list)
Creates a new listener to handle double-click events.
|
ListSelectionListener | createListSelectionListener(JFileChooser fc)
Creates a new listener to handle selections in the file list.
|
protected void | createModel()
Creates a new directory model. |
PropertyChangeListener | createPropertyChangeListener(JFileChooser fc)
Creates a listener to handle changes to the properties of the given
file chooser component.
|
static ComponentUI | createUI(JComponent c)
Returns a UI delegate for the given component.
|
void | ensureFileIsVisible(JFileChooser fc, File f)
NOT YET IMPLEMENTED.
|
FileFilter | getAcceptAllFileFilter(JFileChooser fc)
Returns the "accept all" file filter.
|
JPanel | getAccessoryPanel()
Returns the optional accessory panel.
|
protected JButton | getApproveButton(JFileChooser fc)
Returns the approve (open or save) button for the dialog.
|
int | getApproveButtonMnemonic(JFileChooser fc)
Returns the approve button mnemonic.
|
String | getApproveButtonText(JFileChooser fc)
Returns the approve button text.
|
String | getApproveButtonToolTipText(JFileChooser fc)
Returns the tool tip text for the approve (open/save) button. |
Action | getApproveSelectionAction()
Returns the action that handles events for the "approve" button.
|
Action | getCancelSelectionAction()
Returns the action that handles events for the "cancel" button.
|
Action | getChangeToParentDirectoryAction()
Returns the action that handles events for the "up folder" control button.
|
String | getDialogTitle(JFileChooser fc)
Returns the dialog title.
|
protected File | getDirectory()
Returns the current directory.
|
String | getDirectoryName()
Returns the current directory name.
|
JFileChooser | getFileChooser()
Returns the {@link JFileChooser} component that this UI delegate
represents.
|
String | getFileName()
Returns the current file name.
|
FileView | getFileView(JFileChooser fc)
Returns the default file view (NOT the file view from the file chooser,
if there is one).
|
Action | getGoHomeAction()
Creates and returns a new action that will be used with the "home folder"
button.
|
BasicDirectoryModel | getModel()
Returns the directory model.
|
Action | getNewFolderAction()
Creates and returns a new action that will be used with the "new folder"
button.
|
Action | getUpdateAction()
Returns the update action (an instance of {@link UpdateAction}).
|
void | installComponents(JFileChooser fc)
Creates and install the subcomponents for the file chooser.
|
protected void | installDefaults(JFileChooser fc)
Installs the defaults for this UI delegate.
|
protected void | installIcons(JFileChooser fc)
Installs the icons for this UI delegate.
|
protected void | installListeners(JFileChooser fc)
Installs the listeners required by this UI delegate.
|
protected void | installStrings(JFileChooser fc)
Installs the strings used by this UI delegate.
|
void | installUI(JComponent c)
Installs the UI for the specified component.
|
protected boolean | isDirectorySelected()
Returns true if a directory is selected, and
false otherwise.
|
void | rescanCurrentDirectory(JFileChooser fc)
Rescans the current directory.
|
protected void | setDirectory(File f)
Sets the current directory.
|
void | setDirectoryName(String dirname)
Sets the directory name (NOT IMPLEMENTED).
|
protected void | setDirectorySelected(boolean selected)
Sets the flag that indicates whether the current directory is selected.
|
void | setFileName(String filename)
Sets the file name.
|
void | uninstallComponents(JFileChooser fc)
Uninstalls the components from the file chooser.
|
protected void | uninstallDefaults(JFileChooser fc)
Uninstalls the defaults previously added by this UI delegate.
|
protected void | uninstallIcons(JFileChooser fc)
Uninstalls the icons previously added by this UI delegate.
|
protected void | uninstallListeners(JFileChooser fc)
Uninstalls the listeners previously installed by this UI delegate.
|
protected void | uninstallStrings(JFileChooser fc)
Uninstalls the strings previously added by this UI delegate.
|
void | uninstallUI(JComponent c)
Uninstalls this UI from the given component.
|
BasicFileChooserUI
object.
Parameters: b the file chooser component.
Parameters: fc the file chooser component. list the list.
Returns: A new instance of {@link DoubleClickListener}.
Parameters: fc the file chooser component.
Returns: A new instance of {@link SelectionListener}.
Parameters: fc the file chooser component.
Returns: A new listener.
Parameters: c the component (should be a {@link JFileChooser}).
Returns: A new UI delegate.
Parameters: fc the file chooser. f the file.
Parameters: fc the file chooser component.
Returns: The "accept all" file filter.
Returns: The optional accessory panel.
Parameters: fc the file chooser.
Returns: The button.
Parameters: fc the file chooser (null
not permitted).
Returns: The approve button mnemonic.
See Also: getApproveButtonMnemonic
Parameters: fc the file chooser (null
not permitted).
Returns: The approve button text.
See Also: getApproveButtonText
Parameters: fc the file chooser.
Returns: The tool tip text.
Returns: An instance of {@link ApproveSelectionAction}.
Returns: An instance of {@link CancelSelectionAction}.
Returns: An instance of {@link ChangeToParentDirectoryAction}.
Parameters: fc the file chooser (null
not permitted).
Returns: The dialog title.
See Also: getDialogTitle
Returns: The current directory.
Returns: The directory name.
See Also: setDirectoryName
Returns: The component represented by this UI delegate.
Returns: The current file name.
Parameters: fc the file chooser component.
Returns: The file view.
See Also: getFileView
Returns: A new instance of {@link GoHomeAction}.
Returns: The directory model.
Returns: A new instance of {@link NewFolderAction}.
Returns: An action.
Parameters: fc the file chooser.
Parameters: fc the file chooser.
Parameters: fc the file chooser (ignored).
Parameters: fc the file chooser.
Parameters: fc the file chooser.
Parameters: c the component (should be a {@link JFileChooser}).
true
if a directory is selected, and
false
otherwise.
Returns: A boolean.
Parameters: fc the file chooser.
Parameters: f the directory.
Parameters: dirname the directory name.
See Also: getDirectoryName
Parameters: selected the new flag value.
Parameters: filename the file name.
See Also: getFileName
Parameters: fc the file chooser.
Parameters: fc the file chooser.
Parameters: fc the file chooser.
Parameters: fc the file chooser.
Parameters: fc the file chooser.
Parameters: c the component (should be a {@link JFileChooser}).