public class StyleFactory extends Object
| Constructor | Description |
|---|---|
StyleFactory(StyleResolver resolver) |
| Modifier and Type | Method | Description |
|---|---|---|
AttributedString |
evaluate(String expression) |
Evaluate a style expression.
|
AttributedString |
evaluate(String format,
Object... params) |
Evaluate a style expression with format.
|
AttributedString |
style(String style,
String value) |
Encode string with style applying value.
|
AttributedString |
style(String style,
String format,
Object... params) |
Encode string with style formatted value.
|
public StyleFactory(StyleResolver resolver)
public AttributedString style(String style, String value)
style - the stylevalue - the valuepublic AttributedString style(String style, String format, Object... params)
style - the styleformat - the formatparams - the parametersstyle(String, String)public AttributedString evaluate(String expression)
expression - the expression to evaluatepublic AttributedString evaluate(String format, Object... params)
format - the formatparams - the parametersevaluate(String)Copyright © 2020. All rights reserved.