public class BasicFileChooserUI extends FileChooserUI
| ไฟฎ้ฃพๅญใจๅ | ใฏใฉใน | ่ชฌๆ |
|---|---|---|
protected class |
BasicFileChooserUI.AcceptAllFileFilter |
|
protected class |
BasicFileChooserUI.ApproveSelectionAction |
Open่ฆๆฑใพใใฏSave่ฆๆฑใซๅฟใใพใใ
|
protected class |
BasicFileChooserUI.BasicFileView |
|
protected class |
BasicFileChooserUI.CancelSelectionAction |
ๅๆถใใฎ่ฆๆฑใซๅฟใใพใใ
|
protected class |
BasicFileChooserUI.ChangeToParentDirectoryAction |
|
protected class |
BasicFileChooserUI.DoubleClickListener |
|
protected class |
BasicFileChooserUI.GoHomeAction |
Homeใญใผใปใคใใณใใพใใฏๅ็ญใฎใคใใณใใซๅพใฃใฆๅฆ็ใ่กใใพใใ
|
protected class |
BasicFileChooserUI.NewFolderAction |
ๆฐใใใใฉใซใใไฝๆใใพใใ
|
protected class |
BasicFileChooserUI.SelectionListener |
|
protected class |
BasicFileChooserUI.UpdateAction |
็พๅจใฎใใฃใฌใฏใใชใงใใกใคใซใ่ตฐๆปใ็ดใใพใใ
|
| ไฟฎ้ฃพๅญใจๅ | ใใฃใผใซใ | ่ชฌๆ |
|---|---|---|
protected int |
cancelButtonMnemonic |
|
protected String |
cancelButtonText |
|
protected String |
cancelButtonToolTipText |
|
protected Icon |
computerIcon |
|
protected Icon |
detailsViewIcon |
|
protected Icon |
directoryIcon |
|
protected int |
directoryOpenButtonMnemonic |
ใใฃใฌใฏใใชใ้ธๆใใใ็พๅจใฎ้ธๆใขใผใใFILES_ONLYใงใใๅ ดๅใๅๆใใฟใณใงไฝฟ็จใใใใใผใขใใใฏใปใญใผใณใผใใงใใ
|
protected String |
directoryOpenButtonText |
ใใฃใฌใฏใใชใ้ธๆใใใ็พๅจใฎ้ธๆใขใผใใFILES_ONLYใงใใๅ ดๅใๅๆใใฟใณไธใซ่กจ็คบใใใใฉใใซใปใใญในใใงใใ
|
protected String |
directoryOpenButtonToolTipText |
ใใฃใฌใฏใใชใ้ธๆใใใ็พๅจใฎ้ธๆใขใผใใ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 |
| ใณใณในใใฉใฏใฟ | ่ชฌๆ |
|---|---|
BasicFileChooserUI(JFileChooser b) |
| ไฟฎ้ฃพๅญใจๅ | ใกใฝใใ | ่ชฌๆ |
|---|---|---|
void |
clearIconCache() |
|
protected MouseListener |
createDoubleClickListener(JFileChooser fc, JList list) |
|
ListSelectionListener |
createListSelectionListener(JFileChooser fc) |
|
protected void |
createModel() |
|
PropertyChangeListener |
createPropertyChangeListener(JFileChooser fc) |
|
static ComponentUI |
createUI(JComponent c) |
ๆๅฎใใใใณใณใใผใใณใใฎ
BasicFileChooserUIใฎๅฎ่ฃ
ใไฝๆใใพใใ |
void |
ensureFileIsVisible(JFileChooser fc, File f) |
|
FileFilter |
getAcceptAllFileFilter(JFileChooser fc) |
ใใใฉใซใใง่ชใใใใใในใฆใฎใใกใคใซใปใใฃใซใฟใ่ฟใใพใใ
|
JPanel |
getAccessoryPanel() |
|
protected JButton |
getApproveButton(JFileChooser fc) |
|
int |
getApproveButtonMnemonic(JFileChooser fc) |
|
String |
getApproveButtonText(JFileChooser fc) |
|
String |
getApproveButtonToolTipText(JFileChooser fc) |
|
Action |
getApproveSelectionAction() |
|
Action |
getCancelSelectionAction() |
|
Action |
getChangeToParentDirectoryAction() |
|
JButton |
getDefaultButton(JFileChooser fc) |
็พๅจใฎ
LookAndFeelใฎใใใฉใซใใฎใใฟใณใ่ฟใใพใใ |
String |
getDialogTitle(JFileChooser fc) |
ใใฎใใคใขใญใฐใฎใฟใคใใซใ่ฟใใพใใ
|
protected File |
getDirectory() |
็พๅจใUIใง้ธๆใใใฆใใใใฃใฌใฏใใชใ่จๆถใใใใใฎใใญใใใฃใงใใ
|
String |
getDirectoryName() |
|
JFileChooser |
getFileChooser() |
|
String |
getFileName() |
|
FileView |
getFileView(JFileChooser fc) |
|
Action |
getGoHomeAction() |
|
BasicDirectoryModel |
getModel() |
|
Action |
getNewFolderAction() |
|
Action |
getUpdateAction() |
|
void |
installComponents(JFileChooser fc) |
|
protected void |
installDefaults(JFileChooser fc) |
|
protected void |
installIcons(JFileChooser fc) |
|
protected void |
installListeners(JFileChooser fc) |
|
protected void |
installStrings(JFileChooser fc) |
|
void |
installUI(JComponent c) |
ๆๅฎใใใใณใณใใผใใณใใLook & Feelใซๅฟใใฆ้ฉๅใซๆงๆใใพใใ
|
protected boolean |
isDirectorySelected() |
็พๅจใใฃใฌใฏใใชใUIใง้ธๆใใใฆใใใใฉใใใ่จๆถใใใใใฎใใญใใใฃใงใใ
|
void |
rescanCurrentDirectory(JFileChooser fc) |
|
protected void |
setDirectory(File f) |
็พๅจใUIใง้ธๆใใใฆใใใใฃใฌใฏใใชใ่จๆถใใใใใฎใใญใใใฃใงใใ
|
void |
setDirectoryName(String dirname) |
|
protected void |
setDirectorySelected(boolean b) |
็พๅจใใฃใฌใฏใใชใUIใง้ธๆใใใฆใใใใฉใใใ่จๆถใใใใใฎใใญใใใฃใงใใ
|
void |
setFileName(String filename) |
|
void |
uninstallComponents(JFileChooser fc) |
|
protected void |
uninstallDefaults(JFileChooser fc) |
|
protected void |
uninstallIcons(JFileChooser fc) |
|
protected void |
uninstallListeners(JFileChooser fc) |
|
protected void |
uninstallStrings(JFileChooser fc) |
|
void |
uninstallUI(JComponent c) |
installUIๆใซใๆๅฎใใใใณใณใใผใใณใใซๅฏพใใฆ่กใใใๆงๆใๅใๆถใใพใใ |
contains, 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 BasicFileChooserUI(JFileChooser b)
public static ComponentUI createUI(JComponent c)
BasicFileChooserUIใฎๅฎ่ฃ
ใไฝๆใใพใใ ใใใฉใซใใงใฏBasicLookAndFeelใฏใฉในใฏใในใฆใฎๅบๆฌUIใฏใฉในใฎcreateUIใกใฝใใใไฝฟ็จใใฆUIใใคใณในใฟใณในๅใใพใใ c - UIใๅฟ
่ฆใจใใJFileChooserBasicFileChooserUIใชใใธใงใฏใUIDefaults.getUI(JComponent)public void installUI(JComponent c)
ComponentUIComponentUIใคใณในใฟใณในใใๆๅฎใใใใณใณใใผใใณใใฎUIๅง่ญฒใจใใฆใคใณในใใผใซใใใฆใใใจใใซๅผใณๅบใใใพใใ ใใฎใกใฝใใใฏใๆฌกใๅซใLook & Feel็จใฎใณใณใใผใใณใใๅฎๅ
จใซๆงๆใใในใใงใใ
LayoutManagerใใคใณในใใผใซใใใ
PropertyChangeListenerใไฝๆใใฆใณใณใใผใใณใใซใคใณในใใผใซใใใ
installUIใใฏใฉในComponentUIc - UIๅง่ญฒใใคใณในใใผใซใใใใณใณใใผใใณใComponentUI.uninstallUI(javax.swing.JComponent), JComponent.setUI(javax.swing.plaf.ComponentUI), JComponent.updateUI()public void uninstallUI(JComponent c)
ComponentUIinstallUIๆใซใๆๅฎใใใใณใณใใผใใณใใซๅฏพใใฆ่กใใใๆงๆใๅใๆถใใพใใ ใใฎใกใฝใใใฏใใใฎUIComponentใคใณในใฟใณในใใๆๅฎใใใใณใณใใผใใณใใฎUIๅง่ญฒใจใใฆๅ้คใใใฆใใใจใใซๅผใณๅบใใใพใใ ใใฎใกใฝใใใฏใinstallUIใซใใฃใฆๅฎ่กใใใๆงๆใๅ
ใซๆปใในใใงใใใใฎๅ ดๅใJComponentใคใณในใฟใณในใใฏใชใผใณใช็ถๆ
(ไฝๅใชใชในใใผใใLook & Feelๅบๆใฎใใญใใใฃใปใชใใธใงใฏใใๆฎใใชใใใใซ)ใซใใใใๅๅๆณจๆใใฆใใ ใใใ ๆ้ ใซใฏๆฌกใฎใใฎใๅซใพใใในใใงใใ
uninstallUIใใฏใฉในComponentUIc - ใใฎUIๅง่ญฒใๅ้คใใใใณใณใใผใใณใใใใฎๅผๆฐใฏ้ๅธธ็ก่ฆใใใใใUIใชใใธใงใฏใใในใใผใใฌในใงใ่คๆฐใฎใณใณใใผใใณใใงๅ
ฑๆใใใฆใใๅ ดๅใฏไฝฟ็จใใใใใจใใใComponentUI.installUI(javax.swing.JComponent), JComponent.updateUI()public void installComponents(JFileChooser fc)
public void uninstallComponents(JFileChooser fc)
protected void installListeners(JFileChooser fc)
protected void uninstallListeners(JFileChooser fc)
protected void installDefaults(JFileChooser fc)
protected void installIcons(JFileChooser fc)
protected void installStrings(JFileChooser fc)
protected void uninstallDefaults(JFileChooser fc)
protected void uninstallIcons(JFileChooser fc)
protected void uninstallStrings(JFileChooser fc)
protected void createModel()
public BasicDirectoryModel getModel()
public PropertyChangeListener createPropertyChangeListener(JFileChooser fc)
public String getFileName()
public String getDirectoryName()
public void setFileName(String filename)
public void setDirectoryName(String dirname)
public void rescanCurrentDirectory(JFileChooser fc)
rescanCurrentDirectoryใใฏใฉในFileChooserUIpublic void ensureFileIsVisible(JFileChooser fc, File f)
ensureFileIsVisibleใใฏใฉในFileChooserUIpublic JFileChooser getFileChooser()
public JPanel getAccessoryPanel()
protected JButton getApproveButton(JFileChooser fc)
public JButton getDefaultButton(JFileChooser fc)
FileChooserUILookAndFeelใฎใใใฉใซใใฎใใฟใณใ่ฟใใพใใ JFileChooserใฏใใฎใใฟใณใใใคใขใญใฐใปใฆใฃใณใใฆใฎใใใฉใซใใฎใใฟใณใจใใฆไฝฟ็จใใพใใ getDefaultButtonใใฏใฉในFileChooserUIpublic String getApproveButtonToolTipText(JFileChooser fc)
public void clearIconCache()
protected MouseListener createDoubleClickListener(JFileChooser fc, JList list)
public ListSelectionListener createListSelectionListener(JFileChooser fc)
protected boolean isDirectorySelected()
trueใใฃใฌใฏใใชใ็พๅจ้ธๆใใใฆใใๅ ดๅprotected void setDirectorySelected(boolean b)
b - ใใฃใฌใฏใใชใ็พๅจ้ธๆใใใฆใใๅ ดๅprotected File getDirectory()
directoryใใญใใใฃใฎๅคsetDirectory(java.io.File)protected void setDirectory(File f)
f - ็พๅจ้ธๆใใใฆใใใใฃใฌใฏใใชใ่กจใFileใชใใธใงใฏใpublic FileFilter getAcceptAllFileFilter(JFileChooser fc)
getAcceptAllFileFilterใใฏใฉในFileChooserUIpublic FileView getFileView(JFileChooser fc)
getFileViewใใฏใฉในFileChooserUIpublic String getDialogTitle(JFileChooser fc)
getDialogTitleใใฏใฉในFileChooserUIpublic int getApproveButtonMnemonic(JFileChooser fc)
public String getApproveButtonText(JFileChooser fc)
getApproveButtonTextใใฏใฉในFileChooserUIpublic Action getNewFolderAction()
public Action getGoHomeAction()
public Action getChangeToParentDirectoryAction()
public Action getApproveSelectionAction()
public Action getCancelSelectionAction()
public Action getUpdateAction()
ใใฐใพใใฏๆฉ่ฝใ้ไฟก
่ฉณ็ดฐใชAPIใชใใกใฌใณในใใใณ้็บ่
ใใญใฅใกใณใใซใคใใฆใฏใJava SEใฎใใญใฅใกใณใใๅ็
งใใฆใใ ใใใ ใใฎใใญใฅใกใณใใซใฏใๆฆๅฟต็ใชๆฆ่ฆใ็จ่ชใฎๅฎ็พฉใๅ้ฟๆนๆณใๆๅนใชใณใผใไพใชใฉใฎใ้็บ่
ใๅฏพ่ฑกใซใใใใ่ฉณ็ดฐใช่ชฌๆใๅซใพใใฆใใพใใ
Copyright ยฉ 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyใๅ็
งใใฆใใ ใใใ