com.bramosystems.oss.player.core.client.spi
Class PlayerElement

java.lang.Object
  extended by com.bramosystems.oss.player.core.client.spi.PlayerElement

public class PlayerElement
extends Object

Low level helper class to create DOM-style objects for player widgets.

This class is tied to the PlayerProviderFactory to provide browser-specific implementations via deferred binding.

Since:
1.3
Author:
Sikirulai Braheem
See Also:
PlayerWidget

Nested Class Summary
static class PlayerElement.Type
          Enumeration of HTML object element types
 
Constructor Summary
PlayerElement(PlayerElement.Type type, String id, String typeOrClassId)
          Creates a new PlayerElement object
 
Method Summary
 void addParam(String name, String value)
          Adds the specified parameters to the element.
 com.google.gwt.dom.client.Element getElement()
          Returns the DOM element representation of this player object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlayerElement

public PlayerElement(PlayerElement.Type type,
                     String id,
                     String typeOrClassId)
Creates a new PlayerElement object

Parameters:
type - the element type
id - the DOM ID of the element
typeOrClassId - the HTML type (mime-type), or the CLASSID (if in Internet Explorer) of the element
Method Detail

addParam

public final void addParam(String name,
                           String value)
Adds the specified parameters to the element. The parameters are used as HTML params tags in the eventual HTML DOM object

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

getElement

public com.google.gwt.dom.client.Element getElement()
Returns the DOM element representation of this player object

Returns:
the DOM element representation


Copyright © 2009-2011. All Rights Reserved.