We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.copilot.javarewriter.
Package com.vaadin.copilot.javarewriter
Class JavaStyleRewriter
java.lang.Object
com.vaadin.copilot.javarewriter.JavaStyleRewriter
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<JavaStyleRewriter.StyleInfo>
getStyles
(ComponentInfo componentInfo) Gets the (active) styles of a component.
static void
setStyle
(ComponentInfo componentInfo, String dashSeparatedProperty, String value) Sets the given inline style on the given component, replacing an existing style property if present.
-
Constructor Details
-
JavaStyleRewriter
public JavaStyleRewriter()
-
-
Method Details
-
getStyles
Gets the (active) styles of a component.
Parameters:
componentInfo
- the component to get the styles ofReturns:
the styles, as a list of style names and values
-
setStyle
public static void setStyle(ComponentInfo componentInfo, String dashSeparatedProperty, String value) Sets the given inline style on the given component, replacing an existing style property if present.
Parameters:
componentInfo
- the component to set the style ondashSeparatedProperty
- the style property to setvalue
- the style value to set or null to remove the style
-