Package opencard.core.event
Class CardTerminalEvent
- java.lang.Object
-
- java.util.EventObject
-
- opencard.core.event.OpenCardEvent
-
- opencard.core.event.CardTerminalEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class CardTerminalEvent extends OpenCardEvent
A CardTerminalEvent signals the insertion or removal of a smart card.- Author:
- Dirk Husemann (hud@zurich.ibm.com), Stephan Breideneich (sbreiden@de.ibm.com), Mike Wendler (mwendler@de.ibm.com)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
CARD_INSERTED
a card was insertedstatic int
CARD_REMOVED
a card was removed-
Fields inherited from class opencard.core.event.OpenCardEvent
id
-
-
Constructor Summary
Constructors Constructor Description CardTerminalEvent(CardTerminal terminal, int id, int slot)
Constructs an object of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CardTerminal
getCardTerminal()
Gets the CardTerminal associated with the event.Slot
getSlot()
Deprecated.use getSlotID() insteadint
getSlotID()
java.lang.String
toString()
Gets a printable representation of this object.
-
-
-
Field Detail
-
CARD_INSERTED
public static final int CARD_INSERTED
a card was inserted- See Also:
- Constant Field Values
-
CARD_REMOVED
public static final int CARD_REMOVED
a card was removed- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CardTerminalEvent
public CardTerminalEvent(CardTerminal terminal, int id, int slot)
Constructs an object of this class.- Parameters:
terminal
- the object that created this eventid
- one of [CARD_INSERTED/CARD_REMOVED]slot
- the slot where a card was inserted or removed
-
-
Method Detail
-
getCardTerminal
public CardTerminal getCardTerminal()
Gets the CardTerminal associated with the event.- Returns:
- the terminal causing this event.
-
getSlot
public Slot getSlot()
Deprecated.use getSlotID() instead- Returns:
- the Slot object where a card was inserted or removed.
-
getSlotID
public int getSlotID()
- Returns:
- the slot number where a card was inserted or removed.
-
toString
public java.lang.String toString()
Description copied from class:OpenCardEvent
Gets a printable representation of this object.- Overrides:
toString
in classOpenCardEvent
- Returns:
- a string representation of this object
-
-