All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.css.properties.CssWordSpacing

java.lang.Object
   |
   +----org.w3c.css.properties.CssProperty
           |
           +----org.w3c.css.properties.CssWordSpacing

public class CssWordSpacing
extends CssProperty

   'word-spacing'

Value: normal | <length>
Initial: normal
Applies to: all elements
Inherited: yes
Percentage values: N/A

The length unit indicates an addition to the default space between words. Values can be negative, but there may be implementation-specific limits. The UA is free to select the exact spacing algorithm. The word spacing may also be influenced by justification (which is a value of the 'align' property).

   H1 { word-spacing: 0.4em }
 

Here, the word-spacing between each word in 'H1' elements would be increased by '1em'.


Constructor Index

 o CssWordSpacing()
Create a new CssWordSpacing.
 o CssWordSpacing(CssExpression)
Create a new CssWordSpacing with an expression

Method Index

 o addToStyle(CssStyle)
Adds this property to a style.
 o equals(CssProperty)
Compares two properties for equality.
 o get()
Returns the value of this property
 o getPropertyInStyle(CssStyle, boolean)
Get this property in the style.
 o getPropertyName()
Returns the name of this property
 o isSoftlyInherited()
Returns true if this property is "softly" inherited e.g.
 o toString()
Returns a string representation of the object.

Constructors

 o CssWordSpacing
 public CssWordSpacing()
Create a new CssWordSpacing.

 o CssWordSpacing
 public CssWordSpacing(CssExpression expression) throws InvalidParamException
Create a new CssWordSpacing with an expression

Parameters:
expression - The expression
Throws: InvalidParamException
The expression is incorrect

Methods

 o get
 public Object get()
Returns the value of this property

Overrides:
get in class CssProperty
 o getPropertyName
 public String getPropertyName()
Returns the name of this property

Overrides:
getPropertyName in class CssProperty
 o isSoftlyInherited
 public boolean isSoftlyInherited()
Returns true if this property is "softly" inherited e.g. his value equals inherit

Overrides:
isSoftlyInherited in class CssProperty
 o toString
 public String toString()
Returns a string representation of the object.

Overrides:
toString in class CssProperty
 o addToStyle
 public void addToStyle(CssStyle style)
Adds this property to a style.

Parameters:
style - The style.
Overrides:
addToStyle in class CssProperty
 o 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
 o equals
 public boolean equals(CssProperty property)
Compares two properties for equality.

Parameters:
value - The other property.
Overrides:
equals in class CssProperty

All Packages  Class Hierarchy  This Package  Previous  Next  Index