jbpm-form-modeler-service-core 6.1.0.Beta2

org.jbpm.formModeler.core.config
Class FieldTypeManagerImpl

java.lang.Object
  extended by org.jbpm.formModeler.core.config.FieldTypeManagerImpl
All Implemented Interfaces:
Serializable, FieldTypeManager

@ApplicationScoped
public class FieldTypeManagerImpl
extends Object
implements FieldTypeManager

See Also:
Serialized Form

Field Summary
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 Summary
FieldTypeManagerImpl()
           
 
Method Summary
 FieldType getComplexTypeByClass(String className)
           
 FieldType getDecoratorTypeByClass(String className)
           
 String getDefaultIcon()
           
protected  FieldType getFieldTypeByClass(List<FieldType> fieldTypes, String className)
           
 List<FieldType> getFieldTypes()
           
 List<FieldType> getFormComplexTypes()
           
 List<FieldType> getFormDecoratorTypes()
           
 String getIconPathForCode(String code)
           
 Map<String,String> getIconsMappings()
           
 FieldType getSimpleTypeByClass(String className)
           
 List<FieldType> getSuitableFieldTypes(String propertyType)
          Get all fieldtypes suitable to generate a value of the given class.
 FieldType getTypeByClass(String className)
           
 FieldType getTypeByCode(String typeCode)
           
 FieldType getTypeByCode(String typeCode, String fieldClass)
           
protected  void init()
           
 boolean isbaseType(String code)
           
 boolean isDisplayableType(String typeCode)
           
static FieldTypeManagerImpl lookup()
           
 void setDefaultIcon(String defaultIcon)
           
 void setFieldTypes(List<FieldType> fieldTypes)
           
 void setIconsMappings(Map<String,String> iconsMappings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

FieldTypeManagerImpl

public FieldTypeManagerImpl()
Method Detail

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

jbpm-form-modeler-service-core 6.1.0.Beta2

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.