FolderChooserUI
public class BasicFolderChooserUI extends BasicFileChooserUI implements FolderChooserUI
Modifier and Type | Class | Description |
---|---|---|
class |
BasicFolderChooserUI.NavigationTextFieldListener |
BasicFileChooserUI.AcceptAllFileFilter, BasicFileChooserUI.BasicFileView, BasicFileChooserUI.CancelSelectionAction, BasicFileChooserUI.ChangeToParentDirectoryAction, BasicFileChooserUI.DoubleClickListener, BasicFileChooserUI.GoHomeAction, BasicFileChooserUI.NewFolderAction, BasicFileChooserUI.SelectionListener, BasicFileChooserUI.UpdateAction
Modifier and Type | Field | Description |
---|---|---|
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 |
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 | Description |
---|---|
BasicFolderChooserUI(FolderChooser chooser) |
Modifier and Type | Method | Description |
---|---|---|
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
|
clearIconCache, createDoubleClickListener, createListSelectionListener, createModel, getAcceptAllFileFilter, getAccessoryPanel, getApproveButton, getApproveButtonMnemonic, getApproveButtonText, getApproveButtonToolTipText, getCancelSelectionAction, getChangeToParentDirectoryAction, getDefaultButton, getDialogTitle, getDirectory, getDirectoryName, getFileChooser, getFileName, getFileView, getGoHomeAction, getModel, getNewFolderAction, getUpdateAction, installDefaults, installIcons, installStrings, installUI, isDirectorySelected, setDirectory, setDirectoryName, setDirectorySelected, setFileName, uninstallDefaults, uninstallIcons, uninstallStrings, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
protected FolderToolBar _toolbar
protected JTree _fileSystemTree
protected JScrollPane _treeScrollPane
protected JButton _approveButton
protected JButton _cancelButton
protected JTextField _navigationTextField
protected JPanel _buttonPanel
protected JPanel _navigationPanel
public com.jidesoft.plaf.basic.BasicFolderChooserUI.FolderChooserSelectionListener _selectionListener
public BasicFolderChooserUI(FolderChooser chooser)
public static ComponentUI createUI(JComponent c)
public void installComponents(JFileChooser chooser)
installComponents
in class BasicFileChooserUI
public Component getDefaultFocusComponent()
protected JPanel createButtonPanel()
protected JPanel createNavigationPanel()
public void setNavigationFieldVisible(boolean navigationFieldVisible)
public void rescanCurrentDirectory(JFileChooser fc)
rescanCurrentDirectory
in class BasicFileChooserUI
public void ensureFileIsVisible(JFileChooser fc, File f)
ensureFileIsVisible
in class BasicFileChooserUI
protected JComponent createToolbar()
protected void updateToolbarButtons()
public void uninstallComponents(JFileChooser chooser)
uninstallComponents
in class BasicFileChooserUI
protected void installListeners(JFileChooser fc)
installListeners
in class BasicFileChooserUI
protected void uninstallListeners(JFileChooser fc)
uninstallListeners
in class BasicFileChooserUI
public PropertyChangeListener createPropertyChangeListener(JFileChooser fc)
createPropertyChangeListener
in class BasicFileChooserUI
public static boolean isFileSystem(File f)
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.f
- a File
objecttrue
if f
is a real file or directory.public Action getApproveSelectionAction()
getApproveSelectionAction
in class BasicFileChooserUI