fi.hut.tml.xsmiles.mlfc.css.value
Class InheritenceResolver

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.css.value.AbstractResolver
      extended byfi.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

Field Summary
protected  java.lang.String propertyName
           
 
Constructor Summary
InheritenceResolver(java.lang.String property)
           
 
Method Summary
 java.lang.String getPropertyName()
          Returns the name of the handled property.
protected static void inherit(XSmilesCSSStyleDeclarationImpl parentStyle, XSmilesCSSStyleDeclarationImpl localStyle, java.lang.String propertyName)
          Inherit values from parent style.
 boolean isInheritedProperty()
          Whether the handled property is inherited or not.
 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.
 
Methods inherited from class fi.hut.tml.xsmiles.mlfc.css.value.AbstractResolver
getIsImportant, resolvePercentage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyName

protected java.lang.String propertyName
Constructor Detail

InheritenceResolver

public InheritenceResolver(java.lang.String property)
Method Detail

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