| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class BasicFileChooserUI extends FileChooserUI
Basic L&F implementation of a FileChooser.
Nested Class Summary | |
---|---|
protected class |
|
protected class |
Responds to an Open or Save request |
protected class |
|
protected class |
Responds to a cancel request. |
protected class |
|
protected class |
|
protected class |
Acts on the "home" key event or equivalent event. |
protected class |
Creates a new folder. |
protected class |
|
protected class |
Rescans the files in the current directory |
Field Summary | |
---|---|
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
|
Constructor Summary | |
---|---|
|
Method Summary | |
---|---|
void |
|
protected MouseListener |
createDoubleClickListener(JFileChooser fc, JList list) |
ListSelectionListener |
|
protected void |
|
PropertyChangeListener |
|
void |
ensureFileIsVisible(JFileChooser fc, File f) |
FileFilter |
Returns the default accept all file filter |
JPanel |
|
protected JButton |
|
int |
|
String |
|
String |
|
Action |
|
Action |
|
Action |
|
String |
Returns the title of this dialog |
protected File |
Property to remember the directory that is currently selected in the UI. |
String |
|
JFileChooser |
|
String |
|
FileView |
|
Action |
|
BasicDirectoryModel |
getModel() |
Action |
|
Action |
|
void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
void |
Configures the specified component appropriate for the look and feel. |
protected boolean |
Property to remember whether a directory is currently selected in the UI. |
void |
|
protected void |
setDirectory(File f) Property to remember the directory that is currently selected in the UI. |
void |
setDirectoryName(String dirname) |
protected void |
setDirectorySelected(boolean b) Property to remember whether a directory is currently selected in the UI. |
void |
setFileName(String filename) |
void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
void |
Reverses configuration which was done on the specified component during installUI .
|
Methods inherited from class javax.swing.plaf.FileChooserUI |
---|
ensureFileIsVisible, getAcceptAllFileFilter, getApproveButtonText, getDialogTitle, getFileView, rescanCurrentDirectory |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int cancelButtonMnemonic
protected String cancelButtonText
protected String cancelButtonToolTipText
protected Icon computerIcon
protected Icon detailsViewIcon
protected Icon directoryIcon
protected int directoryOpenButtonMnemonic
protected String directoryOpenButtonText
protected String directoryOpenButtonToolTipText
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
Constructor Detail |
---|
public BasicFileChooserUI(JFileChooser b)
b
Method Detail |
---|
public void clearIconCache()
protected MouseListener createDoubleClickListener(JFileChooser fc, JList list)
fc
list
public ListSelectionListener createListSelectionListener(JFileChooser fc)
fc
protected void createModel()
public PropertyChangeListener createPropertyChangeListener(JFileChooser fc)
fc
public void ensureFileIsVisible(JFileChooser fc, File f)
ensureFileIsVisible
in class FileChooserUI
fc
f
public FileFilter getAcceptAllFileFilter(JFileChooser fc)
getAcceptAllFileFilter
in class FileChooserUI
fc
public JPanel getAccessoryPanel()
protected JButton getApproveButton(JFileChooser fc)
fc
public int getApproveButtonMnemonic(JFileChooser fc)
fc
public String getApproveButtonText(JFileChooser fc)
getApproveButtonText
in class FileChooserUI
fc
public String getApproveButtonToolTipText(JFileChooser fc)
fc
public Action getApproveSelectionAction()
public Action getCancelSelectionAction()
public Action getChangeToParentDirectoryAction()
public String getDialogTitle(JFileChooser fc)
getDialogTitle
in class FileChooserUI
fc
protected File getDirectory()
directory
propertypublic String getDirectoryName()
public JFileChooser getFileChooser()
public String getFileName()
public FileView getFileView(JFileChooser fc)
getFileView
in class FileChooserUI
fc
public Action getGoHomeAction()
public BasicDirectoryModel getModel()
public Action getNewFolderAction()
public Action getUpdateAction()
public void installComponents(JFileChooser fc)
fc
protected void installDefaults(JFileChooser fc)
fc
protected void installIcons(JFileChooser fc)
fc
protected void installListeners(JFileChooser fc)
fc
protected void installStrings(JFileChooser fc)
fc
public void installUI(JComponent c)
installUI
in class ComponentUI
c
protected boolean isDirectorySelected()
true
iff a directory is currently selected.public void rescanCurrentDirectory(JFileChooser fc)
rescanCurrentDirectory
in class FileChooserUI
fc
protected void setDirectory(File f)
f
- the File
object representing the directory that is
currently selectedpublic void setDirectoryName(String dirname)
dirname
protected void setDirectorySelected(boolean b)
b
- iff a directory is currently selected.public void setFileName(String filename)
filename
public void uninstallComponents(JFileChooser fc)
fc
protected void uninstallDefaults(JFileChooser fc)
fc
protected void uninstallIcons(JFileChooser fc)
fc
protected void uninstallListeners(JFileChooser fc)
fc
protected void uninstallStrings(JFileChooser fc)
fc
public void uninstallUI(JComponent c)
uninstallUI
in class ComponentUI
c
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |