beowulf.event
Class DraggableComponentSelectionEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bybeowulf.event.DraggableComponentSelectionEvent
All Implemented Interfaces:
Serializable

public class DraggableComponentSelectionEvent
extends EventObject

This class is the event that is generated whenever a DraggableComponent is selected. The interested listener should be registered to the DraggableContainer.

Version:
1.0 - Feb 18, 2004
Author:
Andy Scukanec (ags at cs dot cornell dot edu)
See Also:
Serialized Form

Field Summary
static int COMPONENT_DESELECTED
          This field represents a flag value indicating that the component indicated was deselected.
static int COMPONENT_SELECTED
          This field represents a flag value indicating that the component indicated was selected.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DraggableComponentSelectionEvent(Object source, int newEventType, DraggableComponent newComponent)
          This is the only constructor available for this event.
 
Method Summary
 DraggableComponent getComponent()
          Returns the DraggableComponent whose status changed.
 int getEventType()
          Returns the event type of this event.
 String toString()
           
 
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

COMPONENT_SELECTED

public static final int COMPONENT_SELECTED
This field represents a flag value indicating that the component indicated was selected.

See Also:
Constant Field Values

COMPONENT_DESELECTED

public static final int COMPONENT_DESELECTED
This field represents a flag value indicating that the component indicated was deselected.

See Also:
Constant Field Values
Constructor Detail

DraggableComponentSelectionEvent

public DraggableComponentSelectionEvent(Object source,
                                        int newEventType,
                                        DraggableComponent newComponent)
This is the only constructor available for this event. The source of the event should be the container, the event type should be one of the flags defined in this class (component selected or deselected), and the DraggableComponent should be the appropriate component.

Parameters:
source - The DraggableContainer that generated the event.
newEventType - The event type. Either COMPONENT_SELECTED or COMPONENT_DESELECTED.
newComponent - The DraggableComponent whose status changed.
Method Detail

getComponent

public DraggableComponent getComponent()
Returns the DraggableComponent whose status changed.

Returns:
The DraggableComponent whose status changed.

getEventType

public int getEventType()
Returns the event type of this event.

Returns:
The event type of this event.

toString

public String toString()