org.jbpm.formModeler.core.config
@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 javax.enterprise.inject.Instance<DecoratorFieldTypeBuilder> |
decoratorBuilders |
Constructor and Description |
---|
FieldTypeManagerImpl() |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultIcon() |
List<FieldType> |
getFieldTypes() |
List<FieldType> |
getFormComplexTypes() |
List<FieldType> |
getFormDecoratorTypes() |
String |
getIconPathForCode(String code) |
Map<String,String> |
getIconsMappings() |
List<FieldType> |
getSuitableFieldTypes(String managerClass)
Return FieldType's for given manager class
|
List<FieldType> |
getSuitableFieldTypes(String propertyName,
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,
boolean tryToCreateTypes) |
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) |
@Inject protected javax.enterprise.inject.Instance<SimpleFieldTypeBuilder> builders
@Inject protected javax.enterprise.inject.Instance<DecoratorFieldTypeBuilder> decoratorBuilders
@Inject protected javax.enterprise.inject.Instance<ComplexFieldTypeBuilder> complexBuilders
@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 managerClass) throws Exception
getSuitableFieldTypes
in interface FieldTypeManager
managerClass
- Exception
public List<FieldType> getSuitableFieldTypes(String propertyName, String propertyType) throws Exception
getSuitableFieldTypes
in interface FieldTypeManager
propertyName
- Property namepropertyType
- 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)
getTypeByCode
in interface FieldTypeManager
public FieldType getTypeByCode(String typeCode, boolean tryToCreateTypes)
getTypeByCode
in interface FieldTypeManager
public FieldType getTypeByClass(String className)
getTypeByClass
in interface FieldTypeManager
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-2013 JBoss by Red Hat. All Rights Reserved.