All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.css.aural.ACssVoiceFamily
java.lang.Object
|
+----org.w3c.css.properties.CssProperty
|
+----org.w3c.css.aural.ACssProperty
|
+----org.w3c.css.aural.ACssVoiceFamily
- public class ACssVoiceFamily
- extends ACssProperty
- implements CssOperator
5.2 'voice-family'
Value: [[<specific-voice> | <generic-voice>],]*
[<specific-voice> | <generic-voice>]
Initial: UA
Applies to: all elements
Inherited: yes
Percentage values: NA
The value is a prioritized list of voice family names (compare
with 'font-family'. Suggested
genric families: male, female, child.
Examples of specific voice families are: comedian, trinoids, carlos, lisa
Examples
H1 { voice-family: announcer, male }
P.part.romeo { voice-family: romeo, male }
P.part.juliet { voice-family: juliet, female }
-
ACssVoiceFamily()
- Create a new ACssVoiceFamily
-
ACssVoiceFamily(CssExpression)
- Create a new ACssVoiceFamily
-
addToStyle(CssStyle)
- Add this property to the CssStyle.
-
containsGenericFamily()
- Returns true if this property contains a generic family name
-
elements()
- Returns all voices name
-
equals(CssProperty)
- Compares two properties for equality.
-
get()
- Returns the voice (null if no voice)
-
getPropertyInStyle(CssStyle, boolean)
- Get this property in the style.
-
getPropertyName()
- Returns the name of this property
-
isSoftlyInherited()
- Returns true if this property is "softly" inherited
e.g.
-
size()
- Returns the size
-
toString()
- Returns a string representation of the object.
ACssVoiceFamily
public ACssVoiceFamily()
- Create a new ACssVoiceFamily
ACssVoiceFamily
public ACssVoiceFamily(CssExpression value) throws InvalidParamException
- Create a new ACssVoiceFamily
- Parameters:
- value - the voice name
- Throws: InvalidParamException
- The expression is incorrect
elements
public Enumeration elements()
- Returns all voices name
size
public int size()
- Returns the size
get
public Object get()
- Returns the voice (null if no voice)
- Overrides:
- get in class CssProperty
isSoftlyInherited
public boolean isSoftlyInherited()
- Returns true if this property is "softly" inherited
e.g. his value is equals to inherit
- Overrides:
- isSoftlyInherited in class CssProperty
toString
public String toString()
- Returns a string representation of the object.
- Overrides:
- toString in class CssProperty
getPropertyName
public String getPropertyName()
- Returns the name of this property
- Overrides:
- getPropertyName in class CssProperty
addToStyle
public void addToStyle(CssStyle style)
- Add this property to the CssStyle.
- Parameters:
- style - The CssStyle
- Overrides:
- addToStyle in class CssProperty
equals
public boolean equals(CssProperty property)
- Compares two properties for equality.
- Parameters:
- value - The other property.
- Overrides:
- equals in class CssProperty
getPropertyInStyle
public CssProperty getPropertyInStyle(CssStyle style,
boolean resolve)
- Get this property in the style.
- Parameters:
- style - The style where the property is
- resolve - if true, resolve the style to find this property
- Overrides:
- getPropertyInStyle in class CssProperty
containsGenericFamily
public boolean containsGenericFamily()
- Returns true if this property contains a generic family name
All Packages Class Hierarchy This Package Previous Next Index