com.bluemarsh.jswat.breakpoint
Class GroupEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.bluemarsh.jswat.breakpoint.GroupEvent
All Implemented Interfaces:
java.io.Serializable

public class GroupEvent
extends java.util.EventObject

An event which indicates that a group has changed status.

Author:
Nathan Fiedler
See Also:
Serialized Form

Field Summary
protected  BreakpointGroup group
          The group that changed.
protected  int type
          The type of group change.
static int TYPE_ADDED
          The group added event type.
static int TYPE_DISABLED
          The group disabled event type.
static int TYPE_ENABLED
          The group enabled event type.
static int TYPE_REMOVED
          The group removed event type.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
GroupEvent(java.lang.Object source, BreakpointGroup group, int type)
          Constructs a new GroupEvent.
 
Method Summary
 BreakpointGroup getGroup()
          Get the group that changed.
 int getType()
          Get the group change type.
 java.lang.String toString()
          Returns a String representation of this GroupEvent.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_ADDED

public static final int TYPE_ADDED
The group added event type.

TYPE_DISABLED

public static final int TYPE_DISABLED
The group disabled event type.

TYPE_ENABLED

public static final int TYPE_ENABLED
The group enabled event type.

TYPE_REMOVED

public static final int TYPE_REMOVED
The group removed event type.

group

protected BreakpointGroup group
The group that changed.

type

protected int type
The type of group change.
Constructor Detail

GroupEvent

public GroupEvent(java.lang.Object source,
                  BreakpointGroup group,
                  int type)
Constructs a new GroupEvent.
Parameters:
source - Source of this event.
bp - Group that changed.
type - Type of group change.
Method Detail

getGroup

public BreakpointGroup getGroup()
Get the group that changed.
Returns:
group request.

getType

public int getType()
Get the group change type.
Returns:
group change type (one of TYPE_* from GroupEvent).

toString

public java.lang.String toString()
Returns a String representation of this GroupEvent.
Overrides:
toString in class java.util.EventObject
Returns:
string representation of this GroupEvent.