public class BasicVFSFileChooserUI extends AbstractVFSFileChooserUI
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BasicVFSFileChooserUI.AcceptAllFileFilter |
protected class |
BasicVFSFileChooserUI.ApproveSelectionAction
Responds to an Open or Save request
|
class |
BasicVFSFileChooserUI.BasicVFSFileView |
protected class |
BasicVFSFileChooserUI.CancelSelectionAction
Responds to a cancel request.
|
protected class |
BasicVFSFileChooserUI.ChangeToParentDirectoryAction |
protected class |
BasicVFSFileChooserUI.DoubleClickListener |
protected class |
BasicVFSFileChooserUI.GoHomeAction
Acts on the "home" key event or equivalent event.
|
protected class |
BasicVFSFileChooserUI.NewFolderAction
Creates a new folder.
|
protected class |
BasicVFSFileChooserUI.SelectionListener |
protected class |
BasicVFSFileChooserUI.UpdateAction
Rescans the files in the current directory
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
cancelButtonMnemonic |
protected String |
cancelButtonText |
protected String |
cancelButtonToolTipText |
protected Icon |
computerIcon |
protected Icon |
detailsViewIcon |
protected Icon |
directoryIcon |
protected int |
directoryOpenButtonMnemonic
The mnemonic keycode used for the approve button when a directory
is selected and the current selection mode is FILES_ONLY.
|
protected String |
directoryOpenButtonText
The label text displayed on the approve button when a directory
is selected and the current selection mode is FILES_ONLY.
|
protected String |
directoryOpenButtonToolTipText
The tooltip text displayed on the approve button when a directory
is selected and the current selection mode is FILES_ONLY.
|
protected Icon |
fileIcon |
protected Icon |
floppyDriveIcon |
protected Icon |
hardDriveIcon |
protected int |
helpButtonMnemonic |
protected String |
helpButtonText |
protected String |
helpButtonToolTipText |
protected Icon |
homeFolderIcon |
protected Icon |
listViewIcon |
protected Icon |
newFolderIcon |
protected int |
openButtonMnemonic |
protected String |
openButtonText |
protected String |
openButtonToolTipText |
protected int |
saveButtonMnemonic |
protected String |
saveButtonText |
protected String |
saveButtonToolTipText |
protected int |
updateButtonMnemonic |
protected String |
updateButtonText |
protected String |
updateButtonToolTipText |
protected Icon |
upFolderIcon |
protected Icon |
viewMenuIcon |
| Constructor and Description |
|---|
BasicVFSFileChooserUI(VFSJFileChooser b) |
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, updateprotected Icon directoryIcon
protected Icon fileIcon
protected Icon computerIcon
protected Icon hardDriveIcon
protected Icon floppyDriveIcon
protected Icon newFolderIcon
protected Icon upFolderIcon
protected Icon homeFolderIcon
protected Icon listViewIcon
protected Icon detailsViewIcon
protected Icon viewMenuIcon
protected int saveButtonMnemonic
protected int openButtonMnemonic
protected int cancelButtonMnemonic
protected int updateButtonMnemonic
protected int helpButtonMnemonic
protected int directoryOpenButtonMnemonic
protected String saveButtonText
protected String openButtonText
protected String cancelButtonText
protected String updateButtonText
protected String helpButtonText
protected String directoryOpenButtonText
protected String saveButtonToolTipText
protected String openButtonToolTipText
protected String cancelButtonToolTipText
protected String updateButtonToolTipText
protected String helpButtonToolTipText
protected String directoryOpenButtonToolTipText
public BasicVFSFileChooserUI(VFSJFileChooser b)
public void installUI(JComponent c)
installUI in class ComponentUIc - public void uninstallUI(JComponent c)
uninstallUI in class ComponentUIc - public void installComponents(VFSJFileChooser fc)
fc - public void uninstallComponents(VFSJFileChooser fc)
fc - protected void installListeners(VFSJFileChooser fc)
protected ActionMap getActionMap()
protected ActionMap createActionMap()
protected void uninstallListeners(VFSJFileChooser fc)
protected void installDefaults(VFSJFileChooser fc)
protected void installIcons(VFSJFileChooser fc)
protected void installStrings(VFSJFileChooser fc)
protected void uninstallDefaults(VFSJFileChooser fc)
protected void uninstallIcons(VFSJFileChooser fc)
protected void uninstallStrings(VFSJFileChooser fc)
protected void createModel()
public BasicVFSDirectoryModel getModel()
public PropertyChangeListener createPropertyChangeListener(VFSJFileChooser fc)
public String getFileName()
public String getDirectoryName()
public void setFileName(String filename)
public void setDirectoryName(String dirname)
public void rescanCurrentDirectory(VFSJFileChooser fc)
rescanCurrentDirectory in class AbstractVFSFileChooserUIpublic void ensureFileIsVisible(VFSJFileChooser fc, org.apache.commons.vfs2.FileObject f)
ensureFileIsVisible in class AbstractVFSFileChooserUIfc - The fileChooserf - The fileobjectpublic VFSJFileChooser getFileChooser()
public JPanel getAccessoryPanel()
protected JButton getApproveButton(VFSJFileChooser fc)
public String getApproveButtonToolTipText(VFSJFileChooser fc)
public void clearIconCache()
protected MouseListener createDoubleClickListener(VFSJFileChooser fc, JList list)
public ListSelectionListener createListSelectionListener(VFSJFileChooser fc)
protected boolean isDirectorySelected()
true iff a directory is currently selected.protected void setDirectorySelected(boolean b)
b - iff a directory is currently selected.protected org.apache.commons.vfs2.FileObject getDirectory()
directory propertysetDirectory(org.apache.commons.vfs2.FileObject)protected void setDirectory(org.apache.commons.vfs2.FileObject f)
f - the File object representing the directory that is
currently selectedpublic AbstractVFSFileFilter getAcceptAllFileFilter(VFSJFileChooser fc)
getAcceptAllFileFilter in class AbstractVFSFileChooserUIpublic AbstractVFSFileView getFileView(VFSJFileChooser fc)
getFileView in class AbstractVFSFileChooserUIpublic String getDialogTitle(VFSJFileChooser fc)
getDialogTitle in class AbstractVFSFileChooserUIpublic int getApproveButtonMnemonic(VFSJFileChooser fc)
public String getApproveButtonText(VFSJFileChooser fc)
getApproveButtonText in class AbstractVFSFileChooserUIpublic Action getNewFolderAction()
public Action getGoHomeAction()
public Action getChangeToParentDirectoryAction()
public Action getApproveSelectionAction()
public Action getCancelSelectionAction()
public Action getUpdateAction()
public void changeDirectory(org.apache.commons.vfs2.FileObject dir)
Copyright © 2020. All rights reserved.