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)
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.
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.