|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractListModel javax.swing.plaf.basic.BasicDirectoryModel
Basic implementation of a file list.
Nested Class Summary | |
(package private) class |
BasicDirectoryModel.DoChangeContents
|
(package private) class |
BasicDirectoryModel.LoadFilesThread
|
Field Summary | |
private Vector |
directories
|
private int |
fetchID
|
private Vector |
fileCache
|
private JFileChooser |
filechooser
|
private Vector |
files
|
private BasicDirectoryModel.LoadFilesThread |
loadThread
|
Fields inherited from class javax.swing.AbstractListModel |
listenerList |
Constructor Summary | |
BasicDirectoryModel(JFileChooser filechooser)
|
Method Summary | |
boolean |
contains(Object o)
|
void |
fireContentsChanged()
|
Vector |
getDirectories()
|
Object |
getElementAt(int index)
Returns the value at the specified index. |
Vector |
getFiles()
|
int |
getSize()
Returns the length of the list. |
int |
indexOf(Object o)
|
void |
intervalAdded(ListDataEvent e)
Obsolete - not used. |
void |
intervalRemoved(ListDataEvent e)
Obsolete - not used. |
void |
invalidateFileCache()
Obsolete - not used. |
protected boolean |
lt(File a,
File b)
|
void |
propertyChange(java.beans.PropertyChangeEvent e)
|
boolean |
renameFile(File oldFile,
File newFile)
Renames a file in the underlying file system. |
protected void |
sort(Vector v)
|
void |
validateFileCache()
|
Methods inherited from class javax.swing.AbstractListModel |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private JFileChooser filechooser
private Vector fileCache
private BasicDirectoryModel.LoadFilesThread loadThread
private Vector files
private Vector directories
private int fetchID
Constructor Detail |
public BasicDirectoryModel(JFileChooser filechooser)
Method Detail |
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
public void invalidateFileCache()
public Vector getDirectories()
public Vector getFiles()
public void validateFileCache()
public boolean renameFile(File oldFile, File newFile)
oldFile
- a File
object representing
the existing filenewFile
- a File
object representing
the desired new file name
true
if rename succeeded,
otherwise false
public void fireContentsChanged()
public int getSize()
ListModel
getSize
in interface ListModel
public boolean contains(Object o)
public int indexOf(Object o)
public Object getElementAt(int index)
ListModel
getElementAt
in interface ListModel
index
- the requested index
index
public void intervalAdded(ListDataEvent e)
public void intervalRemoved(ListDataEvent e)
protected void sort(Vector v)
protected boolean lt(File a, File b)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |