Class 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
    • Constructor Detail

      • PackageEvent

        public PackageEvent​(PackageEvent.EventType eventType,
                            bluej.pkgmgr.Package pkg)
        Parameters:
        eventType - one of the PackageEvent.EventType values for this PackageEvent.
        pkg - a Package object that raised this PackageEvent.
    • Method Detail

      • 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 class java.lang.Object