jBPM Dashboard Builder Web App 6.2.0.Final

org.jbpm.dashboard
Class jBPMDataPropertyFormatter

java.lang.Object
  extended by org.jboss.dashboard.provider.DataPropertyFormatterImpl
      extended by org.jbpm.dashboard.jBPMDataPropertyFormatter
All Implemented Interfaces:
org.jboss.dashboard.provider.DataPropertyFormatter

public class jBPMDataPropertyFormatter
extends org.jboss.dashboard.provider.DataPropertyFormatterImpl


Field Summary
protected  org.jboss.dashboard.LocaleManager localeManager
           
 
Fields inherited from class org.jboss.dashboard.provider.DataPropertyFormatterImpl
emptyValueString
 
Constructor Summary
jBPMDataPropertyFormatter()
           
 
Method Summary
 String formatElapsedTime(long millis, Locale l)
           
 String formatValue_duration(Object value, Locale l)
          Format the property duration..
 String formatValue_status(Object value, Locale l)
           
 String formatValue_userid(Object value, Locale l)
          Format the property userid used in task assigments.
 String formatValue(String propertyId, Object value, Locale l)
           
protected  ResourceBundle getBundle(Locale l)
          Get the associated resource bundle.
 String[] getSupportedPropertyIds()
           
 
Methods inherited from class org.jboss.dashboard.provider.DataPropertyFormatterImpl
formatCollection, formatName, formatName, formatValue, getEmptyValueString, getPropertyClass, parsePropertyValue, parsePropertyValue, setEmptyValueString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localeManager

@Inject
protected org.jboss.dashboard.LocaleManager localeManager
Constructor Detail

jBPMDataPropertyFormatter

public jBPMDataPropertyFormatter()
Method Detail

getSupportedPropertyIds

public String[] getSupportedPropertyIds()
Specified by:
getSupportedPropertyIds in interface org.jboss.dashboard.provider.DataPropertyFormatter
Overrides:
getSupportedPropertyIds in class org.jboss.dashboard.provider.DataPropertyFormatterImpl

formatValue

public String formatValue(String propertyId,
                          Object value,
                          Locale l)
Specified by:
formatValue in interface org.jboss.dashboard.provider.DataPropertyFormatter
Overrides:
formatValue in class org.jboss.dashboard.provider.DataPropertyFormatterImpl

formatValue_duration

public String formatValue_duration(Object value,
                                   Locale l)
Format the property duration.. If duration value is null or equals to 0, means the task is not completed yet and the duration is undefined.

Parameters:
value - The property value.
l - The locale
Returns:
The duration formatted as String.
Throws:
Exception - An error ocurred.

formatValue_status

public String formatValue_status(Object value,
                                 Locale l)

formatValue_userid

public String formatValue_userid(Object value,
                                 Locale l)
Format the property userid used in task assigments. If no user assigned use a custom literal.

Parameters:
value - The property value.
l - The locale
Returns:
The user property formatted as String.
Throws:
Exception - An error ocurred.

formatElapsedTime

public String formatElapsedTime(long millis,
                                Locale l)

getBundle

protected ResourceBundle getBundle(Locale l)
Get the associated resource bundle.

Parameters:
l - The locale.
Returns:
The bundle for the locale.

jBPM Dashboard Builder Web App 6.2.0.Final

Copyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.