View Javadoc

1   /**
2    * JIntellitype
3    * -----------------
4    * Copyright 2005-2008 Emil A. Lefkof III, Melloware Inc.
5    *
6    * I always give it my best shot to make a program useful and solid, but
7    * remeber that there is absolutely no warranty for using this program as
8    * stated in the following terms:
9    *
10   * Licensed under the Apache License, Version 2.0 (the "License");
11   * you may not use this file except in compliance with the License.
12   * You may obtain a copy of the License at
13   *
14   *     http://www.apache.org/licenses/LICENSE-2.0
15   *
16   * Unless required by applicable law or agreed to in writing, software
17   * distributed under the License is distributed on an "AS IS" BASIS,
18   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19   * See the License for the specific language governing permissions and
20   * limitations under the License.
21   */
22  package com.melloware.jintellitype;
23  
24  
25  /**
26   * Listener interface for Windows Hotkey events registered using the
27   * Windows API call RegisterHotKey to globally listen for a key combination
28   * regardless if your application has focus or not.
29   * <p>
30   * Copyright (c) 1999-2008
31   * Melloware, Inc. <http://www.melloware.com>
32   * @author Emil A. Lefkof III <info@melloware.com>
33   * @version 1.3.1
34   * 
35   * @see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/registerhotkey.asp
36   */
37  public interface HotkeyListener
38  {
39  	/**
40  	 * Event fired when a WM_HOTKEY message is received that was initiated
41  	 * by this application.
42  	 * <p>
43  	 * @param identifier the unique Identifer the Hotkey was assigned
44  	 */
45  	void onHotKey( int identifier );
46  }