com.guiseframework.platform.web
Class WebFlashDepictor<C extends Flash>

java.lang.Object
  extended by com.guiseframework.platform.AbstractDepictor<C>
      extended by com.guiseframework.platform.AbstractComponentDepictor<C>
          extended by com.guiseframework.platform.web.AbstractWebComponentDepictor<C>
              extended by com.guiseframework.platform.web.AbstractSimpleWebComponentDepictor<C>
                  extended by com.guiseframework.platform.web.WebFlashDepictor<C>
Type Parameters:
C - The type of component being depicted.
All Implemented Interfaces:
ComponentDepictor<C>, Depictor<C>, WebComponentDepictor<C>, WebDepictor<C>

public class WebFlashDepictor<C extends Flash>
extends AbstractSimpleWebComponentDepictor<C>

Strategy for rendering a Flash component as an XHTML <object> element.

Author:
Garret Wilson

Nested Class Summary
 
Nested classes/interfaces inherited from class com.guiseframework.platform.AbstractComponentDepictor
AbstractComponentDepictor.DepictedCompositeComponentListener
 
Nested classes/interfaces inherited from class com.guiseframework.platform.AbstractDepictor
AbstractDepictor.DepictedPropertyChangeListener
 
Field Summary
static java.lang.String ALLOW_SCRIPT_ACCESS_PARAMETER
          The "allowScriptAccess" parameter.
static java.lang.String ALLOW_SCRIPT_ACCESS_PARAMETER_ALWAYS
          The "allowScriptAccess" parameter "always" value.
static java.lang.String ALLOW_SCRIPT_ACCESS_PARAMETER_NEVER
          The "allowScriptAccess" parameter "never" value.
static java.lang.String ALLOW_SCRIPT_ACCESS_PARAMETER_SAME_DOMAIN
          The "allowScriptAccess" parameter "sameDomain" value.
static java.lang.String FLASH_CLASS_ID
          The Shockwave Flash player class ID.
static com.globalmentor.net.ContentType FLASH_CONTENT_TYPE
          The content type for Flash objects.
static java.lang.String MOVIE_PARAMETER
          The "movie" parameter.
static java.lang.String QUALITY_PARAMETER
          The "quality" parameter.
static java.lang.String QUALITY_PARAMETER_HIGH
          The "quality" parameter "high" value.
static java.net.URI SWFLASH_CAB_SECURE_URI
          The HTTPS URI to the swflash.cab file.
static java.net.URI SWFLASH_CAB_URI
          The URI to the swflash.cab file.
static java.lang.String SWFLASH_CAB_URI_VERSION_PARAMETER
          The URI parameter specifying the version of the swflash.cab file to retreive.
static java.lang.String WMODE_PARAMETER
          The "wmode" parameter.
 
Fields inherited from class com.guiseframework.platform.web.AbstractWebComponentDepictor
BODY_END_PATTERN, BODY_START_PATTERN
 
Fields inherited from class com.guiseframework.platform.AbstractComponentDepictor
childPropertyChangeListener
 
Fields inherited from interface com.guiseframework.platform.Depictor
GENERAL_PROPERTY
 
Constructor Summary
WebFlashDepictor()
          Default constructor using the XHTML <object> element.
 
Method Summary
protected  void depictBody()
          Renders the body of the component.
static java.net.URI getSWFlashCabURI(java.lang.String version, boolean secure)
          Returns A URI appropriate for accessing the swflash.cab file at an optionally secure location with the given version.
 
Methods inherited from class com.guiseframework.platform.web.AbstractSimpleWebComponentDepictor
depictBegin, getOuterStyles
 
Methods inherited from class com.guiseframework.platform.web.AbstractWebComponentDepictor
addFlowStyleIDs, decorateID, depict, depictEnd, getBackgroundColor, getBaseStyleIDs, getBodyStyleIDs, getBodyStyles, getColor, getDepictContext, getDepictName, getLabelStyles, getLabelStyles, getLabelStyles, getLocalName, getNamespaceURI, getPlatform, hasLabelContent, hasLabelContent, hasLabelContent, hasLabelContent, isEmptyElementAllowed, isMouseListener, writeBodyIDClassAttributes, writeClassAttribute, writeDirectionAttribute, writeDirectionAttribute, writeErrorMessage, writeFloatClear, writeIDAttribute, writeIDClassAttributes, writeLabel, writeLabelContent, writeLabelContent, writeLabelContent, writeLabelContent, writeLabelContent, writeLabelContent, writeParameterInputs, writeStyleAttribute, writeText
 
Methods inherited from class com.guiseframework.platform.AbstractComponentDepictor
depictChild, depictChildren, depictedObjectPropertyChange, getDepictedCompositeComponentListener, getErrorMessage, installed, processEvent, uninstalled
 
Methods inherited from class com.guiseframework.platform.AbstractDepictor
getDepictedObject, getDepictedPropertyChangeListener, getIgnoredProperties, getModifiedProperties, getSession, isDepicted, setDepicted, setPropertyModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.guiseframework.platform.Depictor
getDepictedObject, getSession, installed, isDepicted, processEvent, setDepicted, uninstalled
 

Field Detail

FLASH_CONTENT_TYPE

public static final com.globalmentor.net.ContentType FLASH_CONTENT_TYPE
The content type for Flash objects.


ALLOW_SCRIPT_ACCESS_PARAMETER

public static final java.lang.String ALLOW_SCRIPT_ACCESS_PARAMETER
The "allowScriptAccess" parameter.

See Also:
Security Changes in Flash Player 8, Constant Field Values

ALLOW_SCRIPT_ACCESS_PARAMETER_ALWAYS

public static final java.lang.String ALLOW_SCRIPT_ACCESS_PARAMETER_ALWAYS
The "allowScriptAccess" parameter "always" value.

See Also:
Constant Field Values

ALLOW_SCRIPT_ACCESS_PARAMETER_NEVER

public static final java.lang.String ALLOW_SCRIPT_ACCESS_PARAMETER_NEVER
The "allowScriptAccess" parameter "never" value.

See Also:
Constant Field Values

ALLOW_SCRIPT_ACCESS_PARAMETER_SAME_DOMAIN

public static final java.lang.String ALLOW_SCRIPT_ACCESS_PARAMETER_SAME_DOMAIN
The "allowScriptAccess" parameter "sameDomain" value.

See Also:
Constant Field Values

MOVIE_PARAMETER

public static final java.lang.String MOVIE_PARAMETER
The "movie" parameter.

See Also:
Constant Field Values

QUALITY_PARAMETER

public static final java.lang.String QUALITY_PARAMETER
The "quality" parameter.

See Also:
Constant Field Values

QUALITY_PARAMETER_HIGH

public static final java.lang.String QUALITY_PARAMETER_HIGH
The "quality" parameter "high" value.

See Also:
Constant Field Values

WMODE_PARAMETER

public static final java.lang.String WMODE_PARAMETER
The "wmode" parameter.

See Also:
Constant Field Values

FLASH_CLASS_ID

public static final java.lang.String FLASH_CLASS_ID
The Shockwave Flash player class ID.

See Also:
Constant Field Values

SWFLASH_CAB_URI

public static final java.net.URI SWFLASH_CAB_URI
The URI to the swflash.cab file.


SWFLASH_CAB_SECURE_URI

public static final java.net.URI SWFLASH_CAB_SECURE_URI
The HTTPS URI to the swflash.cab file.


SWFLASH_CAB_URI_VERSION_PARAMETER

public static final java.lang.String SWFLASH_CAB_URI_VERSION_PARAMETER
The URI parameter specifying the version of the swflash.cab file to retreive.

See Also:
Constant Field Values
Constructor Detail

WebFlashDepictor

public WebFlashDepictor()
Default constructor using the XHTML <object> element.

Method Detail

getSWFlashCabURI

public static java.net.URI getSWFlashCabURI(java.lang.String version,
                                            boolean secure)
Returns A URI appropriate for accessing the swflash.cab file at an optionally secure location with the given version.

Parameters:
version - The version of the file to retrieve.
secure - Whether a secure URI should be retrieved.
Returns:
A URI to the swflash.cab file.

depictBody

protected void depictBody()
                   throws java.io.IOException
Renders the body of the component.

Overrides:
depictBody in class AbstractWebComponentDepictor<C extends Flash>
Throws:
java.io.IOException - if there is an error rendering the component.
See Also:
AbstractComponentDepictor.depictChildren()


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.