org.jbpm.dashboard
Class jBPMDataPropertyFormatter
java.lang.Object
org.jboss.dashboard.provider.DataPropertyFormatterImpl
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 |
| 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 |
localeManager
@Inject
protected org.jboss.dashboard.LocaleManager localeManager
jBPMDataPropertyFormatter
public jBPMDataPropertyFormatter()
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.
Copyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.