net.java.sip.communicator.impl.neomedia.control
Class AbstractControls
java.lang.Object
net.java.sip.communicator.impl.neomedia.control.AbstractControls
- All Implemented Interfaces:
- javax.media.Controls
- Direct Known Subclasses:
- AbstractBufferStream, ControlsAdapter
public abstract class AbstractControls
- extends Object
- implements javax.media.Controls
Provides an abstract implementation of Controls which facilitates
implementers by requiring them to only implement
Controls.getControls().
- Author:
- Lubomir Marinov
|
Method Summary |
static Object |
getControl(javax.media.Controls controlsImpl,
String controlType)
Gets the control of a specific Controls implementation of a
specific type if such a control is made available through
Controls.getControls(); otherwise, returns null. |
Object |
getControl(String controlType)
Implements Controls.getControl(String). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.media.Controls |
getControls |
AbstractControls
public AbstractControls()
getControl
public Object getControl(String controlType)
- Implements
Controls.getControl(String). Invokes
Controls.getControls() and then looks for a control of the specified type
in the returned array of controls.
- Specified by:
getControl in interface javax.media.Controls
- Parameters:
controlType - a String value naming the type of the control
of this instance to be retrieved
- Returns:
- an Object which represents the control of this instance
with the specified type
getControl
public static Object getControl(javax.media.Controls controlsImpl,
String controlType)
- Gets the control of a specific Controls implementation of a
specific type if such a control is made available through
Controls.getControls(); otherwise, returns null.
- Parameters:
controlsImpl - the implementation of Controls which is to
be queried for its list of controls so that the control of the specified
type can be looked forcontrolType - a String value which names the type of the
control to be retrieved
- Returns:
- an Object which represents the control of
controlsImpl of the specified controlType if such a
control is made available through Controls#getControls();
otherwise, null
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.