|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.ui.main.tree.DirectoryCache
public class DirectoryCache
This class holds cached directories. It maps AbstractFiles to DirectoryCache instances.
| Field Summary | |
|---|---|
protected javax.swing.event.EventListenerList |
listenerList
Listeners. |
| Constructor Summary | |
|---|---|
DirectoryCache(FileFilter filter,
FileComparator sort)
Creates a new directory cache. |
|
| Method Summary | |
|---|---|
void |
addCachedDirectoryListener(CachedDirectoryListener l)
|
void |
clear()
|
void |
fireChildrenCached(CachedDirectory cachedDirectory,
boolean readingChildren)
Fires a cachingStarted or cachingEnded event on all listeners. |
CachedDirectory |
get(AbstractFile key)
|
FileFilter |
getFilter()
Returns current filter. |
CachedDirectory |
getOrAdd(AbstractFile key)
Gets a cached instance of a file. |
FileComparator |
getSort()
Returns current sort order. |
void |
put(AbstractFile key,
CachedDirectory value)
|
void |
removeCachedDirectoryListener(CachedDirectoryListener l)
|
void |
removeWithChildren(AbstractFile key)
Deletes entry and all children from the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.swing.event.EventListenerList listenerList
| Constructor Detail |
|---|
public DirectoryCache(FileFilter filter,
FileComparator sort)
filter - filter used to filter children directories.sort - a comparator used to sort children| Method Detail |
|---|
public FileComparator getSort()
public FileFilter getFilter()
public void fireChildrenCached(CachedDirectory cachedDirectory,
boolean readingChildren)
cachedDirectory - a directory those children has been cachedreadingChildren - public void addCachedDirectoryListener(CachedDirectoryListener l)
public void removeCachedDirectoryListener(CachedDirectoryListener l)
public void clear()
public CachedDirectory get(AbstractFile key)
public void put(AbstractFile key,
CachedDirectory value)
public void removeWithChildren(AbstractFile key)
folder - public CachedDirectory getOrAdd(AbstractFile key)
key - an AbstractFile instance
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard