|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Audio
An audio clip.
An extension to XUL.
Field Summary |
---|
Fields inherited from interface org.zkoss.zk.ui.Component |
---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
Method Summary | |
---|---|
java.lang.String |
getAlign()
Returns the alignment. |
java.lang.String |
getBorder()
Returns the width of the border. |
Audio |
getContent()
Returns the content set by setContent(org.zkoss.sound.Audio) . |
java.lang.String |
getSrc()
Returns the src. |
void |
pause()
Pauses the audio at the cient. |
void |
play()
Plays the audio at the client. |
void |
setAlign(java.lang.String align)
Sets the alignment: one of top, texttop, middle, absmiddle, bottom, absbottom, baseline, left, right and center. |
void |
setBorder(java.lang.String border)
Sets the width of the border. |
void |
setContent(Audio audio)
Sets the content directly. |
void |
setSrc(java.lang.String src)
Sets the src. |
void |
stop()
Stops the audio at the cient. |
Methods inherited from interface org.zkoss.zul.impl.api.XulElement |
---|
getAction, getContext, getCtrlKeys, getPopup, getTooltip, setAction, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip |
Methods inherited from interface org.zkoss.zk.ui.api.HtmlBasedComponent |
---|
focus, getHeight, getLeft, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZclass, getZindex, getZIndex, setDraggable, setDroppable, setFocus, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZclass, setZindex, setZIndex |
Methods inherited from interface org.zkoss.zk.ui.ext.Scope |
---|
addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute |
Method Detail |
---|
void play()
void stop()
void pause()
java.lang.String getAlign()
Default: null (use browser default).
void setAlign(java.lang.String align) throws WrongValueException
WrongValueException
java.lang.String getBorder()
Default: null (use browser default).
void setBorder(java.lang.String border) throws WrongValueException
WrongValueException
java.lang.String getSrc()
Default: null.
void setSrc(java.lang.String src)
Calling this method implies setContent(null). In other words, the last
invocation of setSrc(java.lang.String)
overrides the previous setContent(org.zkoss.sound.Audio)
,
if any.
setContent(org.zkoss.sound.Audio)
void setContent(Audio audio)
Default: null.
Calling this method implies setSrc(null). In other words, the last
invocation of setContent(org.zkoss.sound.Audio)
overrides the previous setSrc(java.lang.String)
,
if any.
audio
- the audio to display.setSrc(java.lang.String)
Audio getContent()
setContent(org.zkoss.sound.Audio)
.
Note: it won't fetch what is set thru by setSrc(java.lang.String)
. It simply
returns what is passed to setContent(org.zkoss.sound.Audio)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |