Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.tuneology.irremote
Interface IRComponent  view IRComponent download IRComponent.java

All Known Implementing Classes:
LircComponent

public interface IRComponent

This is the interface to an IRComponent. It detects infrared remote key events and generates action callbacks based on the key bindings.

Version:
$Id: IRComponent.java,v 1.1 2002/09/23 14:29:16 xnarf Exp $

Field Summary
static java.lang.String IR_BINDING
           
static java.lang.String IR_COMMAND
           
 
Method Summary
 void addActionListener(javax.swing.AbstractAction listener)
          Adds a callback.
 boolean contains(javax.swing.AbstractAction listener)
          Returns true if the listener is registered.
 java.lang.String[] getCommands()
          Returns an array of all the possible IR commands.
 javax.swing.AbstractAction getListener(java.lang.String action)
          Returns the listener registered to receive the specified action.
 java.util.Vector getListeners()
          Returns a vector of all event listeners.
 void removeActionListener(javax.swing.AbstractAction listener)
           
 

Field Detail

IR_COMMAND

public static final java.lang.String IR_COMMAND
See Also:
Constant Field Values

IR_BINDING

public static final java.lang.String IR_BINDING
See Also:
Constant Field Values
Method Detail

addActionListener

public void addActionListener(javax.swing.AbstractAction listener)
Adds a callback. The callback should have its IR_BINDING value set to a comma-separated list of commands that will cause the action to be run. If IR_BINDING is null, the callback is called for ALL actions.

It is an error to have more than one action for a command.


removeActionListener

public void removeActionListener(javax.swing.AbstractAction listener)

getListeners

public java.util.Vector getListeners()
Returns a vector of all event listeners.


getCommands

public java.lang.String[] getCommands()
Returns an array of all the possible IR commands.


getListener

public javax.swing.AbstractAction getListener(java.lang.String action)
Returns the listener registered to receive the specified action.


contains

public boolean contains(javax.swing.AbstractAction listener)
Returns true if the listener is registered.