| Package | Description |
|---|---|
| cz.vutbr.web.css | |
| cz.vutbr.web.csskit | |
| cz.vutbr.web.csskit.antlr4 | |
| cz.vutbr.web.domassign |
| Modifier and Type | Method and Description |
|---|---|
StyleSheet |
RuleFactory.createStyleSheet()
Creates CSS author style sheet
|
StyleSheet |
RuleFactory.createStyleSheet(StyleSheet.Origin origin)
Creates CSS author style sheet with the given origin.
|
StyleSheet |
RuleBlock.getStyleSheet()
Returns the stylesheet where the rule is contained.
|
static StyleSheet |
CSSFactory.getUsedStyles(Document doc,
String encoding,
URL base,
MediaSpec media)
This is the same as
CSSFactory.getUsedStyles(Document, String, URL, MediaSpec) with
the possibility of specifying a custom network processor. |
static StyleSheet |
CSSFactory.getUsedStyles(Document doc,
String encoding,
URL base,
MediaSpec media,
NetworkProcessor network)
Loads all the style sheets used from the specified DOM tree.
|
static StyleSheet |
CSSFactory.getUsedStyles(Document doc,
String encoding,
URL base,
String media)
This is the same as
CSSFactory.getUsedStyles(Document, String, URL, MediaSpec) but only the
media type is provided instead of the complete media specification. |
static StyleSheet |
CSSFactory.getUsedStyles(Document doc,
URL base,
String media)
Deprecated.
|
static StyleSheet |
CSSFactory.parse(String css)
Deprecated.
This function does not specify the base URL.
CSSFactory.parseString(String, URL)
should be used instead. |
static StyleSheet |
CSSFactory.parse(String fileName,
String encoding)
Parses file into StyleSheet.
|
static StyleSheet |
CSSFactory.parse(URL url,
NetworkProcessor network,
String encoding)
Parses URL into StyleSheet
|
static StyleSheet |
CSSFactory.parse(URL url,
String encoding)
Parses URL into StyleSheet
|
static StyleSheet |
CSSFactory.parseString(String css,
URL base)
Parses text into a StyleSheet
|
static StyleSheet |
CSSFactory.parseString(String css,
URL base,
NetworkProcessor network)
Parses text into a StyleSheet
|
| Modifier and Type | Method and Description |
|---|---|
void |
RuleBlock.setStyleSheet(StyleSheet sheet)
Sets the owner style sheet for this rule.
|
| Modifier and Type | Class and Description |
|---|---|
class |
StyleSheetImpl
CSS style sheet, entry point.
|
| Modifier and Type | Field and Description |
|---|---|
protected StyleSheet |
AbstractRuleBlock.stylesheet |
| Modifier and Type | Method and Description |
|---|---|
StyleSheet |
RuleFactoryImpl.createStyleSheet() |
StyleSheet |
RuleFactoryImpl.createStyleSheet(StyleSheet.Origin origin) |
StyleSheet |
AbstractRuleBlock.getStyleSheet() |
| Modifier and Type | Method and Description |
|---|---|
void |
RuleMediaImpl.setStyleSheet(StyleSheet stylesheet) |
void |
AbstractRuleBlock.setStyleSheet(StyleSheet stylesheet) |
| Modifier and Type | Method and Description |
|---|---|
protected static StyleSheet |
CSSParserFactory.addRulesToStyleSheet(RuleList rules,
StyleSheet sheet) |
StyleSheet |
CSSParserFactory.append(Object source,
NetworkProcessor network,
String encoding,
CSSParserFactory.SourceType type,
Element inline,
boolean inlinePriority,
StyleSheet sheet,
URL base)
Appends parsed source to passed style sheet.
|
StyleSheet |
CSSParserFactory.append(Object source,
NetworkProcessor network,
String encoding,
CSSParserFactory.SourceType type,
StyleSheet sheet,
URL base)
Appends parsed source to passed style sheet.
|
StyleSheet |
CSSParserFactory.parse(Object source,
NetworkProcessor network,
String encoding,
CSSParserFactory.SourceType type,
Element inline,
boolean inlinePriority,
URL base)
Parses source of given type
|
StyleSheet |
CSSParserFactory.parse(Object source,
NetworkProcessor network,
String encoding,
CSSParserFactory.SourceType type,
URL base)
Parses source of given type.
|
protected StyleSheet |
CSSParserFactory.parseAndImport(Object source,
NetworkProcessor network,
String encoding,
CSSParserFactory.SourceType type,
StyleSheet sheet,
Preparator preparator,
URL base,
List<MediaQuery> media)
Parses the source using the given infrastructure and returns the resulting style sheet.
|
| Modifier and Type | Method and Description |
|---|---|
protected static StyleSheet |
CSSParserFactory.addRulesToStyleSheet(RuleList rules,
StyleSheet sheet) |
StyleSheet |
CSSParserFactory.append(Object source,
NetworkProcessor network,
String encoding,
CSSParserFactory.SourceType type,
Element inline,
boolean inlinePriority,
StyleSheet sheet,
URL base)
Appends parsed source to passed style sheet.
|
StyleSheet |
CSSParserFactory.append(Object source,
NetworkProcessor network,
String encoding,
CSSParserFactory.SourceType type,
StyleSheet sheet,
URL base)
Appends parsed source to passed style sheet.
|
protected StyleSheet |
CSSParserFactory.parseAndImport(Object source,
NetworkProcessor network,
String encoding,
CSSParserFactory.SourceType type,
StyleSheet sheet,
Preparator preparator,
URL base,
List<MediaQuery> media)
Parses the source using the given infrastructure and returns the resulting style sheet.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<StyleSheet> |
Analyzer.sheets
The style sheets to be processed.
|
| Modifier and Type | Method and Description |
|---|---|
static Analyzer.OrderedRule[] |
AnalyzerUtil.getApplicableRules(List<StyleSheet> sheets,
Element element,
MediaSpec mediaspec)
Returns all applicable rules for an element
|
static Analyzer.Holder |
AnalyzerUtil.getClassifiedRules(List<StyleSheet> sheets,
MediaSpec mediaspec) |
| Constructor and Description |
|---|
Analyzer(StyleSheet sheet)
Creates the analyzer for a single style sheet.
|
DirectAnalyzer(StyleSheet sheet)
Creates the analyzer for a single style sheet.
|
| Constructor and Description |
|---|
Analyzer(List<StyleSheet> sheets)
Creates the analyzer for multiple style sheets.
|
DirectAnalyzer(List<StyleSheet> sheets)
Creates the analyzer for multiple style sheets.
|
Copyright © 2019. All rights reserved.