|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.AbstractComponent org.zkoss.zk.ui.HtmlBasedComponent org.zkoss.zul.Flash
public class Flash
A generic flash component.
Non XUL extension.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
HtmlBasedComponent.ExtraCtrl |
Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent |
---|
AbstractComponent.Children |
Field Summary |
---|
Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
_zclass |
Fields inherited from interface org.zkoss.zk.ui.Component |
---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl |
---|
CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE |
Constructor Summary | |
---|---|
Flash()
|
|
Flash(java.lang.String src)
|
Method Summary | |
---|---|
java.lang.String |
getBgcolor()
Gets the background color of Flash movie. |
Media |
getContent()
Returns the content set by setContent(org.zkoss.util.media.Media) . |
java.lang.String |
getQuality()
Returns the quality of the Flash movie Default: "high". |
java.lang.String |
getSrc()
Gets the source path of Flash movie |
java.lang.String |
getVersion()
Returns the expected version of the Flash player. |
java.lang.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 repeatly. |
protected void |
renderProperties(ContentRenderer renderer)
Renders the content of this component, excluding the enclosing tags and children. |
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(java.lang.String bgcolor)
Sets the background color of Flash movie. |
void |
setContent(Media media)
Sets the content of the flash directly. |
void |
setLoop(boolean loop)
Sets whether the Flash movie plays repeatly |
void |
setQuality(java.lang.String quality)
Sets the quality of the Flash movie. |
void |
setSrc(java.lang.String src)
Sets the source path of Flash movie and redraw the component |
void |
setVersion(java.lang.String version)
Sets the expected version of the Flash player. |
void |
setWmode(java.lang.String wmode)
Sets the Window Mode property of the Flash movie for transparency, layering, and positioning in the browser. |
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
---|
clone, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, 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, setZIndexDirectly |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Flash()
public Flash(java.lang.String src)
Method Detail |
---|
public java.lang.String getBgcolor()
Default: null (the system default)
public void setBgcolor(java.lang.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 java.lang.String getWmode()
Default: "transparent".
public void setWmode(java.lang.String wmode)
wmode
- Possible values: window, opaque, transparent.public java.lang.String getVersion()
Default: "6,0,0,0"
public void setVersion(java.lang.String version)
public java.lang.String getQuality()
Default: "high".
public void setQuality(java.lang.String quality)
quality
- the quality of the Flash movie. Accept "high","medium","low"public java.lang.String getSrc()
public void setSrc(java.lang.String src)
src
- public void setContent(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 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(ContentRenderer renderer) throws java.io.IOException
HtmlBasedComponent
See also ZK Client-side Reference: Property Rendering
renderProperties
in class HtmlBasedComponent
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |