dguitar.gui
Class DGFileChooserUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.FileChooserUI
          extended byjavax.swing.plaf.basic.BasicFileChooserUI
              extended byjavax.swing.plaf.metal.MetalFileChooserUI
                  extended bydguitar.gui.DGFileChooserUI

public class DGFileChooserUI
extends javax.swing.plaf.metal.MetalFileChooserUI

To change the behaviour of the FileChooser to remove the posibility to RENAME folders and files TODO: The NEW FOLDER button still appears (usefull when saving..but no when opening) When the view is changed to DETAILS the renaming is still posible !! - files can not be sorted using columns

Author:
Obtained from http://forum.java.sun.com/thread.jspa?forumID=257&threadID=392361

Nested Class Summary
protected  class DGFileChooserUI.DoubleClickListener
           
 
Nested classes inherited from class javax.swing.plaf.metal.MetalFileChooserUI
javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxAction, javax.swing.plaf.metal.MetalFileChooserUI.DirectoryComboBoxModel, javax.swing.plaf.metal.MetalFileChooserUI.FileRenderer, javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxModel, javax.swing.plaf.metal.MetalFileChooserUI.FilterComboBoxRenderer, javax.swing.plaf.metal.MetalFileChooserUI.SingleClickListener
 
Nested classes inherited from class javax.swing.plaf.basic.BasicFileChooserUI
javax.swing.plaf.basic.BasicFileChooserUI.AcceptAllFileFilter, javax.swing.plaf.basic.BasicFileChooserUI.ApproveSelectionAction, javax.swing.plaf.basic.BasicFileChooserUI.BasicFileView, javax.swing.plaf.basic.BasicFileChooserUI.CancelSelectionAction, javax.swing.plaf.basic.BasicFileChooserUI.ChangeToParentDirectoryAction, javax.swing.plaf.basic.BasicFileChooserUI.GoHomeAction, javax.swing.plaf.basic.BasicFileChooserUI.NewFolderAction, javax.swing.plaf.basic.BasicFileChooserUI.SelectionListener, javax.swing.plaf.basic.BasicFileChooserUI.UpdateAction
 
Field Summary
 
Fields inherited from class javax.swing.plaf.metal.MetalFileChooserUI
 
Fields inherited from class javax.swing.plaf.basic.BasicFileChooserUI
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
 
Constructor Summary
DGFileChooserUI(javax.swing.JFileChooser filechooser)
          Constructs a MetalFileChooserUI
 
Method Summary
protected  java.awt.event.MouseListener createDoubleClickListener(javax.swing.JFileChooser fc, javax.swing.JList list)
           
 
Methods inherited from class javax.swing.plaf.metal.MetalFileChooserUI
addControlButtons, createActionMap, createDetailsView, createDirectoryComboBoxModel, createDirectoryComboBoxRenderer, createFilterComboBoxModel, createFilterComboBoxRenderer, createList, createListSelectionListener, createPropertyChangeListener, createUI, ensureFileIsVisible, getActionMap, getApproveButton, getBottomPanel, getButtonPanel, getDirectoryName, getFileName, getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installListeners, installStrings, installUI, removeControlButtons, rescanCurrentDirectory, setDirectoryName, setDirectorySelected, setFileName, uninstallComponents, uninstallUI, valueChanged
 
Methods inherited from class javax.swing.plaf.basic.BasicFileChooserUI
clearIconCache, createModel, getAcceptAllFileFilter, getAccessoryPanel, getApproveButtonMnemonic, getApproveButtonText, getApproveButtonToolTipText, getApproveSelectionAction, getCancelSelectionAction, getChangeToParentDirectoryAction, getDialogTitle, getDirectory, getFileChooser, getFileView, getGoHomeAction, getModel, getNewFolderAction, getUpdateAction, installDefaults, installIcons, isDirectorySelected, setDirectory, uninstallDefaults, uninstallIcons, uninstallListeners, uninstallStrings
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DGFileChooserUI

public DGFileChooserUI(javax.swing.JFileChooser filechooser)
Constructs a MetalFileChooserUI

Parameters:
filechooser -
Method Detail

createDoubleClickListener

protected java.awt.event.MouseListener createDoubleClickListener(javax.swing.JFileChooser fc,
                                                                 javax.swing.JList list)