Package Summary  Overview Summary

class:BasicFileChooserUI [NONE]

Direct Known Subclasses:
MetalFileChooserUI

public class BasicFileChooserUI
extends FileChooserUI
Basic L&F implementation of a FileChooser.

field:directoryIcon [NONE]

  • directoryIcon

    protected Icon directoryIcon
    Directory icon
  • field:fileIcon [NONE]

    fileIcon

    protected Icon fileIcon
    File icon

    field:computerIcon [NONE]

    computerIcon

    protected Icon computerIcon
    Computer icon

    field:hardDriveIcon [NONE]

    hardDriveIcon

    protected Icon hardDriveIcon
    Hard drive icon

    field:floppyDriveIcon [NONE]

    floppyDriveIcon

    protected Icon floppyDriveIcon
    Floppy drive icon

    field:newFolderIcon [NONE]

    newFolderIcon

    protected Icon newFolderIcon
    New folder icon

    field:upFolderIcon [NONE]

    upFolderIcon

    protected Icon upFolderIcon
    Up folder icon

    field:homeFolderIcon [NONE]

    homeFolderIcon

    protected Icon homeFolderIcon
    Home folder icon

    field:listViewIcon [NONE]

    listViewIcon

    protected Icon listViewIcon
    List view icon

    field:detailsViewIcon [NONE]

    detailsViewIcon

    protected Icon detailsViewIcon
    Details view icon

    field:viewMenuIcon [NONE]

    viewMenuIcon

    protected Icon viewMenuIcon
    View menu icon

    field:saveButtonMnemonic [NONE]

    saveButtonMnemonic

    protected int saveButtonMnemonic
    Save button mnemonic

    field:openButtonMnemonic [NONE]

    openButtonMnemonic

    protected int openButtonMnemonic
    Open button mnemonic

    field:cancelButtonMnemonic [NONE]

    cancelButtonMnemonic

    protected int cancelButtonMnemonic
    Cancel button mnemonic

    field:updateButtonMnemonic [NONE]

    updateButtonMnemonic

    protected int updateButtonMnemonic
    Update button mnemonic

    field:helpButtonMnemonic [NONE]

    helpButtonMnemonic

    protected int helpButtonMnemonic
    Help button mnemonic

    field:directoryOpenButtonMnemonic [NONE]

    directoryOpenButtonMnemonic

    protected int directoryOpenButtonMnemonic
    The mnemonic keycode used for the approve button when a directory is selected and the current selection mode is FILES_ONLY.
    Since:
    1.4

    field:saveButtonText [NONE]

    saveButtonText

    protected String saveButtonText
    Save button text

    field:openButtonText [NONE]

    openButtonText

    protected String openButtonText
    Open button text

    field:cancelButtonText [NONE]

    cancelButtonText

    protected String cancelButtonText
    Cancel button text

    field:updateButtonText [NONE]

    updateButtonText

    protected String updateButtonText
    Update button text

    field:helpButtonText [NONE]

    helpButtonText

    protected String helpButtonText
    Help button text

    field:directoryOpenButtonText [NONE]

    directoryOpenButtonText

    protected String directoryOpenButtonText
    The label text displayed on the approve button when a directory is selected and the current selection mode is FILES_ONLY.
    Since:
    1.4

    field:saveButtonToolTipText [NONE]

    saveButtonToolTipText

    protected String saveButtonToolTipText
    Save button tool tip text

    field:openButtonToolTipText [NONE]

    openButtonToolTipText

    protected String openButtonToolTipText
    Open button tool tip text

    field:cancelButtonToolTipText [NONE]

    cancelButtonToolTipText

    protected String cancelButtonToolTipText
    Cancel button tool tip text

    field:updateButtonToolTipText [NONE]

    updateButtonToolTipText

    protected String updateButtonToolTipText
    Update button tool tip text

    field:helpButtonToolTipText [NONE]

    helpButtonToolTipText

    protected String helpButtonToolTipText
    Help button tool tip text

    field:directoryOpenButtonToolTipText [NONE]

    directoryOpenButtonToolTipText

    protected String directoryOpenButtonToolTipText
    The tooltip text displayed on the approve button when a directory is selected and the current selection mode is FILES_ONLY.
    Since:
    1.4

    constructor:BasicFileChooserUI(javax.swing.JFileChooser) [NONE]

    method:createUI(javax.swing.JComponent) [NONE]

  • createUI

    public static  ComponentUI createUI​(JComponent c)
    Creates a BasicFileChooserUI implementation for the specified component. By default the BasicLookAndFeel class uses createUI methods of all basic UIs classes to instantiate UIs.
    Parameters:
    c - the JFileChooser which needs a UI
    Returns:
    the BasicFileChooserUI object
    Since:
    1.7
    See Also:
    UIDefaults.getUI(JComponent)
  • method:installUI(javax.swing.JComponent) [NONE]

    installUI

    public void installUI​(JComponent c)
    Installs the UI.
    Overrides:
    installUI in class ComponentUI
    Parameters:
    c - the component
    See Also:
    ComponentUI.uninstallUI(javax.swing.JComponent), JComponent.setUI(javax.swing.plaf.ComponentUI), JComponent.updateUI()

    method:uninstallUI(javax.swing.JComponent) [NONE]

    uninstallUI

    public void uninstallUI​(JComponent c)
    Uninstalls the UI.
    Overrides:
    uninstallUI in class ComponentUI
    Parameters:
    c - the component
    See Also:
    ComponentUI.installUI(javax.swing.JComponent), JComponent.updateUI()

    method:installComponents(javax.swing.JFileChooser) [NONE]

    installComponents

    public void installComponents​(JFileChooser fc)
    Installs the components.
    Parameters:
    fc - the file chooser

    method:uninstallComponents(javax.swing.JFileChooser) [NONE]

    uninstallComponents

    public void uninstallComponents​(JFileChooser fc)
    Uninstalls the components.
    Parameters:
    fc - the file chooser

    method:installListeners(javax.swing.JFileChooser) [NONE]

    installListeners

    protected void installListeners​(JFileChooser fc)
    Installs the listeners.
    Parameters:
    fc - the file chooser

    method:uninstallListeners(javax.swing.JFileChooser) [NONE]

    uninstallListeners

    protected void uninstallListeners​(JFileChooser fc)
    Uninstalls the listeners.
    Parameters:
    fc - the file chooser

    method:installDefaults(javax.swing.JFileChooser) [NONE]

    installDefaults

    protected void installDefaults​(JFileChooser fc)
    Installs the defaults.
    Parameters:
    fc - the file chooser

    method:installIcons(javax.swing.JFileChooser) [NONE]

    installIcons

    protected void installIcons​(JFileChooser fc)
    Installs the icons.
    Parameters:
    fc - the file chooser

    method:installStrings(javax.swing.JFileChooser) [NONE]

    installStrings

    protected void installStrings​(JFileChooser fc)
    Installs the strings.
    Parameters:
    fc - the file chooser

    method:uninstallDefaults(javax.swing.JFileChooser) [NONE]

    uninstallDefaults

    protected void uninstallDefaults​(JFileChooser fc)
    Uninstalls the defaults.
    Parameters:
    fc - the file chooser

    method:uninstallIcons(javax.swing.JFileChooser) [NONE]

    uninstallIcons

    protected void uninstallIcons​(JFileChooser fc)
    Uninstalls the icons.
    Parameters:
    fc - the file chooser

    method:uninstallStrings(javax.swing.JFileChooser) [NONE]

    uninstallStrings

    protected void uninstallStrings​(JFileChooser fc)
    Uninstalls the strings.
    Parameters:
    fc - the file chooser

    method:createModel() [NONE]

    createModel

    protected void createModel()
    Creates the model.

    method:getModel() [NONE]

    getModel

    public BasicDirectoryModel getModel()
    Returns the model.
    Returns:
    the model

    method:createPropertyChangeListener(javax.swing.JFileChooser) [NONE]

    createPropertyChangeListener

    public PropertyChangeListener createPropertyChangeListener​(JFileChooser fc)
    Creates the property change listener.
    Parameters:
    fc - the file chooser
    Returns:
    the property change listener

    method:getFileName() [NONE]

    getFileName

    public String getFileName()
    Returns the file name.
    Returns:
    the file name

    method:getDirectoryName() [NONE]

    getDirectoryName

    public String getDirectoryName()
    Returns the directory name.
    Returns:
    the directory name

    method:setFileName(java.lang.String) [NONE]

    setFileName

    public void setFileName​(String filename)
    Sets the file name.
    Parameters:
    filename - the file name

    method:setDirectoryName(java.lang.String) [NONE]

    setDirectoryName

    public void setDirectoryName​(String dirname)
    Sets the directory name.
    Parameters:
    dirname - the file name

    method:rescanCurrentDirectory(javax.swing.JFileChooser) [NONE]

    rescanCurrentDirectory

    public void rescanCurrentDirectory​(JFileChooser fc)
    Rescan the current directory.
    Specified by:
    rescanCurrentDirectory in class FileChooserUI
    Parameters:
    fc - the file chooser

    method:ensureFileIsVisible(javax.swing.JFileChooser,java.io.File) [NONE]

    ensureFileIsVisible

    public void ensureFileIsVisible​(JFileChooser fc, File f)
    Ensure the file in question is visible.
    Specified by:
    ensureFileIsVisible in class FileChooserUI
    Parameters:
    fc - the file chooser
    f - the file

    method:getFileChooser() [NONE]

    getFileChooser

    public JFileChooser getFileChooser()
    Returns the file chooser.
    Returns:
    the file chooser

    method:getAccessoryPanel() [NONE]

    getAccessoryPanel

    public JPanel getAccessoryPanel()
    Returns the accessory panel.
    Returns:
    the accessory panel

    method:getApproveButton(javax.swing.JFileChooser) [NONE]

    getApproveButton

    protected JButton getApproveButton​(JFileChooser fc)
    Returns the approve button.
    Parameters:
    fc - the file chooser
    Returns:
    the approve button

    method:getDefaultButton(javax.swing.JFileChooser) [NONE]

    getDefaultButton

    public JButton getDefaultButton​(JFileChooser fc)
    Returns default button for current LookAndFeel. JFileChooser will use this button as default button for dialog windows.
    Overrides:
    getDefaultButton in class FileChooserUI
    Parameters:
    fc - the JFileChooser whose default button is requested
    Returns:
    the default JButton for current look and feel

    method:getApproveButtonToolTipText(javax.swing.JFileChooser) [NONE]

    getApproveButtonToolTipText

    public String getApproveButtonToolTipText​(JFileChooser fc)
    Returns the approve button tool tip.
    Parameters:
    fc - the file chooser
    Returns:
    the approve button tool tip

    method:clearIconCache() [NONE]

    clearIconCache

    public void clearIconCache()
    Clears the icon cache.

    method:createDoubleClickListener(javax.swing.JFileChooser,javax.swing.JList) [NONE]

    createDoubleClickListener

    protected MouseListener createDoubleClickListener​(JFileChooser fc, JList<?> list)
    Creates a double click listener.
    Parameters:
    fc - the file chooser
    list - the list
    Returns:
    a double click listener

    method:createListSelectionListener(javax.swing.JFileChooser) [NONE]

    createListSelectionListener

    public ListSelectionListener createListSelectionListener​(JFileChooser fc)
    Creates a list selection listener.
    Parameters:
    fc - the file chooser
    Returns:
    a list selection listener

    method:isDirectorySelected() [NONE]

    isDirectorySelected

    protected boolean isDirectorySelected()
    Property to remember whether a directory is currently selected in the UI.
    Returns:
    true iff a directory is currently selected.
    Since:
    1.4

    method:setDirectorySelected(boolean) [NONE]

    setDirectorySelected

    protected void setDirectorySelected​(boolean b)
    Property to remember whether a directory is currently selected in the UI. This is normally called by the UI on a selection event.
    Parameters:
    b - iff a directory is currently selected.
    Since:
    1.4

    method:getDirectory() [NONE]

    getDirectory

    protected File getDirectory()
    Property to remember the directory that is currently selected in the UI.
    Returns:
    the value of the directory property
    Since:
    1.4
    See Also:
    setDirectory(java.io.File)

    method:setDirectory(java.io.File) [NONE]

    setDirectory

    protected void setDirectory​(File f)
    Property to remember the directory that is currently selected in the UI. This is normally called by the UI on a selection event.
    Parameters:
    f - the File object representing the directory that is currently selected
    Since:
    1.4

    method:getAcceptAllFileFilter(javax.swing.JFileChooser) [NONE]

    getAcceptAllFileFilter

    public FileFilter getAcceptAllFileFilter​(JFileChooser fc)
    Returns the default accept all file filter
    Specified by:
    getAcceptAllFileFilter in class FileChooserUI
    Parameters:
    fc - the file chooser
    Returns:
    an accept-all file filter

    method:getFileView(javax.swing.JFileChooser) [NONE]

    getFileView

    public FileView getFileView​(JFileChooser fc)
    Description copied from class: FileChooserUI
    Returns a file view.
    Specified by:
    getFileView in class FileChooserUI
    Parameters:
    fc - the file chooser
    Returns:
    a file view

    method:getDialogTitle(javax.swing.JFileChooser) [NONE]

    getDialogTitle

    public String getDialogTitle​(JFileChooser fc)
    Returns the title of this dialog
    Specified by:
    getDialogTitle in class FileChooserUI
    Parameters:
    fc - the file chooser
    Returns:
    the title of this dialog

    method:getApproveButtonMnemonic(javax.swing.JFileChooser) [NONE]

    getApproveButtonMnemonic

    public int getApproveButtonMnemonic​(JFileChooser fc)
    Returns the approve button mnemonic.
    Parameters:
    fc - the file chooser
    Returns:
    the approve button mnemonic

    method:getApproveButtonText(javax.swing.JFileChooser) [NONE]

    getApproveButtonText

    public String getApproveButtonText​(JFileChooser fc)
    Returns approve button text.
    Specified by:
    getApproveButtonText in class FileChooserUI
    Parameters:
    fc - the file chooser
    Returns:
    approve button text.

    method:getNewFolderAction() [NONE]

    getNewFolderAction

    public Action getNewFolderAction()
    Returns a new folder action.
    Returns:
    a new folder action

    method:getGoHomeAction() [NONE]

    getGoHomeAction

    public Action getGoHomeAction()
    Returns a go home action.
    Returns:
    a go home action

    method:getChangeToParentDirectoryAction() [NONE]

    getChangeToParentDirectoryAction

    public Action getChangeToParentDirectoryAction()
    Returns a change to parent directory action.
    Returns:
    a change to parent directory action

    method:getApproveSelectionAction() [NONE]

    getApproveSelectionAction

    public Action getApproveSelectionAction()
    Returns an approve selection action.
    Returns:
    an approve selection action

    method:getCancelSelectionAction() [NONE]

    getCancelSelectionAction

    public Action getCancelSelectionAction()
    Returns a cancel selection action.
    Returns:
    a cancel selection action

    method:getUpdateAction() [NONE]

    getUpdateAction

    public Action getUpdateAction()
    Returns an update action.
    Returns:
    an update action

    © 2020 Oracle Corporation and/or its affiliates