Interface StyleResolver
-
- All Known Implementing Classes:
AbstractStyleResolver,DefaultStyleResolver
public interface StyleResolverCreation-Date: 05.12.2005, 18:03:52- Author:
- Thomas Morgner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StyleResolverderiveInstance()LayoutStylegetInitialStyle()Returns the style for a generic element for which none of the defined selectors (except the global one) match.voidinitialize(DocumentContext documentContext)booleanisPseudoElementStyleResolvable(LayoutElement element, String pseudo)Performs tests, whether there is a pseudo-element definition for the given element.LayoutStyleresolvePageStyle(CSSValue pageName, PseudoPage[] pseudoPages, PageAreaType pageArea)voidresolveStyle(LayoutElement element)Resolves the style.
-
-
-
Method Detail
-
deriveInstance
StyleResolver deriveInstance()
-
resolveStyle
void resolveStyle(LayoutElement element)
Resolves the style. This is guaranteed to be called in the order of the document elements traversing the document tree using the 'deepest-node-first' strategy.- Parameters:
element-
-
isPseudoElementStyleResolvable
boolean isPseudoElementStyleResolvable(LayoutElement element, String pseudo)
Performs tests, whether there is a pseudo-element definition for the given element. The element itself can be a pseudo-element as well.- Parameters:
element-pseudo-- Returns:
-
initialize
void initialize(DocumentContext documentContext)
-
resolvePageStyle
LayoutStyle resolvePageStyle(CSSValue pageName, PseudoPage[] pseudoPages, PageAreaType pageArea)
-
getInitialStyle
LayoutStyle getInitialStyle()
Returns the style for a generic element for which none of the defined selectors (except the global one) match.- Returns:
- the initial style.
-
-