FileDocCategorySizeDatePackage
SilenceSuppressionAdapter.javaAPI DocJMF 2.1.1e2835Mon May 12 12:20:56 BST 2003com.sun.media.controls

SilenceSuppressionAdapter

public class SilenceSuppressionAdapter extends Object implements SilenceSuppressionControl
Implementation for SilenceSuppressionControl

Fields Summary
protected Codec
owner
protected boolean
silenceSuppression
protected boolean
isSetable
Component
component
String
CONTROL_STRING
Constructors Summary
public SilenceSuppressionAdapter(Codec newOwner, boolean newSilenceSuppression, boolean newIsSetable)



           
        silenceSuppression= newSilenceSuppression;
        owner = newOwner;
        isSetable = newIsSetable;
    
Methods Summary
public java.awt.ComponentgetControlComponent()

        if (component ==null ) {
            Panel componentPanel=new Panel();
            componentPanel.setLayout(new BorderLayout() );
            componentPanel.add("Center",new Label(CONTROL_STRING,Label.CENTER) );
            Checkbox cb=new Checkbox(null,null,silenceSuppression);
            cb.setEnabled(isSetable);
            cb.addItemListener( (ItemListener) new SilenceSuppresionAdapterListener(cb) );

            componentPanel.add("East",cb );
            componentPanel.invalidate();
            component=componentPanel;

        }
        return (Component)component;
    
public booleangetSilenceSuppression()
Returns if silence suppression was enabled

return
if silence suppression was enabled

        return silenceSuppression;
    
public booleanisSilenceSuppressionSupported()
Returns if silence suppression is supported

return
if silence suppression is supported

         return silenceSuppression;
    
public booleansetSilenceSuppression(boolean newSilenceSuppression)
Sets the silence suppression mode. Decoders ignore this method.

param
newSilenceSuppression the requested silence suppression mode
return
the actual still image transmission mode that was set

        return silenceSuppression;