View Javadoc

1   /*
2   Copyright 2010 James Pether Sörling Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 
3   	$Id
4   */
5   package com.hack23.cia.web.common;
6   
7   import thinwire.ui.event.ActionListener;
8   import thinwire.ui.event.KeyPressListener;
9   
10  /***
11   * The listener interface for receiving controllerAction events.
12   * The class that is interested in processing a controllerAction
13   * event implements this interface, and the object created
14   * with that class is registered with a component using the
15   * component's <code>addControllerActionListener<code> method. When
16   * the controllerAction event occurs, that object's appropriate
17   * method is invoked.
18   *
19   * @see ControllerActionEvent
20   */
21  public interface ControllerActionListener extends ActionListener,
22          KeyPressListener {
23  
24  	/***
25  	 * Handle user action.
26  	 *
27  	 * @param userObject the user object
28  	 */
29  	void handleUserAction(final Object userObject);
30  }