JIDE 3.5.15

com.jidesoft.plaf.basic
Class BasicFolderChooserUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.FileChooserUI
          extended by javax.swing.plaf.basic.BasicFileChooserUI
              extended by com.jidesoft.plaf.basic.BasicFolderChooserUI
All Implemented Interfaces:
FolderChooserUI

public class BasicFolderChooserUI
extends BasicFileChooserUI
implements FolderChooserUI


Nested Class Summary
 class BasicFolderChooserUI.NavigationTextFieldListener
           
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicFileChooserUI
BasicFileChooserUI.AcceptAllFileFilter, BasicFileChooserUI.BasicFileView, BasicFileChooserUI.CancelSelectionAction, BasicFileChooserUI.ChangeToParentDirectoryAction, BasicFileChooserUI.DoubleClickListener, BasicFileChooserUI.GoHomeAction, BasicFileChooserUI.NewFolderAction, BasicFileChooserUI.SelectionListener, BasicFileChooserUI.UpdateAction
 
Field Summary
protected  JButton _approveButton
           
protected  JPanel _buttonPanel
           
protected  JButton _cancelButton
           
protected  JTree _fileSystemTree
           
protected  JPanel _navigationPanel
           
protected  JTextField _navigationTextField
           
 com.jidesoft.plaf.basic.BasicFolderChooserUI.FolderChooserSelectionListener _selectionListener
           
protected  FolderToolBar _toolbar
           
protected  JScrollPane _treeScrollPane
           
 
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
 
Constructor Summary
BasicFolderChooserUI(FolderChooser chooser)
           
 
Method Summary
protected  JPanel createButtonPanel()
           
protected  JPanel createNavigationPanel()
           
 PropertyChangeListener createPropertyChangeListener(JFileChooser fc)
           
protected  JComponent createToolbar()
           
static ComponentUI createUI(JComponent c)
           
 void ensureFileIsVisible(JFileChooser fc, File f)
           
 Action getApproveSelectionAction()
           
 Component getDefaultFocusComponent()
          Return the default focus component inside the FolderChooser.
 void installComponents(JFileChooser chooser)
           
protected  void installListeners(JFileChooser fc)
           
static boolean isFileSystem(File f)
          Checks if f represents a real directory or file as opposed to a special folder such as "Desktop".
 void rescanCurrentDirectory(JFileChooser fc)
           
 void setNavigationFieldVisible(boolean navigationFieldVisible)
           
 void uninstallComponents(JFileChooser chooser)
           
protected  void uninstallListeners(JFileChooser fc)
           
protected  void updateToolbarButtons()
          Updates toolbar button status depending on current selection status
 
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 javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_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
Constructor Detail

BasicFolderChooserUI

public BasicFolderChooserUI(FolderChooser chooser)
Method Detail

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

JIDE 3.5.15