bluej.extensions.event
Class PackageEvent

java.lang.Object
  extended by bluej.extensions.event.PackageEvent
All Implemented Interfaces:
ExtensionEvent

public class PackageEvent
extends java.lang.Object
implements ExtensionEvent

This class encapsulates events on BlueJ packages.

Version:
$Id: PackageEvent.java 6215 2009-03-30 13:28:25Z polle $

Field Summary
static int PACKAGE_CLOSING
          This event occurs when a package is just about to be closed.
static int PACKAGE_OPENED
          This event occurs when a package has just been opened.
 
Constructor Summary
PackageEvent(int eventId, bluej.pkgmgr.Package pkg)
          Constructor for the PackageEvent.
 
Method Summary
 int getEvent()
          Returns the eventId of this event.
 BPackage getPackage()
          Returns the package associated with this event.
 java.lang.String toString()
          Returns a meaningful description of this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PACKAGE_OPENED

public static final int PACKAGE_OPENED
This event occurs when a package has just been opened.

See Also:
Constant Field Values

PACKAGE_CLOSING

public static final int PACKAGE_CLOSING
This event occurs when a package is just about to be closed.

See Also:
Constant Field Values
Constructor Detail

PackageEvent

public PackageEvent(int eventId,
                    bluej.pkgmgr.Package pkg)
Constructor for the PackageEvent.

Method Detail

getEvent

public int getEvent()
Returns the eventId of this event.


getPackage

public BPackage getPackage()
Returns the package associated with this event.


toString

public java.lang.String toString()
Returns a meaningful description of this event.

Overrides:
toString in class java.lang.Object


BlueJ homepage