javax.swing.plaf.metal
public class MetalFileChooserUI extends BasicFileChooserUI
Nested Class Summary | |
---|---|
protected class | MetalFileChooserUI.DirectoryComboBoxAction
Handles changes to the selection in the directory combo box. |
protected class | MetalFileChooserUI.DirectoryComboBoxModel
A combo box model containing the selected directory and all its parent
directories. |
protected class | MetalFileChooserUI.FileRenderer
A renderer for the files and directories in the file chooser. |
protected class | MetalFileChooserUI.FilterComboBoxModel
A combo box model for the file selection filters. |
class | MetalFileChooserUI.FilterComboBoxRenderer
A renderer for the items in the file filter combo box. |
protected class | MetalFileChooserUI.SingleClickListener
A mouse listener for the {@link JFileChooser}.
|
Constructor Summary | |
---|---|
MetalFileChooserUI(JFileChooser filechooser)
Creates a new instance of this UI delegate.
|
Method Summary | |
---|---|
protected void | addControlButtons()
Adds the control buttons ('up', 'home' etc.) to the panel. |
protected ActionMap | createActionMap()
Creates and returns an action map.
|
protected JPanel | createDetailsView(JFileChooser fc)
Creates a panel containing a table within a scroll pane.
|
protected MetalFileChooserUI.DirectoryComboBoxModel | createDirectoryComboBoxModel(JFileChooser fc)
Creates and returns a new instance of {@link DirectoryComboBoxModel}.
|
protected MetalFileChooserUI.DirectoryComboBoxRenderer | createDirectoryComboBoxRenderer(JFileChooser fc)
Creates a new instance of the renderer used in the directory
combo box.
|
protected MetalFileChooserUI.FilterComboBoxModel | createFilterComboBoxModel()
Creates and returns a new instance of {@link FilterComboBoxModel}.
|
protected MetalFileChooserUI.FilterComboBoxRenderer | createFilterComboBoxRenderer()
Creates and returns a new instance of {@link FilterComboBoxRenderer}.
|
protected JPanel | createList(JFileChooser fc)
Creates a panel containing a list of files.
|
ListSelectionListener | createListSelectionListener(JFileChooser fc)
Creates a listener that monitors selections in the directory/file list
and keeps the {@link JFileChooser} component up to date.
|
PropertyChangeListener | createPropertyChangeListener(JFileChooser fc)
Creates a property change listener that monitors the {@link JFileChooser}
for property change events and updates the component display accordingly.
|
static ComponentUI | createUI(JComponent c)
A factory method that returns a UI delegate for the specified
component.
|
protected ActionMap | getActionMap() |
protected JButton | getApproveButton(JFileChooser fc)
Returns the approve button.
|
protected JPanel | getBottomPanel()
Creates and returns a new panel that will be used for the controls at
the bottom of the file chooser.
|
protected JPanel | getButtonPanel()
Returns the panel that contains the 'Open' (or 'Save') and 'Cancel'
buttons.
|
String | getFileName()
Returns the file name in the text field.
|
Dimension | getMaximumSize(JComponent c)
Returns the maximum size for the file chooser component.
|
Dimension | getMinimumSize(JComponent c)
Returns the minimum size for the file chooser component.
|
Dimension | getPreferredSize(JComponent c)
Returns the preferred size for the file chooser component.
|
void | installComponents(JFileChooser fc)
Installs the sub-components of the file chooser.
|
protected void | installListeners(JFileChooser fc)
Installs the listeners required.
|
protected void | installStrings(JFileChooser fc)
Fetches localised strings for use by the labels and buttons on the
file chooser.
|
void | installUI(JComponent c) |
protected void | removeControlButtons()
Removes all the buttons from the control panel. |
void | rescanCurrentDirectory(JFileChooser fc)
Updates the current directory.
|
void | setFileName(String filename)
Sets the file name in the text field.
|
void | uninstallComponents(JFileChooser fc)
Uninstalls the components added by
{@link #installComponents(JFileChooser)}.
|
protected void | uninstallListeners(JFileChooser fc) |
void | uninstallUI(JComponent c) |
void | valueChanged(ListSelectionEvent e)
DOCUMENT ME! |
Parameters: filechooser the file chooser component.
Returns: The action map.
Parameters: fc the file chooser.
Returns: The details view.
Returns: A new instance of {@link DirectoryComboBoxModel}.
Parameters: fc the file chooser.
Returns: The renderer.
Returns: A new instance of {@link FilterComboBoxModel}.
Returns: A new instance of {@link FilterComboBoxRenderer}.
Parameters: fc the file chooser.
Returns: A panel.
Parameters: fc the file chooser.
Returns: The listener.
See Also: installListeners
Parameters: fc the file chooser.
Returns: The property change listener.
See Also: installListeners
Parameters: c the component (which should be a {@link JFileChooser}).
Returns: The approve button.
Returns: A new panel.
Returns: The panel.
Returns: The file name.
Returns: The maximum size.
Returns: The minimum size.
Returns: The preferred size.
Parameters: fc the file chooser component.
Parameters: fc the file chooser.
Parameters: fc the file chooser.
Parameters: fc the file chooser to update.
Parameters: filename the file name.
Parameters: fc the file chooser.
Parameters: e - DOCUMENT ME!