@ApplicationScoped public class FieldTypeManagerImpl extends Object implements FieldTypeManager
Modifier and Type | Field and Description |
---|---|
protected javax.enterprise.inject.Instance<SimpleFieldTypeBuilder> |
builders |
protected javax.enterprise.inject.Instance<ComplexFieldTypeBuilder> |
complexBuilders |
protected FieldType |
customType |
protected javax.enterprise.inject.Instance<DecoratorFieldTypeBuilder> |
decoratorBuilders |
Constructor and Description |
---|
FieldTypeManagerImpl() |
@Inject protected javax.enterprise.inject.Instance<SimpleFieldTypeBuilder> builders
@Inject protected javax.enterprise.inject.Instance<DecoratorFieldTypeBuilder> decoratorBuilders
@Inject protected javax.enterprise.inject.Instance<ComplexFieldTypeBuilder> complexBuilders
protected FieldType customType
@PostConstruct protected void init()
public String getDefaultIcon()
getDefaultIcon
in interface FieldTypeManager
public void setDefaultIcon(String defaultIcon)
setDefaultIcon
in interface FieldTypeManager
public Map<String,String> getIconsMappings()
getIconsMappings
in interface FieldTypeManager
public void setIconsMappings(Map<String,String> iconsMappings)
setIconsMappings
in interface FieldTypeManager
public List<FieldType> getFieldTypes()
getFieldTypes
in interface FieldTypeManager
public void setFieldTypes(List<FieldType> fieldTypes)
setFieldTypes
in interface FieldTypeManager
public List<FieldType> getSuitableFieldTypes(String propertyType)
getSuitableFieldTypes
in interface FieldTypeManager
propertyType
- Expected property definition that the field type should generate.Exception
- in case of errorpublic List<FieldType> getFormDecoratorTypes()
getFormDecoratorTypes
in interface FieldTypeManager
public List<FieldType> getFormComplexTypes()
getFormComplexTypes
in interface FieldTypeManager
public FieldType getTypeByCode(String typeCode, String fieldClass)
getTypeByCode
in interface FieldTypeManager
public FieldType getTypeByCode(String typeCode)
getTypeByCode
in interface FieldTypeManager
public FieldType getTypeByClass(String className)
getTypeByClass
in interface FieldTypeManager
public FieldType getSimpleTypeByClass(String className)
getSimpleTypeByClass
in interface FieldTypeManager
public FieldType getComplexTypeByClass(String className)
getComplexTypeByClass
in interface FieldTypeManager
public FieldType getDecoratorTypeByClass(String className)
getDecoratorTypeByClass
in interface FieldTypeManager
protected FieldType getFieldTypeByClass(List<FieldType> fieldTypes, String className)
public String getIconPathForCode(String code)
getIconPathForCode
in interface FieldTypeManager
public static FieldTypeManagerImpl lookup()
public boolean isDisplayableType(String typeCode)
isDisplayableType
in interface FieldTypeManager
public boolean isbaseType(String code)
isbaseType
in interface FieldTypeManager
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.