net.sourceforge.atunes.kernel.handlers
Class HotkeyHandler

java.lang.Object
  extended by net.sourceforge.atunes.kernel.handlers.HotkeyHandler

public class HotkeyHandler
extends java.lang.Object

Handler for global hotkeys and Intellitype keys.


Method Summary
static boolean areHotkeysAndIntellitypeSupported()
          Checks if hotkeys and Intellitype are supported.
 void enableHotkeys(boolean enable)
          Enables or disables hotkeys.
 void finish()
          Release JIntellitype ressources.
 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

finish

public void finish()
Release JIntellitype ressources.


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.