org.jbpm.formModeler.core.config
Class FieldTypeManagerImpl
java.lang.Object
org.jbpm.formModeler.core.config.FieldTypeManagerImpl
- All Implemented Interfaces:
- Serializable, FieldTypeManager
@ApplicationScoped
public class FieldTypeManagerImpl
- extends Object
- implements FieldTypeManager
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
builders
@Inject
protected javax.enterprise.inject.Instance<SimpleFieldTypeBuilder> builders
decoratorBuilders
@Inject
protected javax.enterprise.inject.Instance<DecoratorFieldTypeBuilder> decoratorBuilders
complexBuilders
@Inject
protected javax.enterprise.inject.Instance<ComplexFieldTypeBuilder> complexBuilders
customType
protected FieldType customType
FieldTypeManagerImpl
public FieldTypeManagerImpl()
init
@PostConstruct
protected void init()
getDefaultIcon
public String getDefaultIcon()
- Specified by:
getDefaultIcon
in interface FieldTypeManager
setDefaultIcon
public void setDefaultIcon(String defaultIcon)
- Specified by:
setDefaultIcon
in interface FieldTypeManager
getIconsMappings
public Map<String,String> getIconsMappings()
- Specified by:
getIconsMappings
in interface FieldTypeManager
setIconsMappings
public void setIconsMappings(Map<String,String> iconsMappings)
- Specified by:
setIconsMappings
in interface FieldTypeManager
getFieldTypes
public List<FieldType> getFieldTypes()
- Specified by:
getFieldTypes
in interface FieldTypeManager
setFieldTypes
public void setFieldTypes(List<FieldType> fieldTypes)
- Specified by:
setFieldTypes
in interface FieldTypeManager
getSuitableFieldTypes
public List<FieldType> getSuitableFieldTypes(String propertyType)
- Get all fieldtypes suitable to generate a value of the given class.
- Specified by:
getSuitableFieldTypes
in interface FieldTypeManager
- Parameters:
propertyType
- Expected property definition that the field type should generate.
- Returns:
- A list of FieldType objects suitable to generate a value of the given class.
- Throws:
Exception
- in case of error
getFormDecoratorTypes
public List<FieldType> getFormDecoratorTypes()
- Specified by:
getFormDecoratorTypes
in interface FieldTypeManager
getFormComplexTypes
public List<FieldType> getFormComplexTypes()
- Specified by:
getFormComplexTypes
in interface FieldTypeManager
getTypeByCode
public FieldType getTypeByCode(String typeCode,
String fieldClass)
- Specified by:
getTypeByCode
in interface FieldTypeManager
getTypeByCode
public FieldType getTypeByCode(String typeCode)
- Specified by:
getTypeByCode
in interface FieldTypeManager
getTypeByClass
public FieldType getTypeByClass(String className)
- Specified by:
getTypeByClass
in interface FieldTypeManager
getSimpleTypeByClass
public FieldType getSimpleTypeByClass(String className)
- Specified by:
getSimpleTypeByClass
in interface FieldTypeManager
getComplexTypeByClass
public FieldType getComplexTypeByClass(String className)
- Specified by:
getComplexTypeByClass
in interface FieldTypeManager
getDecoratorTypeByClass
public FieldType getDecoratorTypeByClass(String className)
- Specified by:
getDecoratorTypeByClass
in interface FieldTypeManager
getFieldTypeByClass
protected FieldType getFieldTypeByClass(List<FieldType> fieldTypes,
String className)
getIconPathForCode
public String getIconPathForCode(String code)
- Specified by:
getIconPathForCode
in interface FieldTypeManager
lookup
public static FieldTypeManagerImpl lookup()
isDisplayableType
public boolean isDisplayableType(String typeCode)
- Specified by:
isDisplayableType
in interface FieldTypeManager
isbaseType
public boolean isbaseType(String code)
- Specified by:
isbaseType
in interface FieldTypeManager
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.