org.keridwen.sample.i18n
Enum SampleDictionary
java.lang.Object
java.lang.Enum<SampleDictionary>
org.keridwen.sample.i18n.SampleDictionary
- All Implemented Interfaces:
- Serializable, Comparable<SampleDictionary>, Dictionary<DefaultDictionaryHelper>
public enum SampleDictionary
- extends Enum<SampleDictionary>
- implements Dictionary<DefaultDictionaryHelper>
STRING
public static final SampleDictionary STRING
COLOR
public static final SampleDictionary COLOR
ICON
public static final SampleDictionary ICON
FONT
public static final SampleDictionary FONT
IMAGE
public static final SampleDictionary IMAGE
DATE
public static final SampleDictionary DATE
KEY_STROKE
public static final SampleDictionary KEY_STROKE
MNEMONIC
public static final SampleDictionary MNEMONIC
values
public static SampleDictionary[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (SampleDictionary c : SampleDictionary.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static SampleDictionary valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getKey
public String getKey()
- Specified by:
getKey
in interface Dictionary<DefaultDictionaryHelper>
getDefaultString
public String getDefaultString()
- Specified by:
getDefaultString
in interface Dictionary<DefaultDictionaryHelper>
getString
public String getString()
- Specified by:
getString
in interface Dictionary<DefaultDictionaryHelper>
getString
public String getString(Object... objects)
- Specified by:
getString
in interface Dictionary<DefaultDictionaryHelper>
getImage
public Image getImage()
- Specified by:
getImage
in interface Dictionary<DefaultDictionaryHelper>
getIcon
public Icon getIcon()
- Specified by:
getIcon
in interface Dictionary<DefaultDictionaryHelper>
getColor
public Color getColor()
- Specified by:
getColor
in interface Dictionary<DefaultDictionaryHelper>
getKeyStroke
public KeyStroke getKeyStroke()
- Specified by:
getKeyStroke
in interface Dictionary<DefaultDictionaryHelper>
getMnemonic
public int getMnemonic()
- Specified by:
getMnemonic
in interface Dictionary<DefaultDictionaryHelper>
getDate
public Date getDate()
- Specified by:
getDate
in interface Dictionary<DefaultDictionaryHelper>
getFont
public Font getFont()
- Specified by:
getFont
in interface Dictionary<DefaultDictionaryHelper>
isEntryOfType
public boolean isEntryOfType(EntryType typeToCheck)
- Specified by:
isEntryOfType
in interface Dictionary<DefaultDictionaryHelper>
getEntryType
public EntryType getEntryType()
- Specified by:
getEntryType
in interface Dictionary<DefaultDictionaryHelper>
getEntryClass
public Class<?> getEntryClass()
- Specified by:
getEntryClass
in interface Dictionary<DefaultDictionaryHelper>
getHelper
public DefaultDictionaryHelper getHelper()
- Specified by:
getHelper
in interface Dictionary<DefaultDictionaryHelper>
getDefaultLocale
public Locale getDefaultLocale()
- Specified by:
getDefaultLocale
in interface Dictionary<DefaultDictionaryHelper>
getResourceBundleBaseName
public String getResourceBundleBaseName()
- Specified by:
getResourceBundleBaseName
in interface Dictionary<DefaultDictionaryHelper>
setLocale
public static void setLocale(Locale localeToSet)
- Sets the dictionary locale to the given locale
- Parameters:
localeToSet
- the locale to set
Copyright © 2011-2013 Artenum. All Rights Reserved.