java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.FileChooserUI
javax.swing.plaf.basic.BasicFileChooserUI
public class BasicFileChooserUI
Basic L&F implementation of a FileChooser.
| Nested Class Summary | |
|---|---|
protected class |
BasicFileChooserUI.AcceptAllFileFilter
|
protected class |
BasicFileChooserUI.ApproveSelectionAction
Responds to an Open or Save request |
protected class |
BasicFileChooserUI.BasicFileView
|
protected class |
BasicFileChooserUI.CancelSelectionAction
Responds to a cancel request. |
protected class |
BasicFileChooserUI.ChangeToParentDirectoryAction
|
protected class |
BasicFileChooserUI.DoubleClickListener
|
protected class |
BasicFileChooserUI.GoHomeAction
Acts on the "home" key event or equivalent event. |
protected class |
BasicFileChooserUI.NewFolderAction
Creates a new folder. |
protected class |
BasicFileChooserUI.SelectionListener
|
protected class |
BasicFileChooserUI.UpdateAction
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 not DIRECTORIES_ONLY. |
protected String |
directoryOpenButtonText
The label text displayed on the approve button when a directory is selected and the current selection mode is not DIRECTORIES_ONLY. |
protected String |
directoryOpenButtonToolTipText
The tooltip text displayed on the approve button when a directory is selected and the current selection mode is not DIRECTORIES_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 | |
|---|---|
BasicFileChooserUI(JFileChooser b)
|
|
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, 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 |
|---|
protected 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 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
| Constructor Detail |
|---|
public BasicFileChooserUI(JFileChooser b)
| Method Detail |
|---|
public void installUI(JComponent c)
ComponentUIComponentUI instance is being installed
as the UI delegate on the specified component. This method should
completely configure the component for the look and feel,
including the following:
LayoutManager on the component if necessary.
PropertyChangeListener on the component in order
to detect and respond to component property changes appropriately.
installUI in class ComponentUIc - the component where this UI delegate is being installedComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void uninstallUI(JComponent c)
ComponentUIinstallUI. This method is invoked when this
UIComponent instance is being removed as the UI delegate
for the specified component. This method should undo the
configuration performed in installUI, being careful to
leave the JComponent instance in a clean state (no
extraneous listeners, look-and-feel-specific property objects, etc.).
This should include the following:
uninstallUI in class ComponentUIc - the component from which this UI delegate is being removed;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple componentsComponentUI.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 in class FileChooserUIpublic void ensureFileIsVisible(JFileChooser fc, File f)
ensureFileIsVisible in class FileChooserUIpublic JFileChooser getFileChooser()
public JPanel getAccessoryPanel()
protected JButton getApproveButton(JFileChooser fc)
public String getApproveButtonToolTipText(JFileChooser fc)
public void clearIconCache()
protected MouseListener createDoubleClickListener(JFileChooser fc, JList list)
public ListSelectionListener createListSelectionListener(JFileChooser fc)
protected boolean isDirectorySelected()
true iff a directory is currently selected.protected void setDirectorySelected(boolean b)
b - iff a directory is currently selected.protected File getDirectory()
directory propertysetDirectory(java.io.File)protected void setDirectory(File f)
f - the File object representing the directory that is
currently selectedpublic FileFilter getAcceptAllFileFilter(JFileChooser fc)
getAcceptAllFileFilter in class FileChooserUIpublic FileView getFileView(JFileChooser fc)
getFileView in class FileChooserUIpublic String getDialogTitle(JFileChooser fc)
getDialogTitle in class FileChooserUIpublic int getApproveButtonMnemonic(JFileChooser fc)
public String getApproveButtonText(JFileChooser fc)
getApproveButtonText in class FileChooserUIpublic Action getNewFolderAction()
public Action getGoHomeAction()
public Action getChangeToParentDirectoryAction()
public Action getApproveSelectionAction()
public Action getCancelSelectionAction()
public Action getUpdateAction()
Ces informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
8 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)