|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.util.shop.HotkeyShop
public class HotkeyShop
Factory class for hotkey concerns in RSSOwl *
| Field Summary | |
|---|---|
static java.util.Hashtable |
hotKeys
Hotkeys for common tasks. |
static java.lang.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 java.lang.String |
getHotkeyName(java.lang.String itemName)
Get the name of a hotkey for the given item. |
static int |
getHotkeyValue(java.lang.String itemName)
Get the value of a hotkey for the given item. |
static void |
initDefaultAccelerators()
Assign application default hotkeys. |
static boolean |
isHotkeySet(java.lang.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(java.lang.String itemName,
java.lang.String keyName,
int keyValue)
Set a hotkey to the item. |
static void |
setHotkey(java.lang.String itemName,
java.lang.String keyName,
java.lang.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 java.util.Hashtable hotKeys
public static final java.lang.String NULL_ACCELERATOR_NAME
public static final int NULL_ACCELERATOR_VALUE
| Constructor Detail |
|---|
private HotkeyShop()
| Method Detail |
|---|
public static java.lang.String getHotkeyName(java.lang.String itemName)
itemName - The name of the item.
public static int getHotkeyValue(java.lang.String itemName)
itemName - The name of the item.
public static void initDefaultAccelerators()
public static boolean isHotkeySet(java.lang.String itemName)
itemName - The name of the item.
public static boolean isPrintableAccelerator(int value)
value - The key value to check.
public static void setHotkey(java.lang.String itemName,
java.lang.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(java.lang.String itemName,
java.lang.String keyName,
java.lang.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 | |||||||||