Class Variable
java.lang.Object
org.patternfly.style.Variable
Provides methods to build and apply PatternFly global and component variables.
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionapplyTo(HTMLElement element) <E extends HTMLElement, B extends TypedBuilder<E,B>>
VariableAssignments.HTMLBuilder<E, B> applyTo(HTMLElementStyleMethods<E, B> element) <E extends SVGElement, B extends TypedBuilder<E,B>>
VariableAssignments.SVGBuilder<E, B> applyTo(SVGElementStyleMethods<E, B> element) asVar()static VariablecomponentVar(String component, String... elements) Constructs a component variable with the given component and elements.static VariableConstructs a utility variable with the given elements.
-
Field Details
-
name
-
-
Method Details
-
utilVar
-
componentVar
Constructs a component variable with the given component and elements.- Parameters:
component- the fully qualified component name built withClasses.component(String, String...)elements- optional elements to append to the component name- Returns:
- a new
Variableobject
-
asVar
-
applyTo
public <E extends HTMLElement, B extends TypedBuilder<E,B>> VariableAssignments.HTMLBuilder<E,B> applyTo(HTMLElementStyleMethods<E, B> element) -
applyTo
public <E extends SVGElement, B extends TypedBuilder<E,B>> VariableAssignments.SVGBuilder<E,B> applyTo(SVGElementStyleMethods<E, B> element) -
applyTo
-