org.lirc
Class LIRCEvent
java.lang.Object
|
+--java.util.EventObject
|
+--org.lirc.LIRCEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class LIRCEvent
- extends java.util.EventObject
An event that represents a recevied IR signal (a button press
or repeat).
- Version:
- $Revision: 1.2 $
- Author:
- Bjorn Bringert (bjorn@mumblebee.com)
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
LIRCEvent(java.lang.Object source,
int repeat,
java.lang.String name,
java.lang.String remote)
Creates a new LIRCEvent. |
Method Summary |
java.lang.String |
getName()
Gets name of the remote button that was pressed. |
java.lang.String |
getRemote()
Gets name of the remote control. |
int |
getRepeat()
Gets the repeat count of this signal. |
java.lang.String |
toString()
Gets a string representation of this event. |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LIRCEvent
public LIRCEvent(java.lang.Object source,
int repeat,
java.lang.String name,
java.lang.String remote)
- Creates a new LIRCEvent.
- Parameters:
source
- the object that created this eventrepeat
- the repeat countname
- name of the button pressremote
- name of the remote
getRepeat
public int getRepeat()
- Gets the repeat count of this signal.
- Returns:
- 0 for the first signal, 1 for the second etc.
getName
public java.lang.String getName()
- Gets name of the remote button that was pressed.
getRemote
public java.lang.String getRemote()
- Gets name of the remote control.
toString
public java.lang.String toString()
- Gets a string representation of this event.
- Overrides:
toString
in class java.util.EventObject