public interface IAbstractFolder extends IAbstractFile
Modifier and Type | Method and Description |
---|---|
IAbstractFile |
add(IAbstractFile file)
Adds the given file to the folder.
|
void |
addAbstractFolderListener(IAbstractFolderListener listener)
Adds the given abstract folder listener to the abstract folder.
|
Iterator |
getChildIterator()
Returns an iterator that is capable to iterate over all childrens of the
folder.
|
IAbstractFile[] |
getChilds()
Returns an array containing all childs of the folder.
|
IAbstractFile[] |
getChilds(Class filter)
Returns an array containing all childrens that are instance of the given
filter class.
|
int |
getSize()
Returns the size of the folder.
|
void |
remove(IAbstractFile file)
Removes the given file from the folder.
|
void |
removeAbstractFolderListener(IAbstractFolderListener listener)
Removes the given abstract folder listener from the abstract folder.
|
IAbstractFile[] |
update(boolean recursive)
Reqeusts an update in the folder.
|
addAbstractFileListener, getFile, getFileLocker, getFullPath, getLastModified, getName, getParentFolder, getPathFile, getProject, getTitle, isLocked, releaseLock, removeAbstractFileListener, requestLock, setName
IAbstractFile add(IAbstractFile file) throws ChildNotAcceptedException
file
- the file that should be added to the folderfile
- the file that should be added to the folder.ChildNotAcceptedException
- -
if the folder does not accept the filevoid remove(IAbstractFile file)
file
- the file to remove from the folderIAbstractFile[] update(boolean recursive)
recursive
- a boolean parameter to set the update mode for the method. If
this parameter is set to true, subfolders are updated too.
Otherwise subfolders are ignored.IAbstractFile[] getChilds()
IAbstractFile[] getChilds(Class filter)
filter
- a class that serves as filter for selecting childrensIterator getChildIterator()
int getSize()
void addAbstractFolderListener(IAbstractFolderListener listener)
listener
- the listener that should be added to the abstract foldervoid removeAbstractFolderListener(IAbstractFolderListener listener)
listener
- the listener that should be removed