public class DefaultLayoutContext extends java.lang.Object implements LayoutContext, java.lang.Cloneable
| Constructor and Description |
|---|
DefaultLayoutContext(ContextId contextId,
java.lang.String namespace,
java.lang.String tagName,
java.lang.String pseudoElement,
AttributeMap attributeMap) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
boolean |
copyFrom(LayoutStyle style) |
LayoutContext |
derive() |
LayoutContext |
detach(java.util.Map counters,
java.util.Map strings) |
void |
dispose() |
AttributeMap |
getAttributes()
May never be null.
|
BackgroundSpecification |
getBackgroundSpecification() |
ContentSpecification |
getContentSpecification() |
ContextId |
getContextId() |
java.util.Map |
getCounters() |
FontSpecification |
getFontSpecification() |
java.util.Locale |
getLanguage()
Returns the language definition of this layout context.
|
ListSpecification |
getListSpecification() |
java.lang.String |
getNamespace()
May be null.
|
java.lang.String |
getPseudoElement()
An element can be exactly one pseudo-element type.
|
java.util.Map |
getStrings() |
LayoutStyle |
getStyle() |
java.lang.String |
getTagName()
May be null.
|
CSSValue |
getValue(StyleKey key) |
boolean |
isPseudoElement() |
void |
setValue(StyleKey key,
CSSValue value) |
public DefaultLayoutContext(ContextId contextId, java.lang.String namespace, java.lang.String tagName, java.lang.String pseudoElement, AttributeMap attributeMap)
public java.lang.String getPseudoElement()
LayoutContextgetPseudoElement in interface LayoutContextpublic java.lang.String getNamespace()
LayoutContextgetNamespace in interface LayoutContextpublic java.lang.String getTagName()
LayoutContextgetTagName in interface LayoutContextpublic AttributeMap getAttributes()
LayoutContextgetAttributes in interface LayoutContextpublic BackgroundSpecification getBackgroundSpecification()
getBackgroundSpecification in interface LayoutContextpublic FontSpecification getFontSpecification()
getFontSpecification in interface LayoutContextpublic ContentSpecification getContentSpecification()
getContentSpecification in interface LayoutContextpublic ListSpecification getListSpecification()
getListSpecification in interface LayoutContextpublic void setValue(StyleKey key, CSSValue value)
setValue in interface LayoutStylepublic CSSValue getValue(StyleKey key)
getValue in interface LayoutStylepublic LayoutStyle getStyle()
public ContextId getContextId()
getContextId in interface LayoutContextpublic java.util.Locale getLanguage()
getLanguage in interface LayoutContextpublic boolean isPseudoElement()
isPseudoElement in interface LayoutContextpublic java.lang.Object clone()
clone in class java.lang.Objectpublic LayoutContext derive()
derive in interface LayoutContextpublic void dispose()
dispose in interface LayoutContextpublic boolean copyFrom(LayoutStyle style)
copyFrom in interface LayoutStylepublic java.util.Map getCounters()
getCounters in interface LayoutContextpublic java.util.Map getStrings()
getStrings in interface LayoutContextpublic LayoutContext detach(java.util.Map counters, java.util.Map strings)
detach in interface LayoutContext