java.lang.Object
de.grogra.util.KeyDescriptionImpl
- All Implemented Interfaces:
Described
,KeyDescription
-
Field Summary
Fields inherited from interface de.grogra.util.Described
ACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLE
-
Constructor Summary
ConstructorDescriptionKeyDescriptionImpl
(String key, I18NBundle bundle, String bundleKey, Type type, Quantity quantity) KeyDescriptionImpl
(String key, String description, Type type, Quantity quantity) -
Method Summary
Modifier and TypeMethodDescriptiongetDescription
(String type) Returns the description associated with the giventype
.getKey()
Returns the key which is described by this instance.Returns the quantity of values which are associated with the key.getType()
Returns the type of values which are associated with the key.
-
Constructor Details
-
KeyDescriptionImpl
public KeyDescriptionImpl(String key, I18NBundle bundle, String bundleKey, Type type, Quantity quantity) -
KeyDescriptionImpl
-
-
Method Details
-
getDescription
Description copied from interface:Described
Returns the description associated with the giventype
.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.- Specified by:
getDescription
in interfaceDescribed
- Parameters:
type
- the type of description- Returns:
- the description, or
null
if no description is available
-
getKey
Description copied from interface:KeyDescription
Returns the key which is described by this instance.- Specified by:
getKey
in interfaceKeyDescription
- Returns:
- the key
-
getType
Description copied from interface:KeyDescription
Returns the type of values which are associated with the key.- Specified by:
getType
in interfaceKeyDescription
- Returns:
- the type of values
-
getQuantity
Description copied from interface:KeyDescription
Returns the quantity of values which are associated with the key.- Specified by:
getQuantity
in interfaceKeyDescription
- Returns:
- the quantity of values
-