public class DiskUsageModel
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROP_READY |
| Constructor and Description |
|---|
DiskUsageModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add PropertyChangeListener.
|
boolean |
isReady()
Get the value of ready
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove PropertyChangeListener.
|
void |
search(java.io.File f,
int depth,
ProgressMonitor mon)
search from this point, recursing into subdirectories.
|
void |
search(java.io.File f,
ProgressMonitor mon)
initialize the search, recursing into subdirectories.
|
void |
setReady(boolean newready)
Set the value of ready
|
java.lang.Long |
usage(java.io.File f)
return the number of kilobytes used under the directory.
|
public static final java.lang.String PROP_READY
public void search(java.io.File f,
ProgressMonitor mon)
f - the root directory of the searchmon - progress monitorpublic void search(java.io.File f,
int depth,
ProgressMonitor mon)
f - the root directory of the searchdepth - the current depthmon - progress monitorpublic java.lang.Long usage(java.io.File f)
f - the directory.public boolean isReady()
public void setReady(boolean newready)
newready - new value of readypublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener - public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener -