FileDocCategorySizeDatePackage
Plugin.javaAPI DocAndroid 1.5 API3430Wed May 06 22:41:56 BST 2009android.webkit

Plugin

public class Plugin extends Object
Represents a plugin (Java equivalent of the PluginPackageAndroid C++ class in libs/WebKitLib/WebKit/WebCore/plugins/android/)

Fields Summary
private String
mName
private String
mPath
private String
mFileName
private String
mDescription
private PreferencesClickHandler
mHandler
Constructors Summary
public Plugin(String name, String path, String fileName, String description)

        mName = name;
        mPath = path;
        mFileName = fileName;
        mDescription = description;
        mHandler = new DefaultClickHandler();
    
Methods Summary
public voiddispatchClickEvent(android.content.Context context)
Invokes the click handler for this plugin.

        if (mHandler != null) {
            mHandler.handleClickEvent(context);
        }
    
public java.lang.StringgetDescription()

        return mDescription;
    
public java.lang.StringgetFileName()

        return mFileName;
    
public java.lang.StringgetName()

        return mName;
    
public java.lang.StringgetPath()

        return mPath;
    
public voidsetClickHandler(android.webkit.Plugin$PreferencesClickHandler handler)

        mHandler = handler;
    
public voidsetDescription(java.lang.String description)

        mDescription = description;
    
public voidsetFileName(java.lang.String fileName)

        mFileName = fileName;
    
public voidsetName(java.lang.String name)

        mName = name;
    
public voidsetPath(java.lang.String path)

        mPath = path;
    
public java.lang.StringtoString()

        return mName;