|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bluej.extensions.event.ClassEvent
public class ClassEvent
This class encapsulates events which occur on BlueJ classes.
The following events can occur:
STATE_CHANGED: The compile state changed (either from uncompiled to compiled, or from compiled to uncompiled)
CHANGED_NAME: The class has changed name.
Field Summary | |
---|---|
static int |
CHANGED_NAME
|
static int |
STATE_CHANGED
|
Constructor Summary | |
---|---|
ClassEvent(int eventId,
BClass bClass,
boolean isCompiled)
Construct a new ClassEvent object for a STATE_CHANGED event. |
|
ClassEvent(int eventId,
BClass bClass,
java.lang.String oldName)
Construct a new ClassEvent object for a CHANGED_NAME event. |
Method Summary | |
---|---|
BClass |
getBClass()
Get the BClass object identifying the class on which the event occurred. |
int |
getEventId()
Get the event Id (one of STATE_CHANGED, CHANGED_NAME). |
java.lang.String |
getOldName()
Get the new class name. |
boolean |
isClassCompiled()
Check whether the class for which the event occurred is compiled. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int STATE_CHANGED
public static final int CHANGED_NAME
Constructor Detail |
---|
public ClassEvent(int eventId, BClass bClass, boolean isCompiled)
eventId
- The event identifier (STATE_CHANGED)isCompiled
- Whether the class is compiled or notpublic ClassEvent(int eventId, BClass bClass, java.lang.String oldName)
eventId
- The event identifier (CHANGED_NAME)bClass
- The class which was renamed (refers to the new name)Method Detail |
---|
public int getEventId()
public boolean isClassCompiled()
public BClass getBClass()
public java.lang.String getOldName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |