Java DTV API 1.3
18-Nov-2009

com.sun.dtv.smartcard
Class CardTerminalEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.sun.dtv.smartcard.CardTerminalEvent
All Implemented Interfaces:
Serializable

public abstract class CardTerminalEvent
extends EventObject

Defines an event object that inform listeners about state changes that occurred in a CardTerminal.

See Also:
Serialized Form

Field Summary
static int CARD_INSERTED
          Corresponds to the event when a card has been inserted.
static int CARD_MUTE
          Corresponds to the event when a card is mute.
static int CARD_NOT_PRESENT
          Corresponds to the event when no card is present.
static int CARD_REMOVED
          Corresponds to the event when a card is removed.
static int CARD_TERMINAL_REMOVED
          Corresponds to the event when the card terminal is removed.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CardTerminalEvent(CardTerminal sourceTerminal)
          Construct a CardTerminalEvent from the source.
 
Method Summary
 CardTerminal getCardTerminal()
          Returns the CardTerminal object where this event occurred.
 int getEventType()
          Returns the type of event that happened at the physical card terminal.
 
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

CARD_REMOVED

public static final int CARD_REMOVED
Corresponds to the event when a card is removed.

See Also:
Constant Field Values

CARD_INSERTED

public static final int CARD_INSERTED
Corresponds to the event when a card has been inserted.

See Also:
Constant Field Values

CARD_MUTE

public static final int CARD_MUTE
Corresponds to the event when a card is mute.

See Also:
Constant Field Values

CARD_NOT_PRESENT

public static final int CARD_NOT_PRESENT
Corresponds to the event when no card is present.

See Also:
Constant Field Values

CARD_TERMINAL_REMOVED

public static final int CARD_TERMINAL_REMOVED
Corresponds to the event when the card terminal is removed.

See Also:
Constant Field Values
Constructor Detail

CardTerminalEvent

public CardTerminalEvent(CardTerminal sourceTerminal)
Construct a CardTerminalEvent from the source.

Parameters:
sourceTerminal - the source of the event.
Method Detail

getCardTerminal

public CardTerminal getCardTerminal()
Returns the CardTerminal object where this event occurred.

Returns:
the CardTerminal object where the event happened.

getEventType

public int getEventType()
Returns the type of event that happened at the physical card terminal. MUST be one the defined pre-defined integer values in this class.

Returns:
the event type

Java DTV API 1.3
18-Nov-2009

Copyright © 2008-2009 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved.

U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.Products covered by and information contained in this service manual are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially designated nationals lists is strictly prohibited.

DOCUMENTATION IS PROVIDED AS IS AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.

Use of this document is subject to license terms.