Package org.patternfly.style
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
Constructs a utility variable with the given elements.- Parameters:
firstElement- the first element to include in the variable nameotherElements- additional elements to append to the variable name- Returns:
- a new
Variableobject with the constructed variable name
-
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, VariableAssignments.HTMLBuilder<E,B>> B> applyTo(HTMLElementStyleMethods<E, B> element) -
applyTo
public <E extends SVGElement,B extends TypedBuilder<E, VariableAssignments.SVGBuilder<E,B>> B> applyTo(SVGElementStyleMethods<E, B> element) -
applyTo
-