public abstract class AbstractControls
extends java.lang.Object
implements javax.media.Controls
Controls.getControls()
.Constructor and Description |
---|
AbstractControls() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
getControl(javax.media.Controls controlsImpl,
java.lang.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. |
java.lang.Object |
getControl(java.lang.String controlType)
Implements
Controls.getControl(String) . |
static <T> T |
queryInterface(javax.media.Controls controlsImpl,
java.lang.Class<T> controlType)
Returns an instance of a specific Class which is either a
control of a specific Controls implementation or the
Controls implementation itself if it is an instance of the
specified Class.
|
static java.lang.Object |
queryInterface(javax.media.Controls controlsImpl,
java.lang.String controlType)
Returns an instance of a specific Class which is either a
control of a specific Controls implementation or the
Controls implementation itself if it is an instance of the
specified Class.
|
public java.lang.Object getControl(java.lang.String controlType)
Controls.getControl(String)
. Invokes
Controls.getControls()
and then looks for a control of the specified type
in the returned array of controls.getControl
in interface javax.media.Controls
controlType
- a String value naming the type of the control
of this instance to be retrievedpublic static java.lang.Object getControl(javax.media.Controls controlsImpl, java.lang.String controlType)
Controls.getControls()
; otherwise, returns null.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 retrievedpublic static <T> T queryInterface(javax.media.Controls controlsImpl, java.lang.Class<T> controlType)
getControl(Controls, String)
in querying the specified
Controls implementation about a control of the specified
Class but is different in looking at the type hierarchy of the
Controls implementation for the specified Class.controlsImpl
- the Controls implementation to querycontrolType
- the runtime type of the instance to be returnedpublic static java.lang.Object queryInterface(javax.media.Controls controlsImpl, java.lang.String controlType)
getControl(Controls, String)
in querying the specified
Controls implementation about a control of the specified
Class but is different in looking at the type hierarchy of the
Controls implementation for the specified Class.controlsImpl
- the Controls implementation to querycontrolType
- the runtime type of the instance to be returned
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.