|
|||||||||
| Home >> All >> org >> jext >> [ project overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jext.project
Class ProjectEvent

java.lang.Objectorg.jext.project.ProjectEvent
- public class ProjectEvent
- extends java.lang.Object
The event emitted by a Jext ProjectManager when a meaningful
change happens to one of its Projects.
| Field Summary | |
static int |
ATTRIBUTE_SET
|
static int |
ATTRIBUTE_UNSET
|
private int |
event
|
static int |
FILE_ADDED
|
static int |
FILE_CHANGED
|
static int |
FILE_CLOSED
|
static int |
FILE_OPENED
|
static int |
FILE_REMOVED
|
static int |
FILE_SELECTED
|
static int |
OTHER
|
private Project |
project
|
static int |
PROJECT_CLOSED
|
static int |
PROJECT_OPENED
|
static int |
PROJECT_SELECTED
|
private ProjectManager |
projectManager
|
private java.lang.Object |
target
|
| Constructor Summary | |
ProjectEvent(ProjectManager projectManager,
int eventType)
Creates a new ProjectEvent, registering the parent ProjectManager
of this event and the type of the event (the event is assumed to be specific
to the ProjectManager's currently active Project. |
|
ProjectEvent(ProjectManager projectManager,
Project project,
int eventType)
Creates a new ProjectEvent, registering the parent ProjectManager
of this event, the type of the event and the relevant Project. |
|
ProjectEvent(ProjectManager projectManager,
Project project,
int eventType,
java.lang.Object target)
Creates a new ProjectEvent, registering the parent ProjectManager
of this event, the type of the event, the relevant Project, and
the target of the event. |
|
| Method Summary | |
Project |
getProject()
Returns the Project for which the ProjectEvent was
generated. |
ProjectManager |
getProjectManager()
Returns the ProjectManager from which the event was fired. |
java.lang.Object |
getTarget()
Returns the Object target of the event; if this is a "project"
event, then the result should be the same Project as returned by
getProject; if this is a "file" event, the result should be the
affected File; if this is an "attribute" event, the result
should be the affected String attribute name. |
int |
getWhat()
Returns the type of event. |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
PROJECT_OPENED
public static final int PROJECT_OPENED
- See Also:
- Constant Field Values
PROJECT_CLOSED
public static final int PROJECT_CLOSED
- See Also:
- Constant Field Values
PROJECT_SELECTED
public static final int PROJECT_SELECTED
- See Also:
- Constant Field Values
FILE_ADDED
public static final int FILE_ADDED
- See Also:
- Constant Field Values
FILE_REMOVED
public static final int FILE_REMOVED
- See Also:
- Constant Field Values
FILE_OPENED
public static final int FILE_OPENED
- See Also:
- Constant Field Values
FILE_CLOSED
public static final int FILE_CLOSED
- See Also:
- Constant Field Values
FILE_SELECTED
public static final int FILE_SELECTED
- See Also:
- Constant Field Values
FILE_CHANGED
public static final int FILE_CHANGED
- See Also:
- Constant Field Values
ATTRIBUTE_SET
public static final int ATTRIBUTE_SET
- See Also:
- Constant Field Values
ATTRIBUTE_UNSET
public static final int ATTRIBUTE_UNSET
- See Also:
- Constant Field Values
OTHER
public static final int OTHER
- See Also:
- Constant Field Values
event
private int event
projectManager
private ProjectManager projectManager
project
private Project project
target
private java.lang.Object target
| Constructor Detail |
ProjectEvent
public ProjectEvent(ProjectManager projectManager, int eventType)
- Creates a new ProjectEvent, registering the parent
ProjectManagerof this event and the type of the event (the event is assumed to be specific to theProjectManager's currently activeProject.
ProjectEvent
public ProjectEvent(ProjectManager projectManager, Project project, int eventType)
- Creates a new ProjectEvent, registering the parent
ProjectManagerof this event, the type of the event and the relevantProject.
ProjectEvent
public ProjectEvent(ProjectManager projectManager, Project project, int eventType, java.lang.Object target)
- Creates a new ProjectEvent, registering the parent
ProjectManagerof this event, the type of the event, the relevantProject, and the target of the event.
| Method Detail |
getWhat
public int getWhat()
- Returns the type of event.
getProjectManager
public ProjectManager getProjectManager()
- Returns the
ProjectManagerfrom which the event was fired.
getProject
public Project getProject()
- Returns the
Projectfor which theProjectEventwas generated.
getTarget
public java.lang.Object getTarget()
- Returns the
Objecttarget of the event; if this is a "project" event, then the result should be the sameProjectas returned bygetProject; if this is a "file" event, the result should be the affectedFile; if this is an "attribute" event, the result should be the affectedStringattribute name.
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> org >> jext >> [ project overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.jext.project.ProjectEvent