|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpalmed.file.Directory
public final class Directory
This class implements a directory descriptor.
Constructor Summary | |
---|---|
Directory(IDirectory parent,
java.lang.String path)
Create a descriptor. |
Method Summary | |
---|---|
void |
accept(IDirectoryVisitor visitor)
Visit the current directory. |
void |
create(java.lang.String name)
Create a sub-directory. |
boolean |
isInPath(java.lang.String name)
Test if a given name is in the path of the directory. |
boolean |
isWritable()
Test if directories or files can be created in this directory. |
IDirectory |
select(java.lang.String filename,
IFileBrowserListener listener)
Select a file or sub-directory. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Directory(IDirectory parent, java.lang.String path)
parent
- the parent descriptorpath
- the descriptor pathMethod Detail |
---|
public IDirectory select(java.lang.String filename, IFileBrowserListener listener)
select
in interface IDirectory
filename
- the item namelistener
- the file selection listener
public void accept(IDirectoryVisitor visitor) throws java.io.IOException
accept
in interface IDirectory
visitor
- the directory visitor
java.io.IOException
- an io exception occuredpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean isWritable()
isWritable
in interface IDirectory
public void create(java.lang.String name) throws java.io.IOException
create
in interface IDirectory
name
- the sub-directory name
java.io.IOException
- an io exception occuredpublic boolean isInPath(java.lang.String name)
isInPath
in interface IDirectory
name
- the name to test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |