Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
StandardPreModificationEvent |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 2003-2004 The Apache Software Foundation | |
3 | * | |
4 | * Licensed under the Apache License, Version 2.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.apache.org/licenses/LICENSE-2.0 | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | package org.apache.commons.events.observable.standard; | |
17 | ||
18 | import org.apache.commons.events.observable.ModificationHandler; | |
19 | import org.apache.commons.events.observable.ObservableCollection; | |
20 | ||
21 | /** | |
22 | * Event class that encapsulates all the event information for a | |
23 | * standard collection event. | |
24 | * <p> | |
25 | * The information stored in this event is all that is available as | |
26 | * parameters or return values. | |
27 | * In addition, the <code>size</code> method is used on the collection. | |
28 | * All objects used are the real objects from the method calls, not clones. | |
29 | * | |
30 | * @since Commons Events 1.0 | |
31 | * @version $Revision: 155443 $ $Date: 2005-02-26 13:19:51 +0000 (Sat, 26 Feb 2005) $ | |
32 | * | |
33 | * @author Stephen Colebourne | |
34 | */ | |
35 | public class StandardPreModificationEvent extends StandardModificationEvent { | |
36 | ||
37 | // Constructor | |
38 | //----------------------------------------------------------------------- | |
39 | /** | |
40 | * Constructor. | |
41 | * | |
42 | * @param obsCollection the event source | |
43 | * @param handler the handler | |
44 | * @param type the event type | |
45 | * @param preSize the size before the change | |
46 | * @param index the index that changed | |
47 | * @param object the value that changed | |
48 | * @param repeat the number of repeats | |
49 | * @param previous the previous value being removed/replaced | |
50 | * @param view the view collection, null if event from main collection | |
51 | * @param viewOffset the offset within the main collection of the view, -1 if unknown | |
52 | */ | |
53 | public StandardPreModificationEvent( | |
54 | final ObservableCollection obsCollection, | |
55 | final ModificationHandler handler, | |
56 | final int type, | |
57 | final int preSize, | |
58 | final int index, | |
59 | final Object object, | |
60 | final int repeat, | |
61 | final Object previous, | |
62 | final ObservableCollection view, | |
63 | final int viewOffset) { | |
64 | ||
65 | 0 | super(obsCollection, handler, type, preSize, index, |
66 | object, repeat, previous, view, viewOffset); | |
67 | 0 | } |
68 | ||
69 | } |