public class DirectoryData extends Object
A data class for storing information about a directory.
Objects of this class are used by the file system browser to keep track about
the directories already scanned. They are stored in the model of the tree
view. Whenever a node in the tree is selected the corresponding DirectoryData
object is determined. From this object the content of the
directory can be obtained. It is also possible to find out whether this
directory has already been read.
Constructor and Description |
---|
DirectoryData(File dir)
Creates a new instance of
DirectoryData and initializes it with
the File object representing the associated directory. |
Modifier and Type | Method and Description |
---|---|
List<FileData> |
getContent()
Returns a list with the content of this directory.
|
File |
getDirectory()
Returns the
File object representing the associated directory. |
boolean |
isInitialized()
Returns a flag whether this directory has already been initialized.
|
void |
setContent(List<FileData> content)
Sets the list with the content of this directory.
|
String |
toString()
Returns a string representation for this object.
|
public DirectoryData(File dir)
DirectoryData
and initializes it with
the File
object representing the associated directory.dir
- the directorypublic List<FileData> getContent()
public void setContent(List<FileData> content)
content
- the list with the contentpublic File getDirectory()
File
object representing the associated directory.public boolean isInitialized()
Copyright © 2016 The JGUIraffe Team. All rights reserved.