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 Intellitype events. Intellitype are Windows
27 * App Commands that are specialand were introduced with Microsoft Keyboards
28 * that had special keys for Play, Pause, Stop, Next etc for controlling
29 * Media applications like Windows Media Player, Itunes, and Winamp.
30 * <p>
31 * If you have ever wanted your Swing/SWT application to respond to these global
32 * events you now can with JIntellitype. Just implement this interface and
33 * you can now take action when those special Media keys are pressed.
34 * <p>
35 * Copyright (c) 1999-2008
36 * Melloware, Inc. <http://www.melloware.com>
37 * @author Emil A. Lefkof III <info@melloware.com>
38 * @version 1.3.1
39 *
40 * @see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputmessages/wm_appcommand.asp
41 */
42 public interface IntellitypeListener
43 {
44 /**
45 * Event fired when a WM_APPCOMMAND message is received that was initiated
46 * by this application.
47 * <p>
48 * @param command the WM_APPCOMMAND that was pressed
49 */
50 void onIntellitype( int command );
51 }