Class DynamicSupportedFieldType
java.lang.Object
org.broadleafcommerce.common.presentation.client.DynamicSupportedFieldType
- All Implemented Interfaces:
Serializable,BroadleafEnumerationType
public class DynamicSupportedFieldType
extends Object
implements Serializable, BroadleafEnumerationType
This extensible enumeration controls the field types that are available for users to choose from when creating
FieldDefinitions in the admin tool. This list should be a strict subset of
SupportedFieldType and will
throw an exception if a non-matching type is added.- Author:
- Andre Azzolini (apazzolini)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DynamicSupportedFieldTypestatic final DynamicSupportedFieldTypestatic final DynamicSupportedFieldTypestatic final DynamicSupportedFieldTypestatic final DynamicSupportedFieldTypestatic final DynamicSupportedFieldTypestatic final DynamicSupportedFieldTypestatic final DynamicSupportedFieldType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic DynamicSupportedFieldTypegetInstance(String type) getType()static List<DynamicSupportedFieldType>getTypes()inthashCode()protected voidstatic voidverifyLegalType(String type)
-
Field Details
-
STRING
-
HTML
-
MONEY
-
COLOR
-
ASSET_LOOKUP
-
PRODUCT_LOOKUP
-
CATEGORY_LOOKUP
-
DATE
-
-
Constructor Details
-
DynamicSupportedFieldType
public DynamicSupportedFieldType() -
DynamicSupportedFieldType
-
-
Method Details
-
getInstance
-
verifyLegalType
- Parameters:
type-- Throws:
IllegalArgumentException- when the given type does not exist inSupportedFieldType
-
getTypes
- Returns:
- a cloned list of the currently known
DynamicSupportedFieldTypes.
-
getType
- Specified by:
getTypein interfaceBroadleafEnumerationType
-
setType
-
getFriendlyType
- Specified by:
getFriendlyTypein interfaceBroadleafEnumerationType
-
hashCode
public int hashCode() -
equals
-