- All Implemented Interfaces:
Listener,Serializable,Cloneable,Iterable<Listener>,Collection<Listener>,List<Listener>,RandomAccess
- Enclosing interface:
- Listener
public static final class Listener.MultiplexListener
extends ArrayList<Listener>
implements Listener
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.haumacher.msgbuf.observer.Listener
Listener.MultiplexListener -
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterRemove(Observable obj, String property, int index, Object element) Informs thisListenerthat an element was removed from a repeated property with the given name.voidbeforeAdd(Observable obj, String property, int index, Object element) Informs thisListenerthat an element will be added to the repeated property with the given name.voidbeforeSet(Observable obj, String property, Object value) Informs thisListenerthat the value of the given property is to be modified.unregister(Listener removed) Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAllMethods inherited from interface de.haumacher.msgbuf.observer.Listener
afterRemove, beforeAdd
-
Constructor Details
-
MultiplexListener
Creates aListener.MultiplexListener.
-
-
Method Details
-
beforeSet
Description copied from interface:ListenerInforms thisListenerthat the value of the given property is to be modified.- Specified by:
beforeSetin interfaceListener- Parameters:
obj- TheObservableobject.property- The name of the property to be modified.value- The new value that is being set to the given property.
-
beforeAdd
Description copied from interface:ListenerInforms thisListenerthat an element will be added to the repeated property with the given name.- Specified by:
beforeAddin interfaceListener- Parameters:
obj- TheObservableobject.property- The name of the property to be modified.index- The index where the new element will be added if the property is ordered,-1otherwise.element- The new element that is being added to the given property.
-
afterRemove
Description copied from interface:ListenerInforms thisListenerthat an element was removed from a repeated property with the given name.- Specified by:
afterRemovein interfaceListener- Parameters:
obj- TheObservableobject.property- The name of the property to be modified.index- The index where the element was removed if the property is ordered,-1otherwise.element- The element that was removed from the given property.
-
register
-
unregister
-