solitaire
Class SolitaireEvent

java.lang.Object
  extended by java.util.EventObject
      extended by solitaire.SolitaireEvent
All Implemented Interfaces:
java.io.Serializable

public class SolitaireEvent
extends java.util.EventObject

A semantic solitaire event storing both the card and the pile in which the card is stored for the card generating the event.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SolitaireEvent(GuiCardProxy card, java.lang.String pileID)
          Construct an event from a card and pile (presumably the card is in the pile but not enforced)
 
Method Summary
 GuiCardProxy getCard()
          Get card for event.
 java.lang.String getPileID()
          Get pile ID (unique) for event.
 
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
 

Constructor Detail

SolitaireEvent

public SolitaireEvent(GuiCardProxy card,
                      java.lang.String pileID)
Construct an event from a card and pile (presumably the card is in the pile but not enforced)

Parameters:
card - generates the event, e.g., clicked on
pileID - is unique pile id of pile in which card is stored
Method Detail

getCard

public GuiCardProxy getCard()
Get card for event.

Returns:
card used in constructing event, e.g., the one clicked on.

getPileID

public java.lang.String getPileID()
Get pile ID (unique) for event.

Returns:
the pile's id for pile constructing event, e.g., in which clicked-card lives