Package bluej.extensions2.event
Interface ClassListener
-
public interface ClassListener
This interface allows an extension to listen for class events.Events type are one of the
ClassEvent.EventType
values.- Author:
- Davin McCall
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
classNameChanged(ClassEvent event)
This method will be called when a class has been renamed.void
classRemoved(ClassEvent event)
This method will be called when a class has been removed.void
classStateChanged(ClassEvent event)
This method will be called when a class state changed.
-
-
-
Method Detail
-
classStateChanged
void classStateChanged(ClassEvent event)
This method will be called when a class state changed. This means that the class source was changed so that the class is now uncompiled, or the class was compiled, or the class was renamed. If a long operation must be performed the extension should start a Thread.- Parameters:
event
- aClassEvent
object of typeClassEvent.EventType.STATE_CHANGED
.
-
classNameChanged
void classNameChanged(ClassEvent event)
This method will be called when a class has been renamed. If a long operation must be performed the extension should start a Thread.- Parameters:
event
- aClassEvent
object of typeClassEvent.EventType.CHANGED_NAME
.
-
classRemoved
void classRemoved(ClassEvent event)
This method will be called when a class has been removed. The removed class can be acquired from the passed inClassEvent
object. If a long operation must be performed the extension should start a Thread.- Parameters:
event
- aClassEvent
object of typeClassEvent.EventType.REMOVED
.
-
-