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
ConstructorsConstructorDescriptionKeyDescriptionImpl(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:DescribedReturns the description associated with the giventype.typehas 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:
getDescriptionin interfaceDescribed- Parameters:
type- the type of description- Returns:
- the description, or
nullif no description is available
-
getKey
Description copied from interface:KeyDescriptionReturns the key which is described by this instance.- Specified by:
getKeyin interfaceKeyDescription- Returns:
- the key
-
getType
Description copied from interface:KeyDescriptionReturns the type of values which are associated with the key.- Specified by:
getTypein interfaceKeyDescription- Returns:
- the type of values
-
getQuantity
Description copied from interface:KeyDescriptionReturns the quantity of values which are associated with the key.- Specified by:
getQuantityin interfaceKeyDescription- Returns:
- the quantity of values
-