public class MetalFileChooserUI extends BasicFileChooserUI
| Modifier and Type | Class and Description |
|---|---|
protected class |
MetalFileChooserUI
Acts when DirectoryComboBox has changed the selected item.
|
protected class |
MetalFileChooserUI
Data model for a type-face selection combo-box.
|
protected class |
MetalFileChooserUI
|
protected class |
MetalFileChooserUI
Data model for a type-face selection combo-box.
|
class |
MetalFileChooserUI
Render different type sizes and styles.
|
protected class |
MetalFileChooserUI
|
BasicFileChooserUI.AcceptAllFileFilter , BasicFileChooserUI.ApproveSelectionAction , BasicFileChooserUI.BasicFileView , BasicFileChooserUI.CancelSelectionAction , BasicFileChooserUI.ChangeToParentDirectoryAction , BasicFileChooserUI.DoubleClickListener , BasicFileChooserUI.GoHomeAction , BasicFileChooserUI.NewFolderAction , BasicFileChooserUI.SelectionListener , BasicFileChooserUI.UpdateAction cancelButtonMnemonic, 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
|
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(JFileChooserfilechooser)
public static ComponentUIcreateUI(JComponent c)
public void installUI(JComponentc)
ComponentUI
ComponentUI 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
BasicFileChooserUI
c - the component where this UI delegate is being installed
ComponentUI.uninstallUI(javax.swing.JComponent) ,
JComponent.setUI(javax.swing.plaf.ComponentUI) ,
JComponent.updateUI()
public void uninstallComponents(JFileChooserfc)
public void installComponents(JFileChooserfc)
protected JPanelgetButtonPanel()
protected JPanelgetBottomPanel()
protected void installStrings(JFileChooserfc)
protected void installListeners(JFileChooserfc)
protected ActionMapgetActionMap()
protected ActionMapcreateActionMap()
protected JPanelcreateList(JFileChooser fc)
protected JPanelcreateDetailsView(JFileChooser fc)
public ListSelectionListenercreateListSelectionListener(JFileChooser fc)
createListSelectionListener in class
BasicFileChooserUI
fc - a
JFileChooser
ListSelectionListener
public void uninstallUI(JComponentc)
ComponentUI
installUI. 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
BasicFileChooserUI
c - 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 components
ComponentUI.installUI(javax.swing.JComponent) ,
JComponent.updateUI()
public DimensiongetPreferredSize(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
ComponentUI
c - a
JFileChooser
Dimension specifying the preferred width and height of the file chooser
JComponent.getPreferredSize() ,
LayoutManager.preferredLayoutSize(java.awt.Container)
public DimensiongetMinimumSize(JComponent c)
JFileChooser.
getMinimumSize in class
ComponentUI
c - a
JFileChooser
Dimension specifying the minimum width and height of the file chooser
JComponent.getMinimumSize() ,
LayoutManager.minimumLayoutSize(java.awt.Container) ,
ComponentUI.getPreferredSize(javax.swing.JComponent)
public DimensiongetMaximumSize(JComponent c)
JFileChooser.
getMaximumSize in class
ComponentUI
c - a
JFileChooser
Dimension specifying the maximum width and height of the file chooser
JComponent.getMaximumSize() ,
LayoutManager2.maximumLayoutSize(java.awt.Container)
public PropertyChangeListenercreatePropertyChangeListener(JFileChooser fc)
protected void removeControlButtons()
protected void addControlButtons()
public void ensureFileIsVisible(JFileChooserfc, File f)
public void rescanCurrentDirectory(JFileChooserfc)
public StringgetFileName()
public void setFileName(Stringfilename)
protected void setDirectorySelected(boolean directorySelected)
setDirectorySelected in class
BasicFileChooserUI
directorySelected - if a directory is currently selected.
public StringgetDirectoryName()
public void setDirectoryName(Stringdirname)
protected 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(ListSelectionEvente)
protected JButtongetApproveButton(JFileChooser fc)