|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.Audio
public class Audio
An audio clip.
An extension to XUL.
| Nested Class Summary | |
|---|---|
protected class |
Audio.ExtraCtrl
A utility class to implement AbstractComponent.getExtraCtrl(). |
| Field Summary | |
|---|---|
protected java.lang.String |
_src
|
| Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH |
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| Constructor Summary | |
|---|---|
Audio()
|
|
Audio(java.lang.String src)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAlign()
Returns the alignment. |
java.lang.String |
getBorder()
Returns the width of the border. |
org.zkoss.sound.Audio |
getContent()
Returns the content set by setContent(org.zkoss.sound.Audio). |
java.lang.String |
getOuterAttrs()
|
java.lang.String |
getSrc()
Returns the src. |
boolean |
isAutostart()
Returns whether to auto start playing the audio. |
boolean |
isChildable()
Default: not childable. |
protected java.lang.Object |
newExtraCtrl()
|
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 |
setAutostart(boolean autostart)
Sets whether to auto start playing the audio. |
void |
setBorder(java.lang.String border)
Sets the width of the border. |
void |
setContent(org.zkoss.sound.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 class org.zkoss.zul.impl.XulElement |
|---|
getAction, getAllOnClickAttrs, getContext, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setPopup, setTooltip |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
addEventListener, appendAsapAttr, focus, getDraggable, getDroppable, getHeight, getLeft, getRealStyle, getRealStyleFlags, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZIndex, isAsapRequired, removeEventListener, setClass, setDraggable, setDroppable, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZIndex |
| Methods inherited from class org.zkoss.zk.ui.AbstractComponent |
|---|
addAnnotation, addAnnotation, addEventHandler, addSharedAnnotationMap, addSharedEventHandlerMap, appendChild, applyProperties, clone, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getEventHandler, getExtraCtrl, getFellow, getFellowIfAny, getId, getListenerIterator, getMold, getMoldURI, getNamespace, getPage, getParent, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, insertBefore, invalidate, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onDrawNewChild, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPage, setParent, setVariable, setVisible, smartUpdate, smartUpdate, smartUpdate, toString, unsetVariable |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String _src
| Constructor Detail |
|---|
public Audio()
public Audio(java.lang.String src)
| Method Detail |
|---|
public void play()
public void stop()
public void pause()
public java.lang.String getAlign()
Default: null (use browser default).
public void setAlign(java.lang.String align)
throws org.zkoss.zk.ui.WrongValueException
org.zkoss.zk.ui.WrongValueExceptionpublic java.lang.String getBorder()
Default: null (use browser default).
public void setBorder(java.lang.String border)
throws org.zkoss.zk.ui.WrongValueException
org.zkoss.zk.ui.WrongValueExceptionpublic java.lang.String getSrc()
Default: null.
public void setSrc(java.lang.String src)
If setContent(org.zkoss.sound.Audio) is ever called with non-null,
it takes heigher priority than this method.
public final boolean isAutostart()
Default: false;
public final void setAutostart(boolean autostart)
public void setContent(org.zkoss.sound.Audio audio)
audio - the audio to display. If not null, it has higher
priority than getSrc().public org.zkoss.sound.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).
public java.lang.String getOuterAttrs()
getOuterAttrs in class XulElementpublic boolean isChildable()
isChildable in interface org.zkoss.zk.ui.ComponentisChildable in class org.zkoss.zk.ui.AbstractComponentprotected java.lang.Object newExtraCtrl()
newExtraCtrl in class org.zkoss.zk.ui.HtmlBasedComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||