stella
Class TargetSelectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by stella.TargetSelectionEvent
All Implemented Interfaces:
Serializable

public class TargetSelectionEvent
extends EventObject

The event generated during a target selection process. It is passed to registered TargetSelectionListeners by the TargetSelectionCaster that generated this event.

See Also:
Serialized Form

Field Summary
private  TargetDefinition target
          The selected target.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
TargetSelectionEvent(Object src, TargetDefinition td)
          Constructs a new target selection event that holds the target.
 
Method Summary
 TargetDefinition getSelectedTarget()
          Returns the target this selection event was generated on.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

target

private TargetDefinition target
The selected target.

Constructor Detail

TargetSelectionEvent

public TargetSelectionEvent(Object src,
                            TargetDefinition td)
Constructs a new target selection event that holds the target.

Method Detail

getSelectedTarget

public TargetDefinition getSelectedTarget()
Returns the target this selection event was generated on.