public class Flash
extends org.zkoss.zk.ui.HtmlBasedComponent
Non XUL extension.
| Modifier and Type | Method and Description |
|---|---|
String |
getBgcolor()
Gets the background color of Flash movie.
|
org.zkoss.util.media.Media |
getContent()
Returns the content set by
setContent(org.zkoss.util.media.Media). |
String |
getQuality()
Returns the quality of the Flash movie
Default: "high".
|
String |
getSrc()
Gets the source path of Flash movie
|
String |
getVersion()
Returns the expected version of the Flash player.
|
String |
getWmode()
Returns the Window mode property of the Flash movie
Default: "transparent".
|
boolean |
isAutoplay()
Return true if the Flash movie starts playing automatically
Default: true
|
boolean |
isAutoPlay()
Deprecated.
As of release 3.6.1, use
isAutoplay() instead. |
boolean |
isLoop()
Returns true if the Flash movie plays repeatedly.
|
protected void |
renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) |
void |
setAutoplay(boolean autoplay)
Sets wether to play the Flash movie automatically.
|
void |
setAutoPlay(boolean autoplay)
Deprecated.
As of release 3.6.1, use
setAutoplay(boolean) instead. |
void |
setBgcolor(String bgcolor)
Sets the background color of Flash movie.
|
void |
setContent(org.zkoss.util.media.Media media)
Sets the content of the flash directly.
|
void |
setLoop(boolean loop)
Sets whether the Flash movie plays repeatedly
|
void |
setQuality(String quality)
Sets the quality of the Flash movie.
|
void |
setSrc(String src)
Sets the source path of Flash movie
and redraw the component
|
void |
setVersion(String version)
Sets the expected version of the Flash player.
|
void |
setWmode(String wmode)
Sets the Window Mode property of the Flash movie
for transparency, layering, and positioning in the browser.
|
clone, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getPropertyAccess, getRenderdefer, getSclass, getStyle, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZindex, getZIndex, service, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeightDirectly, setHflex, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTooltiptext, setTop, setTopDirectly, setVflex, setWidth, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectlyaddAnnotation, addAnnotation, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildAdded, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowRoots, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, insertBefore, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerializepublic Flash()
public Flash(String src)
public String getBgcolor()
Default: null (the system default)
public void setBgcolor(String bgcolor)
bgcolor - [ hexadecimal RGB value]public boolean isLoop()
Default: false
public void setLoop(boolean loop)
loop - public boolean isAutoPlay()
isAutoplay() instead.public void setAutoPlay(boolean autoplay)
setAutoplay(boolean) instead.public boolean isAutoplay()
Default: true
public void setAutoplay(boolean autoplay)
autoplay - whether to play the Flash movie automaticallypublic String getWmode()
Default: "transparent".
public void setWmode(String wmode)
wmode - Possible values: window, opaque, transparent.public String getVersion()
Default: "6,0,0,0"
public void setVersion(String version)
public String getQuality()
Default: "high".
public void setQuality(String quality)
quality - the quality of the Flash movie. Accept "high","medium","low"public String getSrc()
public void setSrc(String src)
src - public void setContent(org.zkoss.util.media.Media media)
Calling this method implies setSrc(null).
In other words, the last invocation of setContent(org.zkoss.util.media.Media) overrides
the previous setSrc(java.lang.String), if any.
media - the media representing the flash, i.e., SWF.setSrc(java.lang.String)public org.zkoss.util.media.Media getContent()
setContent(org.zkoss.util.media.Media).
Note: it won't fetch what is set thru by setSrc(java.lang.String).
It simply returns what is passed to setContent(org.zkoss.util.media.Media).
protected void renderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer)
throws IOException
renderProperties in class org.zkoss.zk.ui.HtmlBasedComponentIOExceptionCopyright © 2015. All rights reserved.