All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.css.properties.CssTextTransform
java.lang.Object
|
+----org.w3c.css.properties.CssProperty
|
+----org.w3c.css.properties.CssTextTransform
- public class CssTextTransform
- extends CssProperty
- implements CssTextPropertiesConstants
Value: capitalize | uppercase | lowercase | none
Initial: none
Applies to: all elements
Inherited: yes
Percentage values: N/A
-
'capitalize'
-
uppercases the first character of each word
-
'uppercase'
-
uppercases all letters of the element
-
'lowercase'
-
lowercases all letters of the element
-
'none'
-
neutralizes inherited value.
The actual transformation in each case is human language dependent. See
[4] for ways to find the language of an element.
H1 { text-transform: uppercase }
The example above would put 'H1' elements in uppercase text.
[4] F Yergeau, G Nicol, G Adams, M Dürst:
"Internationalization
of the Hypertext Markup Language"
(ftp://ietf.org/internet-drafts/draft-ietf-html-i18n-05.txt).
-
CssTextTransform()
- Create a new CssTextTransform
-
CssTextTransform(CssExpression)
- Create a new CssTextTransform
-
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.
CssTextTransform
public CssTextTransform()
- Create a new CssTextTransform
CssTextTransform
public CssTextTransform(CssExpression expression) throws InvalidParamException
- Create a new CssTextTransform
- Parameters:
- expression - The expression for this property
- Throws: InvalidParamException
- The value is 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