|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object zk.Object zk.Widget zul.Widget zul.med.Audio
public class Audio
An audio clip.
An extension to XUL. Only works for browsers supporting HTML5 audio tag (since ZK 7.0.0).
Field Summary |
---|
Fields inherited from class zk.Widget |
---|
$weave, auDelay, autag, bindLevel, className, desktop, effects_, firstChild, id, insertingBefore_, inServer, lastChild, nChildren, nextSibling, parent, previousSibling, uuid, widgetName |
Fields inherited from class zk.Object |
---|
$class, $oid |
Method Summary | |
---|---|
String |
getPreload()
Returns whether and how the audio should be loaded. |
String |
getSrc()
Returns the src. |
boolean |
isAutoplay()
Returns whether to auto start playing the audio. |
boolean |
isControls()
Returns whether to display the audio controls. |
boolean |
isLoop()
Returns whether to play the audio repeatedly. |
boolean |
isMuted()
Returns whether to mute the audio. |
void |
pause()
Pauses the audio at the client. |
void |
play()
Plays the audio at the client. |
void |
setAutoplay(boolean autoplay)
Sets whether to auto start playing the audio. |
void |
setControls(boolean controls)
Sets whether to display the audio controls. |
void |
setLoop(boolean loop)
Sets whether to play the audio repeatedly. |
void |
setMuted(boolean muted)
Sets whether to mute the audio. |
void |
setPreload(String preload)
Sets whether and how the audio should be loaded. |
void |
setSrc(String src)
Sets the src. |
void |
stop()
Stops the audio at the client. |
Methods inherited from class zul.Widget |
---|
afterKeyDown_, beforeCtrlKeys_, getContext, getCtrlKeys, getOpenTooltip, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
Methods inherited from class zk.Object |
---|
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setSrc(String src)
src
- public String getSrc()
Default: null.
public void setAutoplay(boolean autoplay)
autoplay
- public boolean isAutoplay()
Default: false.
public void setPreload(String preload)
preload
- public String getPreload()
Default: null.
public void setControls(boolean controls)
controls
- public boolean isControls()
Default: false.
public void setLoop(boolean loop)
loop
- public boolean isLoop()
Default: false.
public void setMuted(boolean muted)
muted
- public boolean isMuted()
Default: false.
public void play()
public void stop()
public void pause()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |