Package io.guise.framework.platform.web
Class WebFlashDepictor<C extends Flash>
- java.lang.Object
-
- io.guise.framework.platform.AbstractDepictor<C>
-
- io.guise.framework.platform.AbstractComponentDepictor<C>
-
- io.guise.framework.platform.web.AbstractWebComponentDepictor<C>
-
- io.guise.framework.platform.web.AbstractSimpleWebComponentDepictor<C>
-
- io.guise.framework.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 io.guise.framework.platform.AbstractComponentDepictor
AbstractComponentDepictor.DepictedCompositeComponentListener
-
Nested classes/interfaces inherited from class io.guise.framework.platform.AbstractDepictor
AbstractDepictor.DepictedPropertyChangeListener
-
-
Field Summary
Fields Modifier and Type Field Description 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 retrieve.static java.lang.String
WMODE_PARAMETER
The "wmode" parameter.-
Fields inherited from class io.guise.framework.platform.web.AbstractWebComponentDepictor
BODY_END_PATTERN, BODY_START_PATTERN
-
Fields inherited from class io.guise.framework.platform.AbstractComponentDepictor
childPropertyChangeListener
-
Fields inherited from interface io.guise.framework.platform.Depictor
GENERAL_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description WebFlashDepictor()
Default constructor using the XHTML<object>
element.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
depictBody()
Depicts 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 io.guise.framework.platform.web.AbstractSimpleWebComponentDepictor
depictBegin, getOuterStyles
-
Methods inherited from class io.guise.framework.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 io.guise.framework.platform.AbstractComponentDepictor
depictChild, depictChildren, depictedObjectPropertyChange, getDepictedCompositeComponentListener, getErrorMessage, installed, processEvent, uninstalled
-
Methods inherited from class io.guise.framework.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 io.guise.framework.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.
-
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 retrieve.- See Also:
- Constant Field Values
-
-
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
Description copied from class:AbstractWebComponentDepictor
Depicts the body of the component.This version depicts the children of the component.
This version increases and decreases the indention level before and after depicting the children, respectively.
- Overrides:
depictBody
in classAbstractWebComponentDepictor<C extends Flash>
- Throws:
java.io.IOException
- if there is an error updating the depiction.- See Also:
AbstractComponentDepictor.depictChildren()
-
-