View Javadoc

1   package com.explosion.expf;
2   
3   /* =============================================================================
4    *       
5    *     Copyright 2004 Stephen Cowx
6    *
7    *     Licensed under the Apache License, Version 2.0 (the "License");
8    *     you may not use this file except in compliance with the License.
9    *     You may obtain a copy of the License at
10   *
11   *     http://www.apache.org/licenses/LICENSE-2.0
12   *
13   *     Unless required by applicable law or agreed to in writing, software
14   *     distributed under the License is distributed on an "AS IS" BASIS,
15   *     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   *     See the License for the specific language governing permissions and
17   *     limitations under the License.
18   * 
19   * =============================================================================
20   */
21  
22  import java.awt.event.ActionListener;
23  import java.util.Map;
24  
25  /***
26   * Author: Stephen Cowx
27   * Date: Dec 15, 2002
28   * Time: 1:29:35 PM
29   */
30  
31  public interface ExpActionListener extends ActionListener
32  {
33    /***
34     * This method should return a Map whose keys are a list of events which
35     * your implementation of the actionListener listens for. It is used by the
36     * ExpCompound Listener for deciding whether or not to send an event to your
37     * listener.  This allows it to make some performance optimisations. If this
38     * method is not properly implemented then it is highly unlikely that any events
39     * will be sent to your listener.
40     * @return
41     */
42    public Map getListensFor();
43  
44  }