All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.css.properties.CssTextAlign
java.lang.Object
|
+----org.w3c.css.properties.CssProperty
|
+----org.w3c.css.properties.CssTextAlign
- public class CssTextAlign
- extends CssProperty
- implements CssTextPropertiesConstants
Value: left | right | center | justify
Initial: UA specific
Applies to: block-level elements
Inherited: yes
Percentage values: N/A
This property describes how text is aligned within the element. The actual
justification algorithm used is UA and human language dependent.
Example:
DIV.center { text-align: center }
Since 'text-align' inherits, all block-level elements inside the 'DIV' element
with 'CLASS=center' will be centered. Note that alignments are relative to
the width of the element, not the canvas. If 'justify' is not supported,
the UA will supply a replacement. Typically, this will be 'left' for western
languages.
-
CssTextAlign()
- Create a new CssTextAlign
-
CssTextAlign(CssExpression)
- Create a new CssTextAlign
-
addToStyle(CssStyle)
- Add this property to the CssStyle.
-
equals(CssProperty)
- Compares two properties for equality.
-
get()
- Returns the value of this property
-
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.
-
toString()
- Returns a string representation of the object.
CssTextAlign
public CssTextAlign()
- Create a new CssTextAlign
CssTextAlign
public CssTextAlign(CssExpression expression) throws InvalidParamException
- Create a new CssTextAlign
- Parameters:
- expression - The expression for this property
- Throws: InvalidParamException
- Values are incorrect
get
public Object get()
- Returns the value of this property
- Overrides:
- get in class CssProperty
getPropertyName
public String getPropertyName()
- Returns the name of this property
- Overrides:
- getPropertyName in class CssProperty
isSoftlyInherited
public boolean isSoftlyInherited()
- Returns true if this property is "softly" inherited
e.g. his value equals inherit
- Overrides:
- isSoftlyInherited in class CssProperty
toString
public String toString()
- Returns a string representation of the object.
- Overrides:
- toString in class CssProperty
addToStyle
public void addToStyle(CssStyle style)
- Add this property to the CssStyle.
- Parameters:
- style - The CssStyle
- Overrides:
- addToStyle 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
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