|
Preferences Editor | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.ResourceBundle
java.util.ListResourceBundle
de.jppietsch.util.RscBundle
Convenient base class for resource bundles. It provides some convenience methods to access resource bundles and to create non-text resources.
Nested Class Summary |
Nested classes inherited from class java.util.ResourceBundle |
|
Field Summary | |
static String |
ACCEL
|
static String |
CMD
|
private Object[][] |
contents
|
protected static int |
DELETE
Convenience constant to avoid import of KeyEvent . |
protected static int |
F1
Convenience constant to avoid import of KeyEvent . |
protected static int |
F10
Convenience constant to avoid import of KeyEvent . |
protected static int |
F11
Convenience constant to avoid import of KeyEvent . |
protected static int |
F12
Convenience constant to avoid import of KeyEvent . |
protected static int |
F2
Convenience constant to avoid import of KeyEvent . |
protected static int |
F3
Convenience constant to avoid import of KeyEvent . |
protected static int |
F4
Convenience constant to avoid import of KeyEvent . |
protected static int |
F5
Convenience constant to avoid import of KeyEvent . |
protected static int |
F6
Convenience constant to avoid import of KeyEvent . |
protected static int |
F7
Convenience constant to avoid import of KeyEvent . |
protected static int |
F8
Convenience constant to avoid import of KeyEvent . |
protected static int |
F9
Convenience constant to avoid import of KeyEvent . |
static String |
ICON
|
protected static int |
INSERT
Convenience constant to avoid import of KeyEvent . |
static String |
LONG
|
static String |
MNEMO
|
static String |
NAME
Suffix to build resource keys for text of buttons or menus. |
static String |
SHORT
|
Fields inherited from class java.util.ListResourceBundle |
|
Fields inherited from class java.util.ResourceBundle |
parent |
Constructor Summary | |
RscBundle()
|
Method Summary | |
protected static KeyStroke |
accel(char aCharacter)
Creates a key stroke which represents a control-key character. |
protected static KeyStroke |
altAccel(int aKeyCode)
Creates an alted key stroke.. |
protected abstract Object[][] |
contents()
|
protected static KeyStroke |
ctrlAccel(int aKeyCode)
Creates a control key stroke.. |
static RscBundle |
getBundle(Class aResourceBundleClass)
|
protected Object[][] |
getContents()
|
int |
getMnemonic(String aKeyPrefix)
Returns a localized mnemonic. |
String |
getName(String aKeyPrefix)
Returns a resource for a name of a button or menu. |
protected Icon |
icon(String aPngName)
|
private static int |
keyCode(char aCharacter)
|
protected static Integer |
mnemo(char aCharacter)
|
protected static KeyStroke |
shiftAccel(int aKeyCode)
Creates a shifted key stroke.. |
Methods inherited from class java.util.ListResourceBundle |
getKeys, handleGetObject |
Methods inherited from class java.util.ResourceBundle |
getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String NAME
public static final String SHORT
public static final String LONG
public static final String ICON
public static final String CMD
public static final String ACCEL
public static final String MNEMO
protected static final int F1
KeyEvent
.
protected static final int F2
KeyEvent
.
protected static final int F3
KeyEvent
.
protected static final int F4
KeyEvent
.
protected static final int F5
KeyEvent
.
protected static final int F6
KeyEvent
.
protected static final int F7
KeyEvent
.
protected static final int F8
KeyEvent
.
protected static final int F9
KeyEvent
.
protected static final int F10
KeyEvent
.
protected static final int F11
KeyEvent
.
protected static final int F12
KeyEvent
.
protected static final int DELETE
KeyEvent
.
protected static final int INSERT
KeyEvent
.
private Object[][] contents
Constructor Detail |
public RscBundle()
Method Detail |
protected final Object[][] getContents()
public static RscBundle getBundle(Class aResourceBundleClass)
public String getName(String aKeyPrefix)
aKeyPrefix
- from which the resource key is constructed by
appending NAME
.
MissingResourceException
- If there is no such resource.public int getMnemonic(String aKeyPrefix)
aKeyPrefix
- from which the resource key is constructed by
appending MNEMO
.
MissingResourceException
- If there is no such resource.protected Icon icon(String aPngName)
protected static KeyStroke accel(char aCharacter)
aCharacter
- to be pressed together with control.
protected static KeyStroke ctrlAccel(int aKeyCode)
aKeyCode
- A key code like F1
or INSERT
.
protected static KeyStroke altAccel(int aKeyCode)
aKeyCode
- A key code like F1
or INSERT
.
protected static KeyStroke shiftAccel(int aKeyCode)
aKeyCode
- A key code like F1
or INSERT
.
protected static Integer mnemo(char aCharacter)
protected abstract Object[][] contents()
private static int keyCode(char aCharacter)
|
Preferences Editor | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |