Class OverlayClassListProxy
- All Implemented Interfaces:
ClassList,Serializable,Iterable<String>,Collection<String>,Set<String>
Internal class that provides shared functionality for setting CSS class names
to overlay only components that support
HasStyle, such as
Dialog. Not intended to be used publicly.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
OverlayClassListProxy
-
-
Method Details
-
iterator
-
size
public int size()- Specified by:
sizein interfaceCollection<String>- Specified by:
sizein interfaceSet<String>- Specified by:
sizein classAbstractCollection<String>
-
add
- Specified by:
addin interfaceCollection<String>- Specified by:
addin interfaceSet<String>- Overrides:
addin classAbstractCollection<String>
-
bind
Description copied from interface:ClassListBinds the presence of the given class name to the provided signal so that the class is added when the signal value istrueand removed when the value isfalse.While a binding for the given class name is active, manual calls to
Set.add(Object),Set.remove(Object)orClassList.set(String, boolean)for that name will throw acom.vaadin.flow.dom.BindingActiveException. Bindings are lifecycle-aware and only active while the owningElementis in attached state; they are deactivated while the element is in detached state.Bulk operations that indiscriminately replace or clear the class list (for example
Set.clear()or setting theclassattribute viaElement.setAttribute(String, String)) clear all bindings.
-