|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractListModel
javax.swing.plaf.basic.BasicDirectoryModel
de.muntjak.tinylookandfeel.TinyDirectoryModel
public class TinyDirectoryModel
A copy of BasicDirectoryModel with access to the fileCache.
| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
TinyDirectoryModel(javax.swing.JFileChooser fc)
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to the listener list. |
boolean |
contains(java.lang.Object o)
|
void |
fireContentsChanged()
|
protected void |
firePropertyChange(java.lang.String propertyName,
boolean oldValue,
boolean newValue)
Support for reporting bound property changes for boolean properties. |
java.util.Vector |
getDirectories()
|
java.lang.Object |
getElementAt(int index)
|
java.util.Vector |
getFileCache()
|
java.util.Vector |
getFiles()
|
java.beans.PropertyChangeListener[] |
getPropertyChangeListeners()
Returns an array of all the property change listeners registered on this component. |
int |
getSize()
|
int |
indexOf(java.lang.Object o)
|
void |
intervalAdded(javax.swing.event.ListDataEvent e)
Obsolete - not used. |
void |
intervalRemoved(javax.swing.event.ListDataEvent e)
Obsolete - not used. |
void |
invalidateFileCache()
This method is used to interrupt file loading thread. |
protected boolean |
lt(java.io.File a,
java.io.File b)
|
void |
propertyChange(java.beans.PropertyChangeEvent e)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener from the listener list. |
boolean |
renameFile(java.io.File oldFile,
java.io.File newFile)
Renames a file in the underlying file system. |
protected void |
sort(java.util.Vector v)
|
void |
validateFileCache()
|
| Methods inherited from class javax.swing.plaf.basic.BasicDirectoryModel |
|---|
firePropertyChange |
| 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 |
| Constructor Detail |
|---|
public TinyDirectoryModel(javax.swing.JFileChooser fc)
| Method Detail |
|---|
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange in interface java.beans.PropertyChangeListenerpropertyChange in class javax.swing.plaf.basic.BasicDirectoryModelpublic void invalidateFileCache()
invalidateFileCache in class javax.swing.plaf.basic.BasicDirectoryModelpublic java.util.Vector getDirectories()
getDirectories in class javax.swing.plaf.basic.BasicDirectoryModelpublic java.util.Vector getFiles()
getFiles in class javax.swing.plaf.basic.BasicDirectoryModelpublic void validateFileCache()
validateFileCache in class javax.swing.plaf.basic.BasicDirectoryModel
public boolean renameFile(java.io.File oldFile,
java.io.File newFile)
renameFile in class javax.swing.plaf.basic.BasicDirectoryModeloldFile - a File object representing
the existing filenewFile - a File object representing
the desired new file name
true if rename succeeded,
otherwise falsepublic void fireContentsChanged()
fireContentsChanged in class javax.swing.plaf.basic.BasicDirectoryModelpublic int getSize()
getSize in interface javax.swing.ListModelgetSize in class javax.swing.plaf.basic.BasicDirectoryModelpublic boolean contains(java.lang.Object o)
contains in class javax.swing.plaf.basic.BasicDirectoryModelpublic int indexOf(java.lang.Object o)
indexOf in class javax.swing.plaf.basic.BasicDirectoryModelpublic java.lang.Object getElementAt(int index)
getElementAt in interface javax.swing.ListModelgetElementAt in class javax.swing.plaf.basic.BasicDirectoryModelpublic java.util.Vector getFileCache()
public void intervalAdded(javax.swing.event.ListDataEvent e)
intervalAdded in class javax.swing.plaf.basic.BasicDirectoryModelpublic void intervalRemoved(javax.swing.event.ListDataEvent e)
intervalRemoved in class javax.swing.plaf.basic.BasicDirectoryModelprotected void sort(java.util.Vector v)
sort in class javax.swing.plaf.basic.BasicDirectoryModel
protected boolean lt(java.io.File a,
java.io.File b)
lt in class javax.swing.plaf.basic.BasicDirectoryModelpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
If listener is null,
no exception is thrown and no action is performed.
addPropertyChangeListener in class javax.swing.plaf.basic.BasicDirectoryModellistener - the property change listener to be addedremovePropertyChangeListener(java.beans.PropertyChangeListener),
getPropertyChangeListeners()public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
If listener is null, no exception is thrown and no action is performed.
removePropertyChangeListener in class javax.swing.plaf.basic.BasicDirectoryModellistener - the PropertyChangeListener to be removedaddPropertyChangeListener(java.beans.PropertyChangeListener),
getPropertyChangeListeners()public java.beans.PropertyChangeListener[] getPropertyChangeListeners()
getPropertyChangeListeners in class javax.swing.plaf.basic.BasicDirectoryModelPropertyChangeListeners
or an empty array if no property change
listeners are currently registeredaddPropertyChangeListener(java.beans.PropertyChangeListener),
removePropertyChangeListener(java.beans.PropertyChangeListener),
PropertyChangeSupport.getPropertyChangeListeners()
protected void firePropertyChange(java.lang.String propertyName,
boolean oldValue,
boolean newValue)
propertyName - the property whose value has changedoldValue - the property's previous valuenewValue - the property's new value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||