solitaire
Class SolitaireEvent
java.lang.Object
java.util.EventObject
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
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) |
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 |
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 onpileID
- is unique pile id of pile in which card is stored
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