|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<HandlerType>
com.google.gwt.widgetideas.client.events.Handlers<HandlerType>
HandlerType
- handler typepublic class Handlers<HandlerType extends EventHandler>
Generic handlers collection.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
Handlers()
|
Method Summary | ||
---|---|---|
static
|
add(Handlers<T> collection,
T handler)
Adds a handler to a handler collection. |
|
boolean |
fire(AbstractEvent event)
Fires the given event. |
|
static boolean |
remove(Handlers collection,
EventHandler handler)
Removes the handler from the collection if present. |
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 |
---|
public Handlers()
Method Detail |
---|
public static <T extends EventHandler> Handlers<T> add(Handlers<T> collection, T handler)
T
- the handler typecollection
- the handler collectionhandler
- the handler to be added
public static boolean remove(Handlers collection, EventHandler handler)
collection
- the collectionhandler
- the handler to be removedpublic boolean fire(AbstractEvent event)
event
- the event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |