|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sourceforge.rssowl.util.shop.HotkeyShop
Factory class for hotkey concerns in RSSOwl *
| Field Summary | |
static Hashtable |
hotKeys
Hotkeys for common tasks. |
static String |
NULL_ACCELERATOR_NAME
Default name for a NULL Accelerator |
static int |
NULL_ACCELERATOR_VALUE
Setting the null accelerator to a MenuItem will remove the accelerator from the item. |
| Constructor Summary | |
private |
HotkeyShop()
This utility class constructor is hidden |
| Method Summary | |
static String |
getHotkeyName(String itemName)
Get the name of a hotkey for the given item. |
static int |
getHotkeyValue(String itemName)
Get the value of a hotkey for the given item. |
static void |
initDefaultAccelerators()
Assign application default hotkeys. |
static boolean |
isHotkeySet(String itemName)
Check if a hotkey is set for the given item. |
static boolean |
isPrintableAccelerator(int value)
This Method returns TRUE in case the given accelerator is printable, e.g. |
static void |
setHotkey(String itemName,
String keyName,
int keyValue)
Set a hotkey to the item. |
static void |
setHotkey(String itemName,
String keyName,
String keyValue)
Set a hotkey to the item. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static Hashtable hotKeys
public static final String NULL_ACCELERATOR_NAME
public static final int NULL_ACCELERATOR_VALUE
| Constructor Detail |
private HotkeyShop()
| Method Detail |
public static String getHotkeyName(String itemName)
itemName - The name of the item.
public static int getHotkeyValue(String itemName)
itemName - The name of the item.
public static void initDefaultAccelerators()
public static boolean isHotkeySet(String itemName)
itemName - The name of the item.
public static boolean isPrintableAccelerator(int value)
value - The key value to check.
public static void setHotkey(String itemName,
String keyName,
int keyValue)
itemName - The I18N name of the itemkeyName - The name of the hotkey (e.g. "CTRL+B")keyValue - The value of the hotkey (e.g. 22330)
public static void setHotkey(String itemName,
String keyName,
String keyValue)
itemName - The I18N name of the itemkeyName - The name of the hotkey (e.g. "CTRL+B")keyValue - The value of the hotkey (e.g. "22330")
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||