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

FormatAdapter

public class FormatAdapter extends Object implements ActionListener, FormatControl

Fields Summary
protected Format
currentFormat
protected Format[]
supportedFormats
protected boolean
enabled
protected boolean
formattable
protected boolean
enableable
Constructors Summary
public FormatAdapter(Format format, Format[] supported, boolean enabled, boolean formattable, boolean enableable)

	this.currentFormat = format;
	this.supportedFormats = supported;
	this.enabled = enabled;
	this.formattable = formattable;
	this.enableable = enableable;
    
Methods Summary
public voidactionPerformed(java.awt.event.ActionEvent ae)

	// TODO
    
public java.awt.ComponentgetControlComponent()

	// TODO
	return null;
    
public javax.media.FormatgetFormat()

	return currentFormat;
    
protected java.lang.StringgetName()

	return "Format";
    
public javax.media.Format[]getSupportedFormats()

	return supportedFormats;
    
public booleanisEnabled()

	return enabled;
    
public voidsetEnabled(boolean newEnable)

	if (enableable)
	    this.enabled = newEnable;
    
public javax.media.FormatsetFormat(javax.media.Format newFormat)

	if (formattable) {
	    currentFormat = newFormat;
	}
	return currentFormat;