com.jidesoft.plaf.basic
Class BasicFolderChooserUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.FileChooserUI
javax.swing.plaf.basic.BasicFileChooserUI
com.jidesoft.plaf.basic.BasicFolderChooserUI
- All Implemented Interfaces:
- FolderChooserUI
public class BasicFolderChooserUI
- extends BasicFileChooserUI
- implements FolderChooserUI
Fields inherited from class javax.swing.plaf.basic.BasicFileChooserUI |
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 |
Methods inherited from class javax.swing.plaf.basic.BasicFileChooserUI |
clearIconCache, createDoubleClickListener, createListSelectionListener, createModel, getAcceptAllFileFilter, getAccessoryPanel, getApproveButton, getApproveButtonMnemonic, getApproveButtonText, getApproveButtonToolTipText, getCancelSelectionAction, getChangeToParentDirectoryAction, getDialogTitle, getDirectory, getDirectoryName, getFileChooser, getFileName, getFileView, getGoHomeAction, getModel, getNewFolderAction, getUpdateAction, installDefaults, installIcons, installStrings, installUI, isDirectorySelected, setDirectory, setDirectoryName, setDirectorySelected, setFileName, uninstallDefaults, uninstallIcons, uninstallStrings, uninstallUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_toolbar
protected FolderToolBar _toolbar
_fileSystemTree
protected JTree _fileSystemTree
_treeScrollPane
protected JScrollPane _treeScrollPane
_approveButton
protected JButton _approveButton
_cancelButton
protected JButton _cancelButton
_navigationTextField
protected JTextField _navigationTextField
_buttonPanel
protected JPanel _buttonPanel
_navigationPanel
protected JPanel _navigationPanel
_selectionListener
public com.jidesoft.plaf.basic.BasicFolderChooserUI.FolderChooserSelectionListener _selectionListener
BasicFolderChooserUI
public BasicFolderChooserUI(FolderChooser chooser)
createUI
public static ComponentUI createUI(JComponent c)
installComponents
public void installComponents(JFileChooser chooser)
- Overrides:
installComponents
in class BasicFileChooserUI
getDefaultFocusComponent
public Component getDefaultFocusComponent()
- Return the default focus component inside the FolderChooser.
By default, it is the file system tree.
- Returns:
- the default focus component.
createButtonPanel
protected JPanel createButtonPanel()
createNavigationPanel
protected JPanel createNavigationPanel()
setNavigationFieldVisible
public void setNavigationFieldVisible(boolean navigationFieldVisible)
rescanCurrentDirectory
public void rescanCurrentDirectory(JFileChooser fc)
- Overrides:
rescanCurrentDirectory
in class BasicFileChooserUI
ensureFileIsVisible
public void ensureFileIsVisible(JFileChooser fc,
File f)
- Overrides:
ensureFileIsVisible
in class BasicFileChooserUI
createToolbar
protected JComponent createToolbar()
updateToolbarButtons
protected void updateToolbarButtons()
- Updates toolbar button status depending on current selection status
uninstallComponents
public void uninstallComponents(JFileChooser chooser)
- Overrides:
uninstallComponents
in class BasicFileChooserUI
installListeners
protected void installListeners(JFileChooser fc)
- Overrides:
installListeners
in class BasicFileChooserUI
uninstallListeners
protected void uninstallListeners(JFileChooser fc)
- Overrides:
uninstallListeners
in class BasicFileChooserUI
createPropertyChangeListener
public PropertyChangeListener createPropertyChangeListener(JFileChooser fc)
- Overrides:
createPropertyChangeListener
in class BasicFileChooserUI
isFileSystem
public static boolean isFileSystem(File f)
- Checks if
f
represents a real directory or file as opposed to a special folder such as
"Desktop"
. Used by UI classes to decide if a folder is selectable when doing directory choosing.
- Parameters:
f
- a File
object
- Returns:
true
if f
is a real file or directory.
getApproveSelectionAction
public Action getApproveSelectionAction()
- Overrides:
getApproveSelectionAction
in class BasicFileChooserUI