public final class StyleClassSet extends Object
Node
may be in more than
one pseudo-class state. States
is used to aggregate the active
pseudo-class state of a Node
.Constructor and Description |
---|
StyleClassSet()
Create an empty set of StyleClass
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(T t) |
boolean |
addAll(Collection<? extends T> c) |
void |
addListener(InvalidationListener invalidationListener)
Adds an
InvalidationListener which will be notified whenever the
Observable becomes invalid. |
void |
addListener(SetChangeListener<? super T> setChangeListener)
Add a listener to this observable set.
|
protected com.sun.javafx.css.StyleClass |
cast(Object o) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object obj) |
protected long[] |
getBits() |
protected int |
getIndex(com.sun.javafx.css.StyleClass t) |
protected com.sun.javafx.css.StyleClass |
getT(int index) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<T> |
iterator()
This returned iterator is not fail-fast.
|
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
void |
removeListener(InvalidationListener invalidationListener)
Removes the given listener from the list of listeners, that are notified
whenever the value of the
Observable becomes invalid. |
void |
removeListener(SetChangeListener<? super T> setChangeListener)
Tries to removed a listener from this observable set.
|
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
spliterator
parallelStream, removeIf, stream
public Object[] toArray()
public <T> T[] toArray(T[] a)
protected com.sun.javafx.css.StyleClass cast(Object o)
protected com.sun.javafx.css.StyleClass getT(int index)
protected int getIndex(com.sun.javafx.css.StyleClass t)
public int size()
size
in interface Collection<T>
size
in interface Set<T>
public boolean isEmpty()
isEmpty
in interface Collection<T>
isEmpty
in interface Set<T>
public Iterator<T> iterator()
public boolean add(T t)
add
in interface Collection<T>
add
in interface Set<T>
public boolean remove(Object o)
remove
in interface Collection<T>
remove
in interface Set<T>
public boolean contains(Object o)
contains
in interface Collection<T>
contains
in interface Set<T>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<T>
containsAll
in interface Set<T>
public boolean addAll(Collection<? extends T> c)
addAll
in interface Collection<T>
addAll
in interface Set<T>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<T>
retainAll
in interface Set<T>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<T>
removeAll
in interface Set<T>
public void clear()
clear
in interface Collection<T>
clear
in interface Set<T>
public int hashCode()
public boolean equals(Object obj)
protected long[] getBits()
public void addListener(SetChangeListener<? super T> setChangeListener)
ObservableSet
addListener
in interface ObservableSet<T>
setChangeListener
- the listener for listening to the set changespublic void removeListener(SetChangeListener<? super T> setChangeListener)
ObservableSet
removeListener
in interface ObservableSet<T>
setChangeListener
- a listener to removepublic void addListener(InvalidationListener invalidationListener)
Observable
InvalidationListener
which will be notified whenever the
Observable
becomes invalid. If the same
listener is added more than once, then it will be notified more than
once. That is, no check is made to ensure uniqueness.
Note that the same actual InvalidationListener
instance may be
safely registered for different Observables
.
The Observable
stores a strong reference to the listener
which will prevent the listener from being garbage collected and may
result in a memory leak. It is recommended to either unregister a
listener by calling removeListener
after use or to use an instance of
WeakInvalidationListener
avoid this situation.
addListener
in interface Observable
invalidationListener
- The listener to registerObservable.removeListener(InvalidationListener)
public void removeListener(InvalidationListener invalidationListener)
Observable
Observable
becomes invalid.
If the given listener has not been previously registered (i.e. it was never added) then this method call is a no-op. If it had been previously added then it will be removed. If it had been added more than once, then only the first occurrence will be removed.
removeListener
in interface Observable
invalidationListener
- The listener to removeObservable.addListener(InvalidationListener)
Copyright © 2020. All rights reserved.