Package tripleplay.ui
Class Stylesheet.Builder
java.lang.Object
tripleplay.ui.Stylesheet.Builder
- Enclosing class:
Stylesheet
Builds stylesheets, obtain via
Stylesheet.builder()
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(Class<?> eclass, Style.Binding<?>... styles) Adds styles for the supplied element class (in the DEFAULT mode).add
(Class<?> eclass, Style.Mode mode, Style.Binding<?>... styles) Adds styles for the supplied element class (in the specified mode).Adds styles for the supplied element class.create()
Creates a stylesheet with the previously configured style mappings.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
add
Adds styles for the supplied element class. If styles exist for said class, the supplied styles will be merged with the existing styles (with the new styles taking precedence).- Throws:
NullPointerException
- if styles are added aftercreate()
is called.
-
add
Adds styles for the supplied element class (in the DEFAULT mode).- Throws:
NullPointerException
- if styles are added aftercreate()
is called.
-
add
Adds styles for the supplied element class (in the specified mode).- Throws:
NullPointerException
- if styles are added aftercreate()
is called.
-
create
Creates a stylesheet with the previously configured style mappings.
-