Interface StylesheetBuilder
public interface StylesheetBuilder
CSS Style sheet builder
- 
Method Summary
Modifier and TypeMethodDescriptionaddRule(@NotNull String selector, @NotNull Consumer<StyleProperties> consumer) Adds a rule.build()Builds the stylesheet. 
- 
Method Details
- 
addRule
StylesheetBuilder addRule(@NotNull @NotNull String selector, @NotNull @NotNull Consumer<StyleProperties> consumer) throws ParserException Adds a rule.- Parameters:
 selector- Rule selectorconsumer- Rule builder- Returns:
 this- Throws:
 ParserException- If the selector is invalid.
 - 
build
 
 -