de.grogra.util
public class KeyDescriptionImpl extends java.lang.Object implements KeyDescription
ACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLE| Constructor and Description |
|---|
KeyDescriptionImpl(java.lang.String key,
I18NBundle bundle,
java.lang.String bundleKey,
Type type,
Quantity quantity) |
KeyDescriptionImpl(java.lang.String key,
java.lang.String description,
Type type,
Quantity quantity) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getDescription(java.lang.String type)
Returns the description associated with the given
type. |
java.lang.String |
getKey()
Returns the key which is described by this instance.
|
Quantity |
getQuantity()
Returns the quantity of values which are associated with the key.
|
Type |
getType()
Returns the type of values which are associated with the key.
|
public KeyDescriptionImpl(java.lang.String key,
I18NBundle bundle,
java.lang.String bundleKey,
Type type,
Quantity quantity)
public java.lang.Object getDescription(java.lang.String type)
Describedtype.
type has to be one of the predefined constants
of this interface, the returned value has to conform to the
specification of the used constant.getDescription in interface Describedtype - the type of descriptionnull if no description is availablepublic java.lang.String getKey()
KeyDescriptiongetKey in interface KeyDescriptionpublic Quantity getQuantity()
KeyDescriptiongetQuantity in interface KeyDescriptionpublic Type getType()
KeyDescriptiongetType in interface KeyDescription