fi.hut.tml.xsmiles.mlfc.css.value
Class InheritenceResolver
java.lang.Object
fi.hut.tml.xsmiles.mlfc.css.value.AbstractResolver
fi.hut.tml.xsmiles.mlfc.css.value.InheritenceResolver
- All Implemented Interfaces:
- RelativeValueResolver
- public class InheritenceResolver
- extends AbstractResolver
- implements RelativeValueResolver
This class provides a relative value resolver for the 'font-size' CSS
property.
- Version:
- $Id: InheritenceResolver.java 2648 2002-04-25 12:37:05Z ale $
- Author:
- Stephane Hillion
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
propertyName
protected java.lang.String propertyName
InheritenceResolver
public InheritenceResolver(java.lang.String property)
isInheritedProperty
public boolean isInheritedProperty()
- Whether the handled property is inherited or not.
- Specified by:
isInheritedProperty in interface RelativeValueResolver
getPropertyName
public java.lang.String getPropertyName()
- Returns the name of the handled property.
- Specified by:
getPropertyName in interface RelativeValueResolver
resolveValue
public void resolveValue(org.w3c.dom.Element element,
java.lang.String pseudoElement,
XSmilesCSSStyleDeclarationImpl styleDeclaration,
XSmilesCSSStyleDeclarationImpl parentStyle)
- Resolves the given value if relative, and puts it in the given table.
- Specified by:
resolveValue in interface RelativeValueResolver
- Parameters:
element - The element to which this value applies.pseudoElement - The pseudo element if one.styleDeclaration - The computed style declaration.
inherit
protected static void inherit(XSmilesCSSStyleDeclarationImpl parentStyle,
XSmilesCSSStyleDeclarationImpl localStyle,
java.lang.String propertyName)
- Inherit values from parent style. NOTE! use this only for empty style
X-Smiles 1.2