org.chenillekit.tapestry.core.components
Class ProtoTube

java.lang.Object
  extended by org.chenillekit.tapestry.core.components.ProtoTube
All Implemented Interfaces:
ClientElement

@SupportsInformalParameters
@Import(library={"prototube/prototube.js","prototube/swfobject.js","${tapestry.scriptaculous}/effects.js"},
        stylesheet="prototube/prototube.css")
public class ProtoTube
extends Object
implements ClientElement

ProtoTube can be used to embed YouTube videos and the respective thumbnails in pages of any web site.

This component generates HTML to embed a player to show the video in other Web site pages. The component may also generate HTML to display thumbnail preview of the videos and display video in a overlay viewer. ProtoTube is unobtrusive: when javascript is turned off, the page still delivers its core functionality and is just displayed the link to the Video page on the YouTube site.

Would seem to be compatible with IE6, IE7, IE8, Firefox 3.09, Safari 3.2.2, Opera 9.61.

Configuration Options

Overlay and image preview options:

Player options

Version:
$Id: ProtoTube.java 674 2010-07-29 12:47:25Z homburgs $

Constructor Summary
ProtoTube()
           
 
Method Summary
protected  void configure(JSONObject config)
          Invoked to allow subclasses to further configure the parameters passed to this component's javascript options.
 String getClientId()
          Returns a unique id for the element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtoTube

public ProtoTube()
Method Detail

configure

protected void configure(JSONObject config)
Invoked to allow subclasses to further configure the parameters passed to this component's javascript options. Subclasses may override this method to configure additional features of the ProtoTube.

This implementation does nothing.

Configuration Options

Overlay and image preview options:

Player options

Parameters:
config - parameters object

getClientId

public String getClientId()
Returns a unique id for the element. This value will be unique for any given rendering of a page. This value is intended for use as the id attribute of the client-side element, and will be used with any DHTML/Ajax related JavaScript.

Specified by:
getClientId in interface ClientElement


Copyright © 2008-2011 ChenilleKit. All Rights Reserved.