java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.FileChooserUI
javax.swing.plaf.basic.BasicFileChooserUI
javax.swing.plaf.metal.MetalFileChooserUI
Metal L&F implementation of a FileChooser.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected classActs when DirectoryComboBox has changed the selected item.protected classData model for a type-face selection combo-box.protected classDeprecated.As of JDK version 9.protected classData model for a type-face selection combo-box.classRender different type sizes and styles.protected classDeprecated.As of JDK version 9.Nested classes/interfaces declared in class javax.swing.plaf.basic.BasicFileChooserUIBasicFileChooserUI.AcceptAllFileFilter, BasicFileChooserUI.ApproveSelectionAction, BasicFileChooserUI.BasicFileView, BasicFileChooserUI.CancelSelectionAction, BasicFileChooserUI.ChangeToParentDirectoryAction, BasicFileChooserUI.DoubleClickListener, BasicFileChooserUI.GoHomeAction, BasicFileChooserUI.NewFolderAction, BasicFileChooserUI.SelectionListener, BasicFileChooserUI.UpdateAction
- 
Field SummaryFields declared in class javax.swing.plaf.basic.BasicFileChooserUIcancelButtonMnemonic, 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, viewMenuIcon
- 
Constructor SummaryConstructorsConstructorDescriptionMetalFileChooserUI(JFileChooser filechooser) Constructs a new instance ofMetalFileChooserUI.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidAdds control buttons to bottom panel.protected ActionMapConstructs an instance ofActionMap.protected JPanelConstructs a details view.Constructs a new instance ofDataModelforDirectoryComboBox.protected MetalFileChooserUI.FilterComboBoxModelConstructs aDataModelfor typesComboBox.Constructs aRendererfor typesComboBox.protected JPanelConstructs a details view.Creates a selection listener for the list of files and directories.static ComponentUIConstructs a new instance ofMetalFileChooserUI.protected ActionMapReturns an instance ofActionMap.protected JPanelReturns the bottom panel.protected JPanelReturns the button panel.Returns the directory name.Returns the maximum size of theJFileChooser.Returns the minimum size of theJFileChooser.Returns the preferred size of the specifiedJFileChooser.protected voidRemoves control buttons from bottom panel.voidsetDirectoryName(String dirname) Sets the directory name.protected voidsetDirectorySelected(boolean directorySelected) Property to remember whether a directory is currently selected in the UI.voidInvokes whenListSelectionEventoccurs.Methods declared in class javax.swing.plaf.basic.BasicFileChooserUIclearIconCache, createDoubleClickListener, createModel, createPropertyChangeListener, ensureFileIsVisible, getAcceptAllFileFilter, getAccessoryPanel, getApproveButton, getApproveButtonMnemonic, getApproveButtonText, getApproveButtonToolTipText, getApproveSelectionAction, getCancelSelectionAction, getChangeToParentDirectoryAction, getDialogTitle, getDirectory, getFileChooser, getFileName, getFileView, getGoHomeAction, getModel, getNewFolderAction, getUpdateAction, installComponents, installDefaults, installIcons, installListeners, installStrings, installUI, isDirectorySelected, rescanCurrentDirectory, setDirectory, setFileName, uninstallComponents, uninstallDefaults, uninstallIcons, uninstallListeners, uninstallStrings, uninstallUIMethods declared in class javax.swing.plaf.FileChooserUIgetDefaultButtonMethods declared in class javax.swing.plaf.ComponentUIcontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, update
- 
Constructor Details- 
MetalFileChooserUIConstructs a new instance ofMetalFileChooserUI.- Parameters:
- filechooser- a- JFileChooser
 
 
- 
- 
Method Details- 
createUIConstructs a new instance ofMetalFileChooserUI.- Parameters:
- c- a component
- Returns:
- a new instance of MetalFileChooserUI
 
- 
getButtonPanelReturns the button panel.- Returns:
- the button panel
 
- 
getBottomPanelReturns the bottom panel.- Returns:
- the bottom panel
 
- 
getActionMapReturns an instance ofActionMap.- Returns:
- an instance of ActionMap
 
- 
createActionMapConstructs an instance ofActionMap.- Returns:
- an instance of ActionMap
 
- 
createListConstructs a details view.- Parameters:
- fc- a- JFileChooser
- Returns:
- the list
 
- 
createDetailsViewConstructs a details view.- Parameters:
- fc- a- JFileChooser
- Returns:
- the details view
 
- 
createListSelectionListenerCreates a selection listener for the list of files and directories.- Overrides:
- createListSelectionListenerin class- BasicFileChooserUI
- Parameters:
- fc- a- JFileChooser
- Returns:
- a ListSelectionListener
 
- 
getPreferredSizeReturns the preferred size of the specifiedJFileChooser. The preferred size is at least as large, in both height and width, as the preferred size recommended by the file chooser's layout manager.- Overrides:
- getPreferredSizein class- ComponentUI
- Parameters:
- c- a- JFileChooser
- Returns:
- a Dimensionspecifying the preferred width and height of the file chooser
- See Also:
 
- 
getMinimumSizeReturns the minimum size of theJFileChooser.- Overrides:
- getMinimumSizein class- ComponentUI
- Parameters:
- c- a- JFileChooser
- Returns:
- a Dimensionspecifying the minimum width and height of the file chooser
- See Also:
 
- 
getMaximumSizeReturns the maximum size of theJFileChooser.- Overrides:
- getMaximumSizein class- ComponentUI
- Parameters:
- c- a- JFileChooser
- Returns:
- a Dimensionspecifying the maximum width and height of the file chooser
- See Also:
 
- 
removeControlButtonsprotected void removeControlButtons()Removes control buttons from bottom panel.
- 
addControlButtonsprotected void addControlButtons()Adds control buttons to bottom panel.
- 
setDirectorySelectedprotected void setDirectorySelected(boolean directorySelected) Property to remember whether a directory is currently selected in the UI. This is normally called by the UI on a selection event.- Overrides:
- setDirectorySelectedin class- BasicFileChooserUI
- Parameters:
- directorySelected- if a directory is currently selected.
- Since:
- 1.4
 
- 
getDirectoryNameReturns the directory name.- Overrides:
- getDirectoryNamein class- BasicFileChooserUI
- Returns:
- the directory name
 
- 
setDirectoryNameSets the directory name.- Overrides:
- setDirectoryNamein class- BasicFileChooserUI
- Parameters:
- dirname- the directory name
 
- 
createDirectoryComboBoxModelConstructs a new instance ofDataModelforDirectoryComboBox.- Parameters:
- fc- a- JFileChooser
- Returns:
- a new instance of DataModelforDirectoryComboBox
 
- 
createFilterComboBoxRendererConstructs aRendererfor typesComboBox.- Returns:
- a Rendererfor typesComboBox
 
- 
createFilterComboBoxModelConstructs aDataModelfor typesComboBox.- Returns:
- a DataModelfor typesComboBox
 
- 
valueChangedInvokes whenListSelectionEventoccurs.- Parameters:
- e- an instance of- ListSelectionEvent
 
 
-