Class 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 inserted
      static int CARD_REMOVED
      a card was removed
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      CardTerminalEvent​(CardTerminal terminal, int id, int slot)
      Constructs an object of this class.
    • Constructor Detail

      • CardTerminalEvent

        public CardTerminalEvent​(CardTerminal terminal,
                                 int id,
                                 int slot)
        Constructs an object of this class.
        Parameters:
        terminal - the object that created this event
        id - 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 class OpenCardEvent
        Returns:
        a string representation of this object