com.bramosystems.oss.player.util.client
Class BrowserPlugin

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.bramosystems.oss.player.util.client.BrowserPlugin

public class BrowserPlugin
extends com.google.gwt.core.client.JavaScriptObject

Utility class that wraps the navigator.plugins information of the clients' browser

Author:
Sikirulai Braheem

Constructor Summary
protected BrowserPlugin()
          Create a new BrowserPlugin object
 
Method Summary
 String getDescription()
          Returns the description of the plug-in
 String getFileName()
          Returns the plug-in filename on the client
 MimeType getMimeType(int index)
          Returns the mime type at the specified index
 int getMimeTypeCount()
          Returns the number of mime-types supported by the plug-in
 String getName()
          Returns the name of the plug-in
static com.google.gwt.core.client.JsArray<BrowserPlugin> getPlugins()
          Returns an array of all plug-in's on the client
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BrowserPlugin

protected BrowserPlugin()
Create a new BrowserPlugin object

Method Detail

getDescription

public final String getDescription()
Returns the description of the plug-in

Returns:
the description of the plug-in

getName

public final String getName()
Returns the name of the plug-in

Returns:
the name of the plug-in

getFileName

public final String getFileName()
Returns the plug-in filename on the client

Returns:
the filename of the plug-in

getMimeTypeCount

public final int getMimeTypeCount()
Returns the number of mime-types supported by the plug-in

Returns:
the number of supported mime-types

getMimeType

public final MimeType getMimeType(int index)
Returns the mime type at the specified index

Parameters:
index - the index
Returns:
the MimeType

getPlugins

public static final com.google.gwt.core.client.JsArray<BrowserPlugin> getPlugins()
Returns an array of all plug-in's on the client

Returns:
an array of BrowserPlugin's


Copyright © 2009-2011. All Rights Reserved.