org.jbpm.formModeler.core.processing.fieldHandlers
Class CheckBoxFieldHandler
java.lang.Object
org.jbpm.formModeler.core.processing.AbstractFieldHandler
org.jbpm.formModeler.core.processing.DefaultFieldHandler
org.jbpm.formModeler.core.processing.fieldHandlers.CheckBoxFieldHandler
- All Implemented Interfaces:
- FieldHandler
public class CheckBoxFieldHandler
- extends DefaultFieldHandler
|
Method Summary |
String[] |
getCompatibleClassNames()
Determine the list of class types this field can generate. |
Map |
getParamValue(String inputName,
Object objectValue,
String pattern)
Determine the value as a parameter map for a given input value. |
Object |
getValue(org.jbpm.formModeler.api.model.Field field,
String inputName,
Map parametersMap,
Map filesMap,
String desiredClassName,
Object previousValue)
Read a parameter value (normally from a request), and translate it to
an object with desired class (that must be one of the returned by this handler) |
boolean |
isEmpty(Object value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NULL_VALUE
public static final String NULL_VALUE
- See Also:
- Constant Field Values
CheckBoxFieldHandler
public CheckBoxFieldHandler()
isEmpty
public boolean isEmpty(Object value)
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
- Read a parameter value (normally from a request), and translate it to
an object with desired class (that must be one of the returned by this handler)
- Returns:
- a object with desired class
- Throws:
Exception
getParamValue
public Map getParamValue(String inputName,
Object objectValue,
String pattern)
- Determine the value as a parameter map for a given input value. This is like the inverse operation of getValue()
- Parameters:
objectValue - Object value to representpattern - Pattern to apply if any
- Returns:
- a Map representing the parameter values expected inside a request that would cause the form
to generate given object value as a result.
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.