jbpm-form-modeler-document 6.1.0.Final

org.jbpm.formModeler.fieldTypes.document.handling
Class JBPMDocumentFieldTypeHandler

java.lang.Object
  extended by org.jbpm.formModeler.core.processing.fieldHandlers.plugable.PlugableFieldHandler
      extended by org.jbpm.formModeler.fieldTypes.document.handling.JBPMDocumentFieldTypeHandler
All Implemented Interfaces:
FieldHandler

@Named(value="org.jbpm.formModeler.fieldTypes.document.handling.JBPMDocumentFieldTypeHandler")
public class JBPMDocumentFieldTypeHandler
extends org.jbpm.formModeler.core.processing.fieldHandlers.plugable.PlugableFieldHandler


Field Summary
protected  String defaultFileIcon
           
protected  String dropIcon
           
protected  String iconFolder
           
protected  Map<String,String> icons
           
 String[] SIZE_UNITS
           
 
Constructor Summary
JBPMDocumentFieldTypeHandler()
           
 
Method Summary
 String[] getCompatibleClassNames()
           
protected  String getFileIcon(org.jbpm.document.Document document)
           
protected  String getFileSize(long longSize)
           
 String getInputHTML(Object value, Field field, String inputName, String namespace, Boolean readonly)
           
 Map getParamValue(String inputName, Object objectValue, String pattern)
           
 String getShowHTML(Object value, Field field, String inputName, String namespace)
           
 Object getValue(Field field, String inputName, Map parametersMap, Map filesMap, String desiredClassName, Object previousValue)
           
 void init()
           
 boolean isEmpty(Object value)
           
 String renderField(org.jbpm.document.Document document, Field field, String inputName, boolean showInput, boolean readonly)
           
 
Methods inherited from class org.jbpm.formModeler.core.processing.fieldHandlers.plugable.PlugableFieldHandler
getPageToIncludeForDisplaying, getPageToIncludeForRendering
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIZE_UNITS

public final String[] SIZE_UNITS

dropIcon

protected String dropIcon

iconFolder

protected String iconFolder

defaultFileIcon

protected String defaultFileIcon

icons

protected Map<String,String> icons
Constructor Detail

JBPMDocumentFieldTypeHandler

public JBPMDocumentFieldTypeHandler()
Method Detail

init

@PostConstruct
public void init()

getValue

public Object getValue(Field field,
                       String inputName,
                       Map parametersMap,
                       Map filesMap,
                       String desiredClassName,
                       Object previousValue)
                throws Exception
Throws:
Exception

getShowHTML

public String getShowHTML(Object value,
                          Field field,
                          String inputName,
                          String namespace)
Specified by:
getShowHTML in class org.jbpm.formModeler.core.processing.fieldHandlers.plugable.PlugableFieldHandler

getInputHTML

public String getInputHTML(Object value,
                           Field field,
                           String inputName,
                           String namespace,
                           Boolean readonly)
Specified by:
getInputHTML in class org.jbpm.formModeler.core.processing.fieldHandlers.plugable.PlugableFieldHandler

renderField

public String renderField(org.jbpm.document.Document document,
                          Field field,
                          String inputName,
                          boolean showInput,
                          boolean readonly)

getFileSize

protected String getFileSize(long longSize)

getFileIcon

protected String getFileIcon(org.jbpm.document.Document document)

getCompatibleClassNames

public String[] getCompatibleClassNames()

isEmpty

public boolean isEmpty(Object value)

getParamValue

public Map getParamValue(String inputName,
                         Object objectValue,
                         String pattern)

jbpm-form-modeler-document 6.1.0.Final

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