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>
public class ThemeListImpl extends Object implements ThemeList, Serializable
Default implementation for theThemeListthat 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringTHEME_ATTRIBUTE_NAME
-
Constructor Summary
Constructors Constructor Description ThemeListImpl(Element element)Creates new theme list for element specified.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(String themeName)booleanaddAll(Collection<? extends String> themeNames)voidclear()booleancontains(Object themeName)booleancontainsAll(Collection<?> themeNames)booleanisEmpty()Iterator<String>iterator()booleanremove(Object themeName)booleanremoveAll(Collection<?> themeNamesToRemove)booleanretainAll(Collection<?> themeNamesToRetain)intsize()Object[]toArray()<T> T[]toArray(T[] a)StringtoString()-
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 Detail
-
THEME_ATTRIBUTE_NAME
public static final String THEME_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ThemeListImpl
public ThemeListImpl(Element element)
Creates new theme list for element specified.- Parameters:
element- the element to reflect theme changes onto
-
-
Method Detail
-
add
public boolean add(String themeName)
-
addAll
public boolean addAll(Collection<? extends String> themeNames)
-
remove
public boolean remove(Object themeName)
-
retainAll
public boolean retainAll(Collection<?> themeNamesToRetain)
-
removeAll
public boolean removeAll(Collection<?> themeNamesToRemove)
-
clear
public void clear()
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
contains
public boolean contains(Object themeName)
-
containsAll
public boolean containsAll(Collection<?> themeNames)
- Specified by:
containsAllin interfaceCollection<String>- Specified by:
containsAllin interfaceSet<String>
-
-