net.sourceforge.atunes.kernel.handlers
Class HotkeyHandler

java.lang.Object
  extended by net.sourceforge.atunes.kernel.handlers.HotkeyHandler
All Implemented Interfaces:
ApplicationFinishListener

public class HotkeyHandler
extends java.lang.Object
implements ApplicationFinishListener

Handler for global hotkeys and Intellitype keys.


Method Summary
 void applicationFinish()
          Release JIntellitype ressources.
static boolean areHotkeysAndIntellitypeSupported()
          Checks if hotkeys and Intellitype are supported.
 void enableHotkeys(boolean enable)
          Enables or disables hotkeys.
 java.lang.String[][] getHotkeyDescription()
          Returns an array with hotkeys and their descrption.
static HotkeyHandler getInstance()
          Gets the single instance of HotkeyHandler.
 void onHotKey(int id)
           
 void onIntellitype(int command)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

areHotkeysAndIntellitypeSupported

public static boolean areHotkeysAndIntellitypeSupported()
Checks if hotkeys and Intellitype are supported.

Returns:
if hotkeys and Intellitype are supported

getInstance

public static HotkeyHandler getInstance()
Gets the single instance of HotkeyHandler.

Returns:
single instance of HotkeyHandler

enableHotkeys

public void enableHotkeys(boolean enable)
Enables or disables hotkeys.

Parameters:
enable - if hotkeys should be enabled

applicationFinish

public void applicationFinish()
Release JIntellitype ressources.

Specified by:
applicationFinish in interface ApplicationFinishListener

getHotkeyDescription

public java.lang.String[][] getHotkeyDescription()
Returns an array with hotkeys and their descrption.

Returns:
an array with hotkeys and their descrption

onHotKey

public void onHotKey(int id)

onIntellitype

public void onIntellitype(int command)


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.