public interface Project
| Modifier and Type | Method and Description |
|---|---|
void |
closeFile(java.io.File f)
Close the specified
File. |
java.lang.Object |
getAttribute(java.lang.String key)
Returns the value of the specified attribute for this
Project. |
java.lang.Object |
getAttribute(java.lang.String key,
java.lang.Object defaultValue)
Returns the value of the specified attribute for this
Project,
returning the specified default value if no such attribute exists. |
java.lang.String |
getAttributeAsString(java.lang.String key)
Returns the
String value of the specified attribute for this
Project. |
java.io.File[] |
getFiles()
Returns the
Files that compose this Project. |
java.lang.String |
getName()
Returns the name of this
Project. |
java.io.File |
getSelectedFile()
Returns the currently selected
File of this
Project. |
void |
openFile(java.io.File f)
Open the specified
File in this Project. |
void |
selectFile(java.io.File f)
Select the specified
File. |
void |
setAttribute(java.lang.String key,
java.lang.Object value)
Sets the specified attribute.
|
java.lang.String getName()
Project.String.java.io.File[] getFiles()
Files that compose this Project.
If any of these Files is a directory, it is understood that all
Files in and below this directory are part of this
Project.File[].void openFile(java.io.File f)
File in this Project. Although
it is an implementation decision, this act might also add the specified
File to this Project.f - the File to close.void closeFile(java.io.File f)
File.f - the File to close.void selectFile(java.io.File f)
File. It is recommended that this
method be implemented such that the File is opened if not
already open.f - the File to select.openFile(File)java.io.File getSelectedFile()
File of this
Project.File.java.lang.Object getAttribute(java.lang.String key)
Project.key - the String key to which this attribute is tied.Objectjava.lang.Object getAttribute(java.lang.String key,
java.lang.Object defaultValue)
Project,
returning the specified default value if no such attribute exists.key - the String key to which this attribute is tied.defaultValue - the default Object to return if no such
attribute exists.Objectjava.lang.String getAttributeAsString(java.lang.String key)
String value of the specified attribute for this
Project.key - the String key to which this attribute is tied.Stringvoid setAttribute(java.lang.String key,
java.lang.Object value)
key - the String key of the attribute to be set.value - the Object value to assign.Copyright ? 2002 Romain Guy.