Home » openjdk-7 » javax » swing » plaf » basic » [javadoc | source]
public class: BasicDirectoryModel [javadoc | source]

All Implemented Interfaces:
    PropertyChangeListener, java$io$Serializable, ListModel

Basic implementation of a file list.
Nested Class Summary:
class  BasicDirectoryModel.LoadFilesThread   
class  BasicDirectoryModel.DoChangeContents   
Fields inherited from javax.swing.AbstractListModel:
 public BasicDirectoryModel(JFileChooser filechooser) 
Method from javax.swing.plaf.basic.BasicDirectoryModel Summary:
addPropertyChangeListener,   contains,   fireContentsChanged,   firePropertyChange,   getDirectories,   getElementAt,   getFiles,   getPropertyChangeListeners,   getSize,   indexOf,   intervalAdded,   intervalRemoved,   invalidateFileCache,   lt,   propertyChange,   removePropertyChangeListener,   renameFile,   sort,   validateFileCache
Methods from javax.swing.AbstractListModel:
addListDataListener,   fireContentsChanged,   fireIntervalAdded,   fireIntervalRemoved,   getListDataListeners,   getListeners,   removeListDataListener
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.basic.BasicDirectoryModel Detail:
 public  void addPropertyChangeListener(PropertyChangeListener listener) 
    Adds a PropertyChangeListener to the listener list. The listener is registered for all bound properties of this class.

    If listener is null, no exception is thrown and no action is performed.

 public boolean contains(Object o) 
 public  void fireContentsChanged() 
 protected  void firePropertyChange(String propertyName,
    Object oldValue,
    Object newValue) 
    Support for reporting bound property changes for boolean properties. This method can be called when a bound property has changed and it will send the appropriate PropertyChangeEvent to any registered PropertyChangeListeners.
 public Vector<File> getDirectories() 
 public Object getElementAt(int index) 
 public Vector<File> getFiles() 
 public PropertyChangeListener[] getPropertyChangeListeners() 
    Returns an array of all the property change listeners registered on this component.
 public int getSize() 
 public int indexOf(Object o) 
 public  void intervalAdded(ListDataEvent e) 
    Obsolete - not used.
 public  void intervalRemoved(ListDataEvent e) 
    Obsolete - not used.
 public  void invalidateFileCache() 
    This method is used to interrupt file loading thread.
 protected boolean lt(File a,
    File b) 
 public  void propertyChange(PropertyChangeEvent e) 
 public  void removePropertyChangeListener(PropertyChangeListener listener) 
    Removes a PropertyChangeListener from the listener list.

    If listener is null, no exception is thrown and no action is performed.

 public boolean renameFile(File oldFile,
    File newFile) 
    Renames a file in the underlying file system.
 protected  void sort(Vector<File> v) 
 public  void validateFileCache()