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.flow.dom.
Interface ClassList
-
All Superinterfaces:
Collection<String>
,Iterable<String>
,Serializable
,Set<String>
All Known Implementing Classes:
public interface ClassList extends Set<String>, Serializable
Representation of the class names for an
Element
.Since:
1.0
Author:
Vaadin Ltd
-
-
Method Summary
All Methods Modifier and Type Method Description default boolean
set(String className, boolean set)
Sets or removes the given class name, based on the
set
parameter.-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Method Detail
-
set
default boolean set(String className, boolean set)
Sets or removes the given class name, based on the
set
parameter.Parameters:
className
- the class name to set or removeset
- true to set the class name, false to remove itReturns:
true if the class list was modified (class name added or removed), false otherwise
-
-