|
||||||||||
| 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
, Serializable
, EventListener
, ListModel

public class BasicDirectoryModel


Basic implementation of a file list.
| Field Summary |
|---|
Fields inherited from class javax.swing.AbstractListModel ![]() |
|---|
listenerList |
| Constructor Summary | |
|---|---|
BasicDirectoryModel
|
|
| Method Summary | |
|---|---|
boolean |
contains
|
void |
fireContentsChanged
|
Vector |
getDirectories
|
Object |
getElementAt
Returns the value at the specified index. |
Vector |
getFiles
|
int |
getSize
Returns the length of the list. |
int |
indexOf
|
void |
intervalAdded
Obsolete - not used. |
void |
intervalRemoved
Obsolete - not used. |
void |
invalidateFileCache
Obsolete - not used. |
protected boolean |
lt
|
void |
propertyChange
This method gets called when a bound property is changed. |
boolean |
renameFile
Renames a file in the underlying file system. |
protected void |
sort
|
void |
validateFileCache
|
Methods inherited from class javax.swing.AbstractListModel ![]() |
|---|
addListDataListener |
Methods inherited from class java.lang.Object ![]() |
|---|
clone |
| Constructor Detail |
|---|

public BasicDirectoryModel(JFileChooser![]()
![]()
filechooser)
| Method Detail |
|---|

public void propertyChange(PropertyChangeEvent![]()
![]()
e)
PropertyChangeListener

propertyChange

in interface PropertyChangeListener

e - A PropertyChangeEvent object describing the event source
and the property that has changed.

public void invalidateFileCache()

public Vector![]()
![]()
<File
![]()
![]()
> getDirectories()

public Vector![]()
![]()
<File
![]()
![]()
> 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![]()
![]()
<? extends File
![]()
![]()
> v)

protected boolean lt(File![]()
![]()
a, File
![]()
![]()
b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||