Package bluej.extensions2.event
Class PackageEvent
- java.lang.Object
-
- bluej.extensions2.event.PackageEvent
-
- All Implemented Interfaces:
ExtensionEvent
public class PackageEvent extends java.lang.Object implements ExtensionEvent
This class encapsulates events on BlueJ packages.- Author:
- Clive Miller, University of Kent at Canterbury, 2002, Damiano Bolla, University of Kent at Canterbury, 2003
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PackageEvent.EventType
Types of package events.
-
Constructor Summary
Constructors Constructor Description PackageEvent(PackageEvent.EventType eventType, bluej.pkgmgr.Package pkg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PackageEvent.EventType
getEventType()
Gets the event type.BPackage
getPackage()
Gets the package on which the event occurred.java.lang.String
toString()
Returns a meaningful description of this event.
-
-
-
Constructor Detail
-
PackageEvent
public PackageEvent(PackageEvent.EventType eventType, bluej.pkgmgr.Package pkg)
- Parameters:
eventType
- one of thePackageEvent.EventType
values for this PackageEvent.pkg
- aPackage
object that raised this PackageEvent.
-
-
Method Detail
-
getEventType
public PackageEvent.EventType getEventType()
Gets the event type.- Returns:
- The
PackageEvent.EventType
value associated with this PackageEvent.
-
getPackage
public BPackage getPackage()
Gets the package on which the event occurred.- Returns:
- A
BPackage
object wrapping the package on which this event occurred.
-
toString
public java.lang.String toString()
Returns a meaningful description of this event.- Overrides:
toString
in classjava.lang.Object
-
-