Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main.call
Class ReceivedCallDialog

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.main.call.PreCallDialog
      extended by net.java.sip.communicator.impl.gui.main.call.ReceivedCallDialog
All Implemented Interfaces:
ActionListener, EventListener, CallListener, Skinnable

public class ReceivedCallDialog
extends PreCallDialog
implements ActionListener, CallListener, Skinnable

The dialog created when an incoming call is received.

Author:
Yana Stamcheva, Adam Netocny

Constructor Summary
ReceivedCallDialog(Call call, boolean video)
          Creates a ReceivedCallDialog by specifying the associated call.
 
Method Summary
 void callButtonPressed()
          Answers the call when the call button has been pressed.
 void callEnded(CallEvent event)
          When call is remotely ended we close this dialog.
 void hangupButtonPressed()
          Hangups the call when the call button has been pressed.
 void incomingCallReceived(CallEvent event)
          Indicates that an incoming call has been received.
 void loadSkin()
          Reloads icons.
 void outgoingCallCreated(CallEvent event)
          Indicates that an outgoing call has been created.
 void videoCallButtonPressed()
          Answers the call when the call button has been pressed.
 
Methods inherited from class net.java.sip.communicator.impl.gui.main.call.PreCallDialog
actionPerformed, dispose, getAccountsCombo, getCallLabels, isVisible, pack, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Constructor Detail

ReceivedCallDialog

public ReceivedCallDialog(Call call,
                          boolean video)
Creates a ReceivedCallDialog by specifying the associated call.

Parameters:
call - The associated with this dialog incoming call.
video - if the call is a video call
Method Detail

callEnded

public void callEnded(CallEvent event)
When call is remotely ended we close this dialog.

Specified by:
callEnded in interface CallListener
Parameters:
event - the CallEvent that has been triggered

incomingCallReceived

public void incomingCallReceived(CallEvent event)
Indicates that an incoming call has been received.

Specified by:
incomingCallReceived in interface CallListener
Parameters:
event - a CallEvent instance describing the new incoming call

outgoingCallCreated

public void outgoingCallCreated(CallEvent event)
Indicates that an outgoing call has been created.

Specified by:
outgoingCallCreated in interface CallListener
Parameters:
event - a CalldEvent instance describing the new incoming call.

loadSkin

public void loadSkin()
Reloads icons.

Specified by:
loadSkin in interface Skinnable
Overrides:
loadSkin in class PreCallDialog

callButtonPressed

public void callButtonPressed()
Answers the call when the call button has been pressed.

Specified by:
callButtonPressed in class PreCallDialog

videoCallButtonPressed

public void videoCallButtonPressed()
Answers the call when the call button has been pressed.

Specified by:
videoCallButtonPressed in class PreCallDialog

hangupButtonPressed

public void hangupButtonPressed()
Hangups the call when the call button has been pressed.

Specified by:
hangupButtonPressed in class PreCallDialog

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.