public class MetalFileChooserUI extends BasicFileChooserUI
| Modifier and Type | Class and Description |
|---|---|
protected class |
MetalFileChooserUI.DirectoryComboBoxAction
Acts when DirectoryComboBox has changed the selected item.
|
protected class |
MetalFileChooserUI.DirectoryComboBoxModel
Data model for a type-face selection combo-box.
|
protected class |
MetalFileChooserUI.FileRenderer |
protected class |
MetalFileChooserUI.FilterComboBoxModel
Data model for a type-face selection combo-box.
|
class |
MetalFileChooserUI.FilterComboBoxRenderer
Render different type sizes and styles.
|
protected class |
MetalFileChooserUI.SingleClickListener |
BasicFileChooserUI.AcceptAllFileFilter, BasicFileChooserUI.ApproveSelectionAction, BasicFileChooserUI.BasicFileView, BasicFileChooserUI.CancelSelectionAction, BasicFileChooserUI.ChangeToParentDirectoryAction, BasicFileChooserUI.DoubleClickListener, BasicFileChooserUI.GoHomeAction, BasicFileChooserUI.NewFolderAction, BasicFileChooserUI.SelectionListener, 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, viewMenuIcon| Constructor and Description |
|---|
MetalFileChooserUI(JFileChooser filechooser) |
clearIconCache, createDoubleClickListener, createModel, getAcceptAllFileFilter, getAccessoryPanel, getApproveButtonMnemonic, getApproveButtonText, getApproveButtonToolTipText, getApproveSelectionAction, getCancelSelectionAction, getChangeToParentDirectoryAction, getDefaultButton, getDialogTitle, getDirectory, getFileChooser, getFileView, getGoHomeAction, getModel, getNewFolderAction, getUpdateAction, installDefaults, installIcons, isDirectorySelected, setDirectory, uninstallDefaults, uninstallIcons, uninstallListeners, uninstallStringscontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, paint, updatepublic MetalFileChooserUI(JFileChooser filechooser)
public static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
ComponentUIComponentUI instance is being installed
as the UI delegate on the specified component. This method should
completely configure the component for the look and feel,
including the following:
LayoutManager on the component if necessary.
PropertyChangeListener on the component in order
to detect and respond to component property changes appropriately.
installUI in class BasicFileChooserUIc - the component where this UI delegate is being installedComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void uninstallComponents(JFileChooser fc)
uninstallComponents in class BasicFileChooserUIpublic void installComponents(JFileChooser fc)
installComponents in class BasicFileChooserUIprotected JPanel getButtonPanel()
protected JPanel getBottomPanel()
protected void installStrings(JFileChooser fc)
installStrings in class BasicFileChooserUIprotected void installListeners(JFileChooser fc)
installListeners in class BasicFileChooserUIprotected ActionMap getActionMap()
protected ActionMap createActionMap()
protected JPanel createList(JFileChooser fc)
protected JPanel createDetailsView(JFileChooser fc)
public ListSelectionListener createListSelectionListener(JFileChooser fc)
createListSelectionListener in class BasicFileChooserUIfc - a JFileChooserListSelectionListenerpublic void uninstallUI(JComponent c)
ComponentUIinstallUI. This method is invoked when this
UIComponent instance is being removed as the UI delegate
for the specified component. This method should undo the
configuration performed in installUI, being careful to
leave the JComponent instance in a clean state (no
extraneous listeners, look-and-feel-specific property objects, etc.).
This should include the following:
uninstallUI in class BasicFileChooserUIc - the component from which this UI delegate is being removed;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple componentsComponentUI.installUI(javax.swing.JComponent),
JComponent.updateUI()public Dimension getPreferredSize(JComponent c)
JFileChooser.
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.getPreferredSize in class ComponentUIc - a JFileChooserDimension specifying the preferred
width and height of the file chooserJComponent.getPreferredSize(),
LayoutManager.preferredLayoutSize(java.awt.Container)public Dimension getMinimumSize(JComponent c)
JFileChooser.getMinimumSize in class ComponentUIc - a JFileChooserDimension specifying the minimum
width and height of the file chooserJComponent.getMinimumSize(),
LayoutManager.minimumLayoutSize(java.awt.Container),
ComponentUI.getPreferredSize(javax.swing.JComponent)public Dimension getMaximumSize(JComponent c)
JFileChooser.getMaximumSize in class ComponentUIc - a JFileChooserDimension specifying the maximum
width and height of the file chooserJComponent.getMaximumSize(),
LayoutManager2.maximumLayoutSize(java.awt.Container)public PropertyChangeListener createPropertyChangeListener(JFileChooser fc)
createPropertyChangeListener in class BasicFileChooserUIprotected void removeControlButtons()
protected void addControlButtons()
public void ensureFileIsVisible(JFileChooser fc, File f)
ensureFileIsVisible in class BasicFileChooserUIpublic void rescanCurrentDirectory(JFileChooser fc)
rescanCurrentDirectory in class BasicFileChooserUIpublic String getFileName()
getFileName in class BasicFileChooserUIpublic void setFileName(String filename)
setFileName in class BasicFileChooserUIprotected void setDirectorySelected(boolean directorySelected)
setDirectorySelected in class BasicFileChooserUIdirectorySelected - if a directory is currently selected.public String getDirectoryName()
getDirectoryName in class BasicFileChooserUIpublic void setDirectoryName(String dirname)
setDirectoryName in class BasicFileChooserUIprotected javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxRenderer createDirectoryComboBoxRenderer(JFileChooser fc)
protected MetalFileChooserUI.DirectoryComboBoxModel createDirectoryComboBoxModel(JFileChooser fc)
protected MetalFileChooserUI.FilterComboBoxRenderer createFilterComboBoxRenderer()
protected MetalFileChooserUI.FilterComboBoxModel createFilterComboBoxModel()
public void valueChanged(ListSelectionEvent e)
protected JButton getApproveButton(JFileChooser fc)
getApproveButton in class BasicFileChooserUI Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.