org.w3c.dom.css
Interface CSS2PlayDuring

All Superinterfaces:
CSSValue

public interface CSS2PlayDuring
extends CSSValue

The CSS2PlayDuring interface represents the play-during CSS Level 2 property.

For this extension of the CSSValue interface, the valueType attribute of the underlying CSSValue interface shall be CSS_CUSTOM .

See also the Document Object Model (DOM) Level 2 Specification.

Since:
DOM Level 2

Fields inherited from interface org.w3c.dom.css.CSSValue
CSS_CUSTOM, CSS_INHERIT, CSS_PRIMITIVE_VALUE, CSS_VALUE_LIST
 
Method Summary
 boolean getMix()
          true if the sound should be mixed.
 java.lang.String getPlayDuringIdentifier()
          One of "inherit" , "auto" , "none" or the empty string if the playDuringType is CSS_UNKNOWN .
 short getPlayDuringType()
          A code defining the type of the value as defined in CSSvalue .
 boolean getRepeat()
          true if the sound should be repeated.
 java.lang.String getUri()
          The sound specified by the uri .
 void setMix(boolean mix)
           
 void setPlayDuringIdentifier(java.lang.String playDuringIdentifier)
           
 void setRepeat(boolean repeat)
           
 void setUri(java.lang.String uri)
           
 
Methods inherited from interface org.w3c.dom.css.CSSValue
getCssText, getCssValueType, setCssText
 

Method Detail

getPlayDuringType

public short getPlayDuringType()
A code defining the type of the value as defined in CSSvalue . It would be one of CSS_UNKNOWN or CSS_IDENT .

getPlayDuringIdentifier

public java.lang.String getPlayDuringIdentifier()
One of "inherit" , "auto" , "none" or the empty string if the playDuringType is CSS_UNKNOWN . On setting, it will set the uri to the empty string and mix and repeat to false .
Throws:
DOMException - SYNTAX_ERR: Raised if the specified CSS string value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly.

setPlayDuringIdentifier

public void setPlayDuringIdentifier(java.lang.String playDuringIdentifier)
                             throws DOMException

getUri

public java.lang.String getUri()
The sound specified by the uri . It will set the playDuringType attribute to CSS_UNKNOWN .
Throws:
DOMException - SYNTAX_ERR: Raised if the specified CSS string value has a syntax error and is unparsable.
NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly.

setUri

public void setUri(java.lang.String uri)
            throws DOMException

getMix

public boolean getMix()
true if the sound should be mixed. It will be ignored if the attribute doesn't contain a uri .
Throws:
DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly.

setMix

public void setMix(boolean mix)
            throws DOMException

getRepeat

public boolean getRepeat()
true if the sound should be repeated. It will be ignored if the attribute doesn't contain a uri .
Throws:
DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly.

setRepeat

public void setRepeat(boolean repeat)
               throws DOMException

Source code is GPL'd at http://xmlconf.sourceforge.net.