public class SimpleCellStyleSpecs extends StyleSpecsBase
AFTER_ELEMENT, AFTER_ELEMENT_MASK, BEFORE_ELEMENT, BEFORE_ELEMENT_MASK, ELEMENT, ELEMENT_MASK
Constructor and Description |
---|
SimpleCellStyleSpecs(GenericTableSpec tableSpec,
boolean bold,
Color headerBackground,
ViewFactoryBase viewFactory) |
Modifier and Type | Method and Description |
---|---|
int |
findStyleSpec(Element element,
StyleSpec[] specs)
Find up to 3 StyleSpecs matching the specified element and its
:before and :after pseudo-elements if any.
|
findStyleSpec, findStyleSpec
public SimpleCellStyleSpecs(GenericTableSpec tableSpec, boolean bold, Color headerBackground, ViewFactoryBase viewFactory)
public int findStyleSpec(Element element, StyleSpec[] specs)
StyleSpecsBase
Does nothing; returns 0.
findStyleSpec
in interface StyleSpecs
findStyleSpec
in class StyleSpecsBase
element
- element for which StyleSpecs are to be foundspecs
- array of 3 StyleSpecs created by the caller. This method
directly modifies the 3 StyleSpecs contained in this array. For
example, this method adds to
specs[
StyleSpecs.BEFORE_ELEMENT
]
all the property values contained in the StyleSpec matching the
:before pseudo-element.StyleSpecs.ELEMENT_MASK
, StyleSpecs.BEFORE_ELEMENT_MASK
,
StyleSpecs.AFTER_ELEMENT_MASK
, specifying which StyleSpecs have been
found