From a7077acd05bfa3623d242838b8f12ae192e31e87 Mon Sep 17 00:00:00 2001
From: Lyubomir Marinov CallPeer known to a specific
- * OperationSetBasicTelephony to have a specific address.
+ * Returns the first CallPeer known to a specific
+ * OperationSetBasicTelephony to have a specific address.
*
- * @param telephony the OperationSetBasicTelephony to have its
- * CallPeers examined in search for one which
- * has a specific address
- * @param address the address to locate the associated
- * CallPeer of
+ * @param telephony the OperationSetBasicTelephony to have its
+ * CallPeers examined in search for one which has a specific
+ * address
+ * @param address the address to locate the associated CallPeer of
+ * @return the first CallPeer known to the specified
+ * OperationSetBasicTelephony to have the specified address
*/
- @SuppressWarnings("unchecked") //pfff ... well we can't make OpSetTelephony
- //return a non-raw type iterator as it would break descendants that are using
- //it with Call extensions. Someone would have to explain to me one day
- //why java complains in such cases.
private CallPeer findCallPeer(
OperationSetBasicTelephony telephony, String address)
{
- for (IteratorFrame (if any) is often used as the owner of
* Dialogs opened by the specified Component in
* order to provide natural Frame ownership.
- *
Frame in the ancestor
- * Component hierarchy of the specified
- * Component; null, if no such
- * Frame was located
+ * Component hierarchy of the specified Component;
+ * null, if no such Frame was located
*/
public static Frame getFrame(Component component)
{
@@ -268,9 +251,8 @@ public static Frame getFrame(Component component)
Container container = component.getParent();
if (container instanceof Frame)
- {
return (Frame) container;
- }
+
component = container;
}
return null;