public class DTMFHandler
extends java.lang.Object
implements java.awt.KeyEventDispatcher
Modifier and Type | Class and Description |
---|---|
static class |
DTMFHandler.DTMFToneInfo
DTMF extended information.
|
Modifier and Type | Field and Description |
---|---|
static DTMFHandler.DTMFToneInfo[] |
AVAILABLE_TONES
All available DTMF tones and their properties such as images for buttons
and sounds to be played during send.
|
static java.lang.String |
DTMF_TONE_PREFIX
Default event type for DTMF tone.
|
Constructor and Description |
---|
DTMFHandler()
Creates DTMF handler for a call.
|
DTMFHandler(CallPanel callContainer)
Creates DTMF handler for a call.
|
Modifier and Type | Method and Description |
---|---|
void |
addParent(java.awt.Window parent)
Adds a Window on which key presses and releases are to be
monitored for the purposes of this DTMFHandler.
|
boolean |
dispatchKeyEvent(java.awt.event.KeyEvent e)
Dispatches a specific KeyEvent.
|
static void |
loadDefaults()
Load the defaults for DTMF tones.
|
void |
removeParent(java.awt.Window parent)
Removes a Window on which key presses and releases are to no
longer be monitored for the purposes of this DTMFHandler.
|
void |
startSendingDtmfTone(java.lang.String toneValue)
Sends a DTMF tone to the current DTMF operation set.
|
void |
stopSendingDtmfTone()
Stop sending DTMF tone.
|
public static final DTMFHandler.DTMFToneInfo[] AVAILABLE_TONES
public static final java.lang.String DTMF_TONE_PREFIX
public DTMFHandler()
public DTMFHandler(CallPanel callContainer)
callContainer
- the CallContainer where this handler is
registeredpublic static void loadDefaults()
public void addParent(java.awt.Window parent)
parent
- the Window on which key presses and releases are
to be monitored for the purposes of this DTMFHandlerpublic boolean dispatchKeyEvent(java.awt.event.KeyEvent e)
dispatchKeyEvent
in interface java.awt.KeyEventDispatcher
e
- the KeyEvent to be dispatchedpublic void removeParent(java.awt.Window parent)
parent
- the Window on which key presses and releases are
to no longer be monitored for the purposes of this DTMFHandlerpublic void startSendingDtmfTone(java.lang.String toneValue)
toneValue
- the value of the DTMF tone to send.public void stopSendingDtmfTone()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.