jbpm-form-modeler-ui 6.0.2-SNAPSHOT

org.jbpm.formModeler.core.processing.fieldHandlers
Class HTMLi18nFieldHandler

java.lang.Object
  extended by org.jbpm.formModeler.core.processing.AbstractFieldHandler
      extended by org.jbpm.formModeler.core.processing.DefaultFieldHandler
          extended by org.jbpm.formModeler.core.processing.fieldHandlers.HTMLi18nFieldHandler
All Implemented Interfaces:
FieldHandler

@ApplicationScoped
public class HTMLi18nFieldHandler
extends DefaultFieldHandler

Handler for text area with HTML i18n


Field Summary
static String DIV_INPUT_NAME_PREFFIX
           
 
Constructor Summary
HTMLi18nFieldHandler()
           
 
Method Summary
 String[] getCompatibleClassNames()
           
 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 org.jbpm.formModeler.core.processing.DefaultFieldHandler
getFieldHandlersManager, getFormManager, getFormProcessor, getFormStatusManager, getFunctionsProvider, getName, getNamespaceManager, getReplacementManager
 
Methods inherited from class org.jbpm.formModeler.core.processing.AbstractFieldHandler
checkBooleanParameter, getFieldName, getPageToIncludeForDisplaying, getPageToIncludeForRendering, getPageToIncludeForSearching, initialize, isEvaluable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DIV_INPUT_NAME_PREFFIX

public static final String DIV_INPUT_NAME_PREFFIX
See Also:
Constant Field Values
Constructor Detail

HTMLi18nFieldHandler

public HTMLi18nFieldHandler()
Method Detail

getCompatibleClassNames

public String[] getCompatibleClassNames()

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 represent
pattern - 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.

isEmpty

public boolean isEmpty(Object value)

jbpm-form-modeler-ui 6.0.2-SNAPSHOT

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