1 /*
2 * Copyright 2006-2016 The JGUIraffe Team.
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 net.sf.jguiraffe.gui.builder.event;
17
18 import net.sf.jguiraffe.gui.forms.ComponentHandler;
19
20 /**
21 * <p>
22 * A specific event class for change events.
23 * </p>
24 * <p>
25 * Change events are caused by components that react on changes by the user,
26 * e.g. a text field in which text was typed or a combo or list box from which an
27 * item was selected. Because a wide variety of source events and components are
28 * possible there is no default set of properties to describe the change. But by
29 * using the provided component handler it should be possible to access the new
30 * value of the affected component.
31 * </p>
32 *
33 * @author Oliver Heger
34 * @version $Id: FormChangeEvent.java 205 2012-01-29 18:29:57Z oheger $
35 */
36 public class FormChangeEvent extends FormEvent
37 {
38 /**
39 * The serial version UID.
40 */
41 private static final long serialVersionUID = -8290185554329676174L;
42
43 /**
44 * Creates a new instance of <code>FormChangeEvent</code> and initializes
45 * it.
46 *
47 * @param source the source event
48 * @param handler the component handler
49 * @param name the component's name
50 */
51 public FormChangeEvent(Object source, ComponentHandler<?> handler, String name)
52 {
53 super(source, handler, name);
54 }
55 }