01: /*
02: * $Id: IOnChangeListener.java 459252 2006-02-13 04:10:14Z jonl $
03: * $Revision: 459252 $ $Date: 2006-02-13 05:10:14 +0100 (Mon, 13 Feb 2006) $
04: *
05: * ==============================================================================
06: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
07: * use this file except in compliance with the License. You may obtain a copy of
08: * the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15: * License for the specific language governing permissions and limitations under
16: * the License.
17: */
18: package wicket.markup.html.form;
19:
20: import wicket.IRequestListener;
21: import wicket.RequestListenerInterface;
22:
23: /**
24: * Listener method for OnChange events of dropdown lists and onclick events of
25: * CheckBoxes and RadioChoice components. When any of those components
26: * wantOnSelectionChangedNotifications() method returns true, a javascript
27: * onchange or onclick handler will be generated that calls this interface
28: * method when the user changes the selection.
29: *
30: * @author Eelco Hillenius
31: */
32: public interface IOnChangeListener extends IRequestListener {
33: /** Listener interface */
34: public static final RequestListenerInterface INTERFACE = new RequestListenerInterface(
35: IOnChangeListener.class);
36:
37: /**
38: * Called when a new option is selected.
39: */
40: void onSelectionChanged();
41: }
|