com.google.gwt.widgetideas.client
Class EmbeddedObject.EmbeddedObjectInfo

java.lang.Object
  extended by com.google.gwt.widgetideas.client.EmbeddedObject.EmbeddedObjectInfo
Enclosing class:
EmbeddedObject

public class EmbeddedObject.EmbeddedObjectInfo
extends java.lang.Object

Information about this generic object.


Constructor Summary
EmbeddedObject.EmbeddedObjectInfo(int type, java.lang.String src)
          Create a new EmbeddedObjectInfo.
 
Method Summary
 java.lang.String getClassID()
          Get the class ID used to identify the ActiveX control.
 java.lang.String getCodeBase()
          Get the code base that identifies the location of the ActiveX control.
 java.lang.String getParam(java.lang.String name)
          Get a parameter value from the object.
 java.util.Map getParams()
          Get all of the parameters.
 java.lang.String getPluginsPage()
          Get the plugins page that the user can visit to download the required pluging.
 java.lang.String getSource()
          Get the source.
 int getType()
          Get the type.
 java.lang.String getTypeString()
          Get the string representation of the type.
 void setClassID(java.lang.String classID)
          Set the class ID used to identify the ActiveX control.
 void setCodeBase(java.lang.String codeBase)
          Set the code base that identifies the location of the ActiveX control.
 void setParam(java.lang.String name, java.lang.String value)
          Set a parameter value in the object.
 void setPluginsPage(java.lang.String pluginsPage)
          Set the page where the user can download the necessary plugin to use the embedded application.
 void setSource(java.lang.String src)
          Set the source of the embedded object.
 void setType(int type)
          Set the type of embedded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedObject.EmbeddedObjectInfo

public EmbeddedObject.EmbeddedObjectInfo(int type,
                                         java.lang.String src)
                                  throws java.lang.IllegalArgumentException
Create a new EmbeddedObjectInfo. The type should be a type of embedded object as described by the static TYPE_ variables in the EmbeddedObject class. If the type is not valid, an IllegalArgumentException is thrown.

Parameters:
type - the type of embedded element
src - the source of the content
Throws:
java.lang.IllegalArgumentException
Method Detail

getClassID

public java.lang.String getClassID()
Get the class ID used to identify the ActiveX control.

Returns:
the class ID

getCodeBase

public java.lang.String getCodeBase()
Get the code base that identifies the location of the ActiveX control.

Returns:
the code base

getParam

public java.lang.String getParam(java.lang.String name)
Get a parameter value from the object.

Parameters:
name - the parameter name
Returns:
the parameter value

getParams

public java.util.Map getParams()
Get all of the parameters.

Returns:
a map of all parameters

getPluginsPage

public java.lang.String getPluginsPage()
Get the plugins page that the user can visit to download the required pluging.

Returns:
the plugins download page

getSource

public java.lang.String getSource()
Get the source.

Returns:
the source

getType

public int getType()
Get the type.

Returns:
the type

getTypeString

public java.lang.String getTypeString()
Get the string representation of the type.

Returns:
the type represented as a string

setClassID

public void setClassID(java.lang.String classID)
Set the class ID used to identify the ActiveX control.

Parameters:
classID - the class ID

setCodeBase

public void setCodeBase(java.lang.String codeBase)
Set the code base that identifies the location of the ActiveX control.

Parameters:
codeBase - the code base

setParam

public void setParam(java.lang.String name,
                     java.lang.String value)
Set a parameter value in the object.

Parameters:
name - the parameter name
value - the parameter value

setPluginsPage

public void setPluginsPage(java.lang.String pluginsPage)
Set the page where the user can download the necessary plugin to use the embedded application. Set the plugings page to null to use the default pluging page.

Parameters:
pluginsPage - the plugins download page

setSource

public void setSource(java.lang.String src)
Set the source of the embedded object.

Parameters:
src - the new source

setType

public void setType(int type)
             throws java.lang.IllegalArgumentException
Set the type of embedded.

Parameters:
type - the new type.
Throws:
java.lang.IllegalArgumentException