|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jext.project.AbstractProject
Defines a basic project created using Jext.
| Field Summary | |
protected java.util.Map |
attributes
|
protected AbstractProjectManager |
manager
|
protected java.lang.String |
name
|
| Constructor Summary | |
protected |
AbstractProject(java.lang.String name,
AbstractProjectManager manager)
Create a new AbstractProject. |
| Method Summary | |
protected void |
fireProjectEvent(int eventType)
Fire the specified ProjectEvent for this AbstractProject. |
protected void |
fireProjectEvent(int eventType,
java.lang.Object target)
Fire the specified ProjectEvent for this AbstractProject. |
java.lang.Object |
getAttribute(java.lang.String key)
Returns the value of the specified attribute for this AbstractProject. |
java.lang.Object |
getAttribute(java.lang.String key,
java.lang.Object defaultValue)
Returns the value of the specified attribute for this AbstractProject,
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
AbstractProject. |
java.lang.String |
getName()
Returns the name of this AbstractProject. |
void |
setAttribute(java.lang.String key,
java.lang.Object value)
Sets the specified attribute. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jext.project.Project |
closeFile, getFiles, getSelectedFile, openFile, selectFile |
| Field Detail |
protected final java.util.Map attributes
protected final AbstractProjectManager manager
protected final java.lang.String name
| Constructor Detail |
protected AbstractProject(java.lang.String name,
AbstractProjectManager manager)
AbstractProject.
name - the name of this AbstractProject.manager - the AbstractProjectManager in charge of this
AbstractProject.| Method Detail |
public java.lang.String getName()
AbstractProject.
getName in interface ProjectString.public java.lang.Object getAttribute(java.lang.String key)
AbstractProject.
getAttribute in interface Projectkey - the String key to which this attribute is tied.
Object
public java.lang.Object getAttribute(java.lang.String key,
java.lang.Object defaultValue)
AbstractProject,
returning the specified default value if no such attribute exists.
getAttribute in interface Projectkey - the String key to which this attribute is tied.defaultValue - the default Object to return if no such
attribute exists.
Objectpublic java.lang.String getAttributeAsString(java.lang.String key)
String value of the specified attribute for this
AbstractProject.
getAttributeAsString in interface Projectkey - the String key to which this attribute is tied.
String
public void setAttribute(java.lang.String key,
java.lang.Object value)
setAttribute in interface Projectkey - the String key of the attribute to be set.value - the Object value to assign.protected void fireProjectEvent(int eventType)
ProjectEvent for this AbstractProject.
This
eventType - the int code for the type of event to fire.
protected void fireProjectEvent(int eventType,
java.lang.Object target)
ProjectEvent for this AbstractProject.
This
eventType - the int code for the type of event to fire.target - the Object target of the event to fire.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||