org.jbpm.formModeler.core.processing.fieldHandlers
Class SubformFieldHandler
java.lang.Object
org.jbpm.formModeler.core.processing.AbstractFieldHandler
org.jbpm.formModeler.core.processing.DefaultFieldHandler
org.jbpm.formModeler.core.processing.PersistentFieldHandler
org.jbpm.formModeler.core.processing.fieldHandlers.SubformFieldHandler
- All Implemented Interfaces:
- FieldHandler
- Direct Known Subclasses:
- CreateDynamicObjectFieldHandler
@Named(value="org.jbpm.formModeler.core.processing.fieldHandlers.SubformFieldHandler")
public class SubformFieldHandler
- extends PersistentFieldHandler
|
Method Summary |
boolean |
acceptsPropertyName(String propName)
|
void |
addWrongChildFieldErrors(String namespace,
org.jbpm.formModeler.api.model.Field field,
List errors)
|
static boolean |
checkSubformDepthAllowed(org.jbpm.formModeler.api.model.Form form,
String namesapce)
|
String[] |
getCompatibleClassNames()
Determine the list of class types this field can generate. |
protected org.jbpm.formModeler.api.model.Form |
getEnterDataForm(String namespace,
org.jbpm.formModeler.api.model.Field field)
|
String |
getPageToIncludeForDisplaying()
When rendering a form, if field is handled by this handler, determine the
page that renders the displaying of the value |
String |
getPageToIncludeForRendering()
When rendering a form, if field is handled by this handler, determine the
page that renders the input(s) |
String |
getPageToIncludeForSearching()
|
Map |
getParamValue(String inputName,
Object value,
String pattern)
|
Object |
getStatusValue(org.jbpm.formModeler.api.model.Field field,
String inputName,
Object value)
|
Set<SubformChecker> |
getSubformCheckers()
|
Object |
getValue(org.jbpm.formModeler.api.model.Field field,
String inputName,
Map parametersMap,
Map filesMap,
String desiredClassName,
Object previousValue)
|
boolean |
isEmpty(Object value)
|
Object |
persist(org.jbpm.formModeler.api.model.Field field,
String inputName)
|
void |
prepare()
|
void |
setPageToIncludeForDisplaying(String pageToIncludeForDisplaying)
|
void |
setPageToIncludeForRendering(String pageToIncludeForRendering)
|
void |
setPageToIncludeForSearching(String pageToIncludeForSearching)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubformFieldHandler
public SubformFieldHandler()
prepare
@PostConstruct
public void prepare()
getCompatibleClassNames
public String[] getCompatibleClassNames()
- Determine the list of class types this field can generate. That is, normally,
a field can generate multiple outputs (an input text can generate Strings,
Integers, ...)
- Returns:
- the set of class types that can be generated by this handler.
getValue
public Object getValue(org.jbpm.formModeler.api.model.Field field,
String inputName,
Map parametersMap,
Map filesMap,
String desiredClassName,
Object previousValue)
throws Exception
- Throws:
Exception
persist
public Object persist(org.jbpm.formModeler.api.model.Field field,
String inputName)
throws Exception
- Specified by:
persist in class PersistentFieldHandler
- Throws:
Exception
getStatusValue
public Object getStatusValue(org.jbpm.formModeler.api.model.Field field,
String inputName,
Object value)
- Specified by:
getStatusValue in class PersistentFieldHandler
getParamValue
public Map getParamValue(String inputName,
Object value,
String pattern)
addWrongChildFieldErrors
public void addWrongChildFieldErrors(String namespace,
org.jbpm.formModeler.api.model.Field field,
List errors)
getPageToIncludeForDisplaying
public String getPageToIncludeForDisplaying()
- When rendering a form, if field is handled by this handler, determine the
page that renders the displaying of the value
- Specified by:
getPageToIncludeForDisplaying in interface FieldHandler- Overrides:
getPageToIncludeForDisplaying in class AbstractFieldHandler
- Returns:
- a page to include
isEmpty
public boolean isEmpty(Object value)
setPageToIncludeForDisplaying
public void setPageToIncludeForDisplaying(String pageToIncludeForDisplaying)
acceptsPropertyName
public boolean acceptsPropertyName(String propName)
getPageToIncludeForRendering
public String getPageToIncludeForRendering()
- When rendering a form, if field is handled by this handler, determine the
page that renders the input(s)
- Specified by:
getPageToIncludeForRendering in interface FieldHandler- Overrides:
getPageToIncludeForRendering in class AbstractFieldHandler
- Returns:
- a page to include
setPageToIncludeForRendering
public void setPageToIncludeForRendering(String pageToIncludeForRendering)
getPageToIncludeForSearching
public String getPageToIncludeForSearching()
- Specified by:
getPageToIncludeForSearching in interface FieldHandler- Overrides:
getPageToIncludeForSearching in class AbstractFieldHandler
setPageToIncludeForSearching
public void setPageToIncludeForSearching(String pageToIncludeForSearching)
getEnterDataForm
protected org.jbpm.formModeler.api.model.Form getEnterDataForm(String namespace,
org.jbpm.formModeler.api.model.Field field)
checkSubformDepthAllowed
public static boolean checkSubformDepthAllowed(org.jbpm.formModeler.api.model.Form form,
String namesapce)
getSubformCheckers
public Set<SubformChecker> getSubformCheckers()
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.