public class TextItemValueAdapter extends Object
| Constructor and Description |
|---|
TextItemValueAdapter() |
| Modifier and Type | Method and Description |
|---|---|
String |
formatItemValues(List<?> aItem,
String aSeparator,
String sFormat)
this method formats a string object depending of an attribute type.
|
String |
formatItemValues(List<?> aItem,
String aSeparator,
String sFormat,
Locale alocale)
this method formats a string object depending of an attribute type.
|
String |
formatItemValues(List<?> aItem,
String aSeparator,
String sFormat,
Locale locale,
String sPosition)
This method returns a formated a string object.
|
void |
onEvent(TextEvent event)
This method reacts on CDI events of the type TextEvent and parses a string
for xml tag [.
|
public void onEvent(@Observes
TextEvent event)
hello <itemvalue>$Creator</itemvalue>
Item values can also be formated. e.g. for date/time values:
Last access Time= <itemvalue format="mm:ss">$created</itemvalue>
If the itemValue is a multiValue object the single values can be spearated by a separator:
Phone List: <itemvalue separator="<br />">txtPhones</itemvalue>
public String formatItemValues(List<?> aItem, String aSeparator, String sFormat, Locale locale, String sPosition)
public String formatItemValues(List<?> aItem, String aSeparator, String sFormat)
Copyright © 2006–2020 Imixs Software Solutions GmbH. All rights reserved.