Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

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

public abstract class PreCallDialog
extends Object
implements ActionListener, Skinnable

Author:
Yana Stamcheva

Constructor Summary
PreCallDialog(String title, boolean video, boolean existingCall)
          Creates an instanceof PreCallDialog by specifying the dialog title.
PreCallDialog(String title, String text, Object[] accounts)
          Creates an instanceof PreCallDialog by specifying the dialog title and the text to show.
PreCallDialog(String title, String text, Object[] accounts, boolean video, boolean existingCall)
          Creates an instanceof PreCallDialog by specifying the dialog title and the text to show.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Handles ActionEvents triggered by pressing the call or the hangup buttons.
abstract  void callButtonPressed()
          Indicates that the call button has been pressed.
 void dispose()
          Disposes this window.
 JComboBox getAccountsCombo()
          Returns the accounts combo box contained in this dialog.
 JLabel[] getCallLabels()
          Returns the labels contained in this dialog.
abstract  void hangupButtonPressed()
          Indicates that the hangup button has been pressed.
 boolean isVisible()
          Indicates if this dialog is currently visible.
 void loadSkin()
          Reloads icons.
abstract  void mergeCallButtonPressed()
          Indicates that the conference call button has been pressed.
 void pack()
          Packs the content of this dialog.
 void setVisible(boolean isVisible)
          Shows/hides this dialog.
abstract  void videoCallButtonPressed()
          Indicates that the video call button has been pressed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreCallDialog

public PreCallDialog(String title,
                     boolean video,
                     boolean existingCall)
Creates an instanceof PreCallDialog by specifying the dialog title.

Parameters:
title - the title of the dialog
video - if it is a video call
existingCall - true to answer call in an existing call

PreCallDialog

public PreCallDialog(String title,
                     String text,
                     Object[] accounts)
Creates an instanceof PreCallDialog by specifying the dialog title and the text to show.

Parameters:
title - the title of the dialog
text - the text to show
accounts - the list of accounts to choose from

PreCallDialog

public PreCallDialog(String title,
                     String text,
                     Object[] accounts,
                     boolean video,
                     boolean existingCall)
Creates an instanceof PreCallDialog by specifying the dialog title and the text to show.

Parameters:
title - the title of the dialog
text - the text to show
accounts - the list of accounts to choose from
video - if it is a video call
existingCall - true to answer call in an existing call
Method Detail

pack

public void pack()
Packs the content of this dialog.


setVisible

public void setVisible(boolean isVisible)
Shows/hides this dialog.

Parameters:
isVisible - indicates if this dialog should be shown or hidden

isVisible

public boolean isVisible()
Indicates if this dialog is currently visible.

Returns:
true if this dialog is currently visible, false otherwise

dispose

public void dispose()
Disposes this window.


getCallLabels

public JLabel[] getCallLabels()
Returns the labels contained in this dialog. The first is the label that will contain the image. The second one is the one with the display name(s). The third is the one that will hold the peer address(s).

Returns:
the call label contained in this dialog

getAccountsCombo

public JComboBox getAccountsCombo()
Returns the accounts combo box contained in this dialog.

Returns:
the accounts combo box contained in this dialog

loadSkin

public void loadSkin()
Reloads icons.

Specified by:
loadSkin in interface Skinnable

actionPerformed

public void actionPerformed(ActionEvent e)
Handles ActionEvents triggered by pressing the call or the hangup buttons.

Specified by:
actionPerformed in interface ActionListener
Parameters:
e - The ActionEvent to handle.

callButtonPressed

public abstract void callButtonPressed()
Indicates that the call button has been pressed.


mergeCallButtonPressed

public abstract void mergeCallButtonPressed()
Indicates that the conference call button has been pressed.


hangupButtonPressed

public abstract void hangupButtonPressed()
Indicates that the hangup button has been pressed.


videoCallButtonPressed

public abstract void videoCallButtonPressed()
Indicates that the video call button has been pressed.


Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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