|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
org.eigenbase.util.property.Property.TriggerList
private static class Property.TriggerList
A trigger list a list of triggers associated with a given property.
A trigger list is associated with a property key, and contains zero
or more Trigger
objects.
Each Trigger
is stored in a WeakReference
so that
when the Trigger is only reachable via weak references the Trigger will
be be collected and the contents of the WeakReference will be set to
null.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
private |
Property.TriggerList()
|
Method Summary | |
---|---|
(package private) void |
add(Trigger trigger)
Adds a Trigger, wrapping it in a WeakReference. |
private Trigger |
convert(Object o)
Converts a trigger or a weak reference to a trigger into a trigger. |
(package private) void |
execute(Property property,
String value)
Executes every Trigger in this Property.TriggerList , passing
in the property key whose change was the casue. |
(package private) void |
remove(Trigger trigger)
Removes the given Trigger. |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
---|
private Property.TriggerList()
Method Detail |
---|
void add(Trigger trigger)
trigger
- void remove(Trigger trigger)
In addition, removes any WeakReference
that is empty.
trigger
- void execute(Property property, String value) throws Trigger.VetoRT
Trigger
in this Property.TriggerList
, passing
in the property key whose change was the casue.
In addition, removes any WeakReference
that is empty.
Synchronizes on property
while modifying the trigger list.
property
- The property whose change caused this property to
fire
Trigger.VetoRT
private Trigger convert(Object o)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |