@ -27,7 +27,7 @@ public class HoldButton
/ * *
* Initializes a new < tt > HoldButton < / tt > instance which is to put a specific
* < tt > CallP articipant < / tt > on / off hold .
* < tt > CallP eer < / tt > on / off hold .
*
* @param call the < tt > Call < / tt > to be associated with
* the new instance and to be put on / off hold upon performing its
@ -40,7 +40,7 @@ public HoldButton(Call call)
/ * *
* Initializes a new < tt > HoldButton < / tt > instance which is to put a specific
* < tt > CallP articipant < / tt > on / off hold .
* < tt > CallP eer < / tt > on / off hold .
*
* @param call the < tt > Call < / tt > to be associated with
* the new instance and to be put on / off hold upon performing
@ -85,7 +85,7 @@ public HoldButton( Call call,
/ * *
* Represents the model of a toggle button that puts an associated
* < tt > CallP articipant < / tt > on / off hold .
* < tt > CallP eer < / tt > on / off hold .
* /
private static class HoldButtonModel
extends ToggleButtonModel
@ -93,14 +93,14 @@ private static class HoldButtonModel
{
/ * *
* The < tt > CallP articipant < / tt > whose state is being adapted for the
* The < tt > CallP eer < / tt > whose state is being adapted for the
* purposes of depicting as a toggle button .
* /
private final Call call ;
/ * *
* Initializes a new < tt > HoldButtonModel < / tt > instance to represent
* the state of a specific < tt > CallP articipant < / tt > as a toggle
* the state of a specific < tt > CallP eer < / tt > as a toggle
* button .
*
* @param call
@ -122,19 +122,18 @@ public void actionPerformed(ActionEvent evt)
( OperationSetBasicTelephony ) call . getProtocolProvider ( )
. getOperationSet ( OperationSetBasicTelephony . class ) ;
Iterator < CallPeer > participants
= call . getCallPeers ( ) ;
Iterator < CallPeer > peers = call . getCallPeers ( ) ;
while ( p articipant s. hasNext ( ) )
while ( p eer s. hasNext ( ) )
{
CallPeer callP articipant = participant s. next ( ) ;
CallPeer callP eer = peer s. next ( ) ;
try
{
if ( isSelected ( ) )
telephony . putOnHold ( callP articipant ) ;
telephony . putOnHold ( callP eer ) ;
else
telephony . putOffHold ( callP articipant ) ;
telephony . putOffHold ( callP eer ) ;
}
catch ( OperationFailedException ex )
{