|
|
|
|
@ -92,6 +92,11 @@ public abstract class PreCallDialog
|
|
|
|
|
*/
|
|
|
|
|
private JLabel callLabelAddress;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Call label for account.
|
|
|
|
|
*/
|
|
|
|
|
private JLabel callLabelAccount;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The label that will contain the peer image.
|
|
|
|
|
*/
|
|
|
|
|
@ -213,6 +218,8 @@ private Window createPreCallWindow( String title,
|
|
|
|
|
= HudWidgetFactory.createHudComboBox(
|
|
|
|
|
new DefaultComboBoxModel(accounts));
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
callLabelAccount = HudWidgetFactory.createHudLabel("");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
@ -228,6 +235,8 @@ private Window createPreCallWindow( String title,
|
|
|
|
|
|
|
|
|
|
if (accounts != null)
|
|
|
|
|
accountsCombo = new JComboBox(accounts);
|
|
|
|
|
else
|
|
|
|
|
callLabelAccount = new JLabel();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (text != null)
|
|
|
|
|
@ -257,6 +266,9 @@ private void initComponents()
|
|
|
|
|
callLabelAddress.putClientProperty("html.disable", Boolean.TRUE);
|
|
|
|
|
callLabelImage.putClientProperty("html.disable", Boolean.TRUE);
|
|
|
|
|
|
|
|
|
|
if(callLabelAccount != null)
|
|
|
|
|
callLabelAccount.putClientProperty("html.disable", Boolean.TRUE);
|
|
|
|
|
|
|
|
|
|
JComponent buttonsPanel = new CallToolBar(false, true);
|
|
|
|
|
|
|
|
|
|
callButton = new SIPCommButton();
|
|
|
|
|
@ -298,10 +310,18 @@ private void initComponents()
|
|
|
|
|
labelsPanel.setLayout(new BoxLayout(labelsPanel, BoxLayout.Y_AXIS));
|
|
|
|
|
callLabelDisplayName.setAlignmentX(JLabel.LEFT_ALIGNMENT);
|
|
|
|
|
labelsPanel.add(callLabelDisplayName);
|
|
|
|
|
|
|
|
|
|
labelsPanel.add(Box.createVerticalStrut(3));
|
|
|
|
|
callLabelAddress.setAlignmentX(JLabel.LEFT_ALIGNMENT);
|
|
|
|
|
labelsPanel.add(callLabelAddress);
|
|
|
|
|
|
|
|
|
|
if(callLabelAccount != null)
|
|
|
|
|
{
|
|
|
|
|
labelsPanel.add(Box.createVerticalStrut(3));
|
|
|
|
|
callLabelAccount.setAlignmentX(JLabel.LEFT_ALIGNMENT);
|
|
|
|
|
labelsPanel.add(callLabelAccount);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (accountsCombo != null)
|
|
|
|
|
{
|
|
|
|
|
labelsPanel.add(Box.createVerticalStrut(3));
|
|
|
|
|
@ -314,8 +334,8 @@ private void initComponents()
|
|
|
|
|
// Loads skin resources.
|
|
|
|
|
loadSkin();
|
|
|
|
|
|
|
|
|
|
JPanel rightPanel = new TransparentPanel(
|
|
|
|
|
new FlowLayout(FlowLayout.CENTER, 0, 0));
|
|
|
|
|
JPanel rightPanel = new TransparentPanel();
|
|
|
|
|
rightPanel.setLayout(new BoxLayout(rightPanel, BoxLayout.Y_AXIS));
|
|
|
|
|
|
|
|
|
|
rightPanel.setBorder(BorderFactory.createEmptyBorder(6, 0, 0, 0));
|
|
|
|
|
|
|
|
|
|
@ -329,7 +349,10 @@ private void initComponents()
|
|
|
|
|
|
|
|
|
|
buttonsPanel.add(hangupButton);
|
|
|
|
|
|
|
|
|
|
buttonsPanel.setAlignmentX(Component.CENTER_ALIGNMENT);
|
|
|
|
|
rightPanel.add(Box.createVerticalGlue());
|
|
|
|
|
rightPanel.add(buttonsPanel);
|
|
|
|
|
rightPanel.add(Box.createVerticalGlue());
|
|
|
|
|
mainPanel.add(rightPanel, BorderLayout.EAST);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -416,8 +439,15 @@ public void dispose()
|
|
|
|
|
*/
|
|
|
|
|
public JLabel[] getCallLabels()
|
|
|
|
|
{
|
|
|
|
|
return new JLabel[]{
|
|
|
|
|
if(callLabelAccount == null)
|
|
|
|
|
return new JLabel[]{
|
|
|
|
|
callLabelImage, callLabelDisplayName, callLabelAddress};
|
|
|
|
|
else
|
|
|
|
|
return new JLabel[]{
|
|
|
|
|
callLabelImage,
|
|
|
|
|
callLabelDisplayName,
|
|
|
|
|
callLabelAddress,
|
|
|
|
|
callLabelAccount};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|