Package com.vaadin.flow.dom.impl
Class ThemeListImpl
java.lang.Object
com.vaadin.flow.dom.impl.ThemeListImpl
- All Implemented Interfaces:
ThemeList
,Serializable
,Iterable<String>
,Collection<String>
,Set<String>
Default implementation for the
ThemeList
that stores the theme names
of the corresponding element. Makes sure that each change to the collection
is reflected in the corresponding element attribute name,
THEME_ATTRIBUTE_NAME
.
For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0.
- Author:
- Vaadin Ltd
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionThemeListImpl
(Element element) Creates new theme list for element specified. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends String> themeNames) void
clear()
boolean
boolean
containsAll
(Collection<?> themeNames) boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> themeNamesToRemove) boolean
retainAll
(Collection<?> themeNamesToRetain) int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] a) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
equals, hashCode, spliterator
-
Field Details
-
THEME_ATTRIBUTE_NAME
- See Also:
-
-
Constructor Details
-
ThemeListImpl
Creates new theme list for element specified.- Parameters:
element
- the element to reflect theme changes onto
-
-
Method Details
-
iterator
-
add
-
addAll
-
remove
-
retainAll
-
removeAll
-
clear
public void clear() -
size
public int size() -
isEmpty
public boolean isEmpty() -
toArray
-
toArray
public <T> T[] toArray(T[] a) -
contains
-
containsAll
- Specified by:
containsAll
in interfaceCollection<String>
- Specified by:
containsAll
in interfaceSet<String>
-
toString
-