jBPM Dashboard Builder Web App 6.0.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
 
Fields inherited from class org.jboss.dashboard.provider.DataPropertyFormatterImpl
emptyValueString
 
Constructor Summary
jBPMDataPropertyFormatter()
           
 
Method Summary
 String formatElapsedTime(long millis, Locale l)
           
 String formatUser(Object value, Locale l)
          Format the value for a user assignment.
 String formatValue_duration(Object value, Locale l)
          Format the property duration..
 String formatValue_status(Object value, Locale l)
           
 String formatValue_user_identity(Object value, Locale l)
          Format the property user_identity used in a process instance assigments.
 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 getBunle(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
 

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)
                            throws Exception
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)
                          throws Exception
Throws:
Exception

formatValue_user_identity

public String formatValue_user_identity(Object value,
                                        Locale l)
                                 throws Exception
Format the property user_identity used in a process instance 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.

formatValue_userid

public String formatValue_userid(Object value,
                                 Locale l)
                          throws Exception
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.

formatUser

public String formatUser(Object value,
                         Locale l)
                  throws Exception
Format the value for a user assignment. 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)

getBunle

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

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

jBPM Dashboard Builder Web App 6.0.0.Final

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