com.bramosystems.oss.player.uibinder.client
Class Flash

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by com.bramosystems.oss.player.uibinder.client.Flash
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget

public class Flash
extends com.google.gwt.user.client.ui.Composite

Wrapper class for SWFWidget providing UiBinder support.

Usage Example

 <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
      xmlns:g='urn:import:com.google.gwt.user.client.ui'
      xmlns:player='urn:import:com.bramosystems.oss.player.uibinder.client'>
         ...
         <player:Flash height='20px' width='100%' pluginVersion='9.0.0'
                 mediaURL='http://some-nice-flash.swf' />
         ...
 </ui:UiBinder>
 

Since:
1.1
Author:
Sikiru Braheem

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
Flash(String mediaURL, String height, String width, String pluginVersion)
          The constructor
 
Method Summary
 SWFWidget getSWFWidget()
          Returns the underlying SWFWidget object wrapped by this widget.
 void setFlashVars(String flashVars)
          Sets the flashVars property of the underlying Flash application
 void setParams(String params)
          Sets the comma-separated list of name/value pairs as HTML param tags on the widget
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Flash

@UiConstructor
public Flash(String mediaURL,
                           String height,
                           String width,
                           String pluginVersion)
The constructor

Parameters:
mediaURL - the URL of the media to playback
height - the height of the player (in CSS units)
width - the width of the player (in CSS units)
pluginVersion - the minimum version of the required Flash plugin
Method Detail

getSWFWidget

public SWFWidget getSWFWidget()
Returns the underlying SWFWidget object wrapped by this widget.

Returns:
the underlying SWFWidget

setParams

public void setParams(String params)
Sets the comma-separated list of name/value pairs as HTML param tags on the widget

Parameters:
params - comma-separated list of parameters

setFlashVars

public void setFlashVars(String flashVars)
Sets the flashVars property of the underlying Flash application

Parameters:
flashVars - the flashVars property


Copyright © 2009-2011. All Rights Reserved.