public class MetalFileChooserUI extends javax.swing.plaf.basic.BasicFileChooserUI
JFileChooser component. This class is only
partially implemented and is not usable yet.| Modifier and Type | Class and Description |
|---|---|
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
JFileChooser. |
javax.swing.plaf.basic.BasicFileChooserUI.AcceptAllFileFilter, javax.swing.plaf.basic.BasicFileChooserUI.ApproveSelectionAction, javax.swing.plaf.basic.BasicFileChooserUI.BasicFileView, javax.swing.plaf.basic.BasicFileChooserUI.CancelSelectionAction, javax.swing.plaf.basic.BasicFileChooserUI.ChangeToParentDirectoryAction, javax.swing.plaf.basic.BasicFileChooserUI.DoubleClickListener, javax.swing.plaf.basic.BasicFileChooserUI.GoHomeAction, javax.swing.plaf.basic.BasicFileChooserUI.NewFolderAction, javax.swing.plaf.basic.BasicFileChooserUI.SelectionListener, javax.swing.plaf.basic.BasicFileChooserUI.UpdateActioncancelButtonMnemonic, cancelButtonText, cancelButtonToolTipText, computerIcon, detailsViewIcon, directoryIcon, directoryOpenButtonMnemonic, directoryOpenButtonText, directoryOpenButtonToolTipText, fileIcon, floppyDriveIcon, hardDriveIcon, helpButtonMnemonic, helpButtonText, helpButtonToolTipText, homeFolderIcon, listViewIcon, newFolderIcon, openButtonMnemonic, openButtonText, openButtonToolTipText, saveButtonMnemonic, saveButtonText, saveButtonToolTipText, updateButtonMnemonic, updateButtonText, updateButtonToolTipText, upFolderIcon| Constructor and Description |
|---|
MetalFileChooserUI(javax.swing.JFileChooser filechooser)
Creates a new instance of this UI delegate.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addControlButtons()
Adds the control buttons ('up', 'home' etc.) to the panel.
|
protected javax.swing.ActionMap |
createActionMap()
Creates and returns an action map.
|
protected javax.swing.JPanel |
createDetailsView(javax.swing.JFileChooser fc)
Creates a panel containing a table within a scroll pane.
|
protected MetalFileChooserUI.DirectoryComboBoxModel |
createDirectoryComboBoxModel(javax.swing.JFileChooser fc)
Creates and returns a new instance of
MetalFileChooserUI.DirectoryComboBoxModel. |
protected javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxRenderer |
createDirectoryComboBoxRenderer(javax.swing.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
MetalFileChooserUI.FilterComboBoxModel. |
protected MetalFileChooserUI.FilterComboBoxRenderer |
createFilterComboBoxRenderer()
Creates and returns a new instance of
MetalFileChooserUI.FilterComboBoxRenderer. |
protected javax.swing.JPanel |
createList(javax.swing.JFileChooser fc)
Creates a panel containing a list of files.
|
javax.swing.event.ListSelectionListener |
createListSelectionListener(javax.swing.JFileChooser fc)
Creates a listener that monitors selections in the directory/file list
and keeps the
JFileChooser component up to date. |
java.beans.PropertyChangeListener |
createPropertyChangeListener(javax.swing.JFileChooser fc)
Creates a property change listener that monitors the
JFileChooser
for property change events and updates the component display accordingly. |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
A factory method that returns a UI delegate for the specified
component.
|
protected javax.swing.ActionMap |
getActionMap() |
protected javax.swing.JButton |
getApproveButton(javax.swing.JFileChooser fc)
Returns the approve button.
|
protected javax.swing.JPanel |
getBottomPanel()
Creates and returns a new panel that will be used for the controls at
the bottom of the file chooser.
|
protected javax.swing.JPanel |
getButtonPanel()
Returns the panel that contains the 'Open' (or 'Save') and 'Cancel'
buttons.
|
java.lang.String |
getFileName()
Returns the file name in the text field.
|
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c)
Returns the maximum size for the file chooser component.
|
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c)
Returns the minimum size for the file chooser component.
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
Returns the preferred size for the file chooser component.
|
void |
installComponents(javax.swing.JFileChooser fc)
Installs the sub-components of the file chooser.
|
protected void |
installListeners(javax.swing.JFileChooser fc)
Installs the listeners required.
|
protected void |
installStrings(javax.swing.JFileChooser fc)
Fetches localised strings for use by the labels and buttons on the
file chooser.
|
void |
installUI(javax.swing.JComponent c)
Installs the UI for the specified component.
|
protected void |
removeControlButtons()
Removes all the buttons from the control panel.
|
void |
rescanCurrentDirectory(javax.swing.JFileChooser fc)
Updates the current directory.
|
void |
setFileName(java.lang.String filename)
Sets the file name in the text field.
|
void |
uninstallComponents(javax.swing.JFileChooser fc)
Uninstalls the components added by
installComponents(JFileChooser). |
protected void |
uninstallListeners(javax.swing.JFileChooser fc)
Uninstalls the listeners previously installed by this UI delegate.
|
void |
uninstallUI(javax.swing.JComponent c)
Uninstalls this UI from the given component.
|
void |
valueChanged(javax.swing.event.ListSelectionEvent e)
DOCUMENT ME!!
|
clearIconCache, createDoubleClickListener, createModel, ensureFileIsVisible, getAcceptAllFileFilter, getAccessoryPanel, getApproveButtonMnemonic, getApproveButtonText, getApproveButtonToolTipText, getApproveSelectionAction, getCancelSelectionAction, getChangeToParentDirectoryAction, getDialogTitle, getDirectory, getDirectoryName, getFileChooser, getFileView, getGoHomeAction, getModel, getNewFolderAction, getUpdateAction, installDefaults, installIcons, isDirectorySelected, setDirectory, setDirectoryName, setDirectorySelected, uninstallDefaults, uninstallIcons, uninstallStringspublic MetalFileChooserUI(javax.swing.JFileChooser filechooser)
filechooser - the file chooser component.public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - the component (which should be a JFileChooser).public void installUI(javax.swing.JComponent c)
javax.swing.plaf.basic.BasicFileChooserUIinstallUI in class javax.swing.plaf.basic.BasicFileChooserUIc - the component (should be a JFileChooser).ComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void uninstallUI(javax.swing.JComponent c)
javax.swing.plaf.basic.BasicFileChooserUIuninstallUI in class javax.swing.plaf.basic.BasicFileChooserUIc - the component (should be a JFileChooser).ComponentUI.installUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void installComponents(javax.swing.JFileChooser fc)
installComponents in class javax.swing.plaf.basic.BasicFileChooserUIfc - the file chooser component.public void uninstallComponents(javax.swing.JFileChooser fc)
installComponents(JFileChooser).uninstallComponents in class javax.swing.plaf.basic.BasicFileChooserUIfc - the file chooser.protected javax.swing.JPanel getButtonPanel()
protected javax.swing.JPanel getBottomPanel()
protected void installStrings(javax.swing.JFileChooser fc)
installStrings in class javax.swing.plaf.basic.BasicFileChooserUIfc - the file chooser.protected void installListeners(javax.swing.JFileChooser fc)
installListeners in class javax.swing.plaf.basic.BasicFileChooserUIfc - the file chooser.protected void uninstallListeners(javax.swing.JFileChooser fc)
javax.swing.plaf.basic.BasicFileChooserUIuninstallListeners in class javax.swing.plaf.basic.BasicFileChooserUIfc - the file chooser.protected javax.swing.ActionMap getActionMap()
protected javax.swing.ActionMap createActionMap()
protected javax.swing.JPanel createList(javax.swing.JFileChooser fc)
fc - the file chooser.protected javax.swing.JPanel createDetailsView(javax.swing.JFileChooser fc)
fc - the file chooser.public javax.swing.event.ListSelectionListener createListSelectionListener(javax.swing.JFileChooser fc)
JFileChooser component up to date.createListSelectionListener in class javax.swing.plaf.basic.BasicFileChooserUIfc - the file chooser.installListeners(JFileChooser)public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class javax.swing.plaf.ComponentUIc - the component for which this delegate performs services.public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize in class javax.swing.plaf.ComponentUIc - the component for which this delegate performs services.public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
getMaximumSize in class javax.swing.plaf.ComponentUIc - the component for which this delegate performs services.public java.beans.PropertyChangeListener createPropertyChangeListener(javax.swing.JFileChooser fc)
JFileChooser
for property change events and updates the component display accordingly.createPropertyChangeListener in class javax.swing.plaf.basic.BasicFileChooserUIfc - the file chooser.installListeners(JFileChooser)protected MetalFileChooserUI.DirectoryComboBoxModel createDirectoryComboBoxModel(javax.swing.JFileChooser fc)
MetalFileChooserUI.DirectoryComboBoxModel.MetalFileChooserUI.DirectoryComboBoxModel.protected javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxRenderer createDirectoryComboBoxRenderer(javax.swing.JFileChooser fc)
fc - the file chooser.protected MetalFileChooserUI.FilterComboBoxModel createFilterComboBoxModel()
MetalFileChooserUI.FilterComboBoxModel.MetalFileChooserUI.FilterComboBoxModel.protected MetalFileChooserUI.FilterComboBoxRenderer createFilterComboBoxRenderer()
MetalFileChooserUI.FilterComboBoxRenderer.MetalFileChooserUI.FilterComboBoxRenderer.protected void addControlButtons()
protected void removeControlButtons()
public void rescanCurrentDirectory(javax.swing.JFileChooser fc)
rescanCurrentDirectory in class javax.swing.plaf.basic.BasicFileChooserUIfc - the file chooser to update.public java.lang.String getFileName()
getFileName in class javax.swing.plaf.basic.BasicFileChooserUIpublic void setFileName(java.lang.String filename)
setFileName in class javax.swing.plaf.basic.BasicFileChooserUIfilename - the file name.BasicFileChooserUI.getFileName()public void valueChanged(javax.swing.event.ListSelectionEvent e)
e - - DOCUMENT ME!protected javax.swing.JButton getApproveButton(javax.swing.JFileChooser fc)
getApproveButton in class javax.swing.plaf.basic.BasicFileChooserUIfc - the file chooser.