01: /*
02: * Copyright (c) 2000 World Wide Web Consortium,
03: * (Massachusetts Institute of Technology, Institut National de
04: * Recherche en Informatique et en Automatique, Keio University). All
05: * Rights Reserved. This program is distributed under the W3C's Software
06: * Intellectual Property License. This program is distributed in the
07: * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
08: * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
09: * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10: * details.
11: */
12:
13: package org.w3c.dom.css;
14:
15: import org.w3c.dom.DOMException;
16:
17: /**
18: * The <code>CSS2PlayDuring</code> interface represents the play-during CSS
19: * Level 2 property.
20: * <p> For this extension of the <code>CSSValue</code> interface, the
21: * <code>valueType</code> attribute of the underlying <code>CSSValue</code>
22: * interface shall be <code>CSS_CUSTOM</code> .
23: * <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
24: * @since DOM Level 2
25: */
26: public interface CSS2PlayDuring extends CSSValue {
27: /**
28: * A code defining the type of the value as defined in
29: * <code>CSSvalue</code> . It would be one of <code>CSS_UNKNOWN</code> or
30: * <code>CSS_IDENT</code> .
31: */
32: public short getPlayDuringType();
33:
34: /**
35: * One of <code>"inherit"</code> , <code>"auto"</code> ,
36: * <code>"none"</code> or the empty string if the
37: * <code>playDuringType</code> is <code>CSS_UNKNOWN</code> . On setting,
38: * it will set the <code>uri</code> to the empty string and
39: * <code>mix</code> and <code>repeat</code> to <code>false</code> .
40: * @exception DOMException
41: * SYNTAX_ERR: Raised if the specified CSS string value has a syntax
42: * error and is unparsable.
43: * <br> NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is
44: * readonly.
45: */
46: public String getPlayDuringIdentifier();
47:
48: public void setPlayDuringIdentifier(String playDuringIdentifier)
49: throws DOMException;
50:
51: /**
52: * The sound specified by the <code>uri</code> . It will set the
53: * <code>playDuringType</code> attribute to <code>CSS_UNKNOWN</code> .
54: * @exception DOMException
55: * SYNTAX_ERR: Raised if the specified CSS string value has a syntax
56: * error and is unparsable.
57: * <br> NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is
58: * readonly.
59: */
60: public String getUri();
61:
62: public void setUri(String uri) throws DOMException;
63:
64: /**
65: * <code>true</code> if the sound should be mixed. It will be ignored if
66: * the attribute doesn't contain a <code>uri</code> .
67: * @exception DOMException
68: * NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly.
69: */
70: public boolean getMix();
71:
72: public void setMix(boolean mix) throws DOMException;
73:
74: /**
75: * <code>true</code> if the sound should be repeated. It will be ignored
76: * if the attribute doesn't contain a <code>uri</code> .
77: * @exception DOMException
78: * NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is readonly.
79: */
80: public boolean getRepeat();
81:
82: public void setRepeat(boolean repeat) throws DOMException;
83:
84: }
|