| java.lang.Object org.apache.commons.events.observable.DefaultCollectionChangeEventFactory
Method Summary | |
public Object | clone() This method creates and returns a new
DefaultCollectionChangeEventFactory. | public CollectionChangeEvent | createAdd(Object element, boolean changed) | public CollectionChangeEvent | createAddAll(Collection element, boolean changed) | public CollectionChangeEvent | createAddAllIndexed(int index, Collection element, boolean changed) | public CollectionChangeEvent | createAddIndexed(int index, Object element, boolean changed) | public CollectionChangeEvent | createAddIterated(int index, Object element, boolean changed) | public CollectionChangeEvent | createAddNCopies(int copies, Object element, boolean changed) | public CollectionChangeEvent | createClear(boolean changed) | public CollectionChangeEvent | createPut(Object key, Object value, Object oldValue, boolean changed) | public CollectionChangeEvent | createPutAll(Map map, boolean changed) | public CollectionChangeEvent | createRemove(Object element, boolean changed) | public CollectionChangeEvent | createRemoveAll(Collection element, boolean changed) | public CollectionChangeEvent | createRemoveIndexed(int index, Object element, boolean changed) | public CollectionChangeEvent | createRemoveIterated(int index, Object element, boolean changed) | public CollectionChangeEvent | createRemoveNCopies(int copies, Object element, boolean changed) | public CollectionChangeEvent | createRemoveNext(Object element, boolean changed) | public CollectionChangeEvent | createRetainAll(Collection element, boolean changed) | public CollectionChangeEvent | createSetIndexed(int index, Object oldValue, Object element, boolean changed) | public CollectionChangeEvent | createSetIterated(int index, Object oldValue, Object element, boolean changed) | public Object | getCollection() | public void | setCollection(Object source)
Sets the source of events produced by this factory. |
DefaultCollectionChangeEventFactory | public DefaultCollectionChangeEventFactory(Object source) throws IllegalArgumentException(Code) | | Creates a new CollectionChangeEventFactory initialized
to produce events from the provided source. The source must be
one of the observable collection types (e.g.,
BoundCollection or ConstrainedCollection .)
Parameters: source - The observed collection which acts as the source of allevents produced by this factory. throws: IllegalArgumentException - if source is not one of the observable collection types. |
DefaultCollectionChangeEventFactory | public DefaultCollectionChangeEventFactory()(Code) | | |
clone | public Object clone()(Code) | | This method creates and returns a new
DefaultCollectionChangeEventFactory. As this class does not maintain
any state information other than the event source, and the
event source is the only thing which is not supposed to be
replicated according to the interface contract, this is entirely
proper.
A new DefaultCollectionChangeEventFactory with the source term uninitialized. |
setCollection | public void setCollection(Object source) throws IllegalArgumentException, UnsupportedOperationException(Code) | |
Sets the source of events produced by this factory. This method may
only be called once. Attempting to change the source of the factory
when it has previously been set will cause this method to
throw an UnsupportedOperationException . This method
is provided so that users may explicitly supply a factory to a
bound or constrained collection decorator.
Parameters: source - The observed collection which acts as the source of allevents produced by this factory. throws: IllegalArgumentException - if source is not one of the observable collection types. throws: UnsupportedOperationException - if source has previously been set. |
|
|