com.groiss.gui.velocity
Class Formatter
java.lang.Object
com.groiss.gui.velocity.Formatter
public class Formatter
- extends Object
a utility class for formatting objects in Velocity-templates
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Formatter
public Formatter()
getInstance
public static Formatter getInstance()
- returns a singleton instance
- Returns:
- the singleton instance
showDate
public static String showDate(Object date)
- Parameters:
date - the date
- Returns:
CalUtil.showDate(Object)
showDateTime
public static String showDateTime(Object date)
- Parameters:
date - the date
- Returns:
CalUtil.showDateTime(Object)
getDecimalFormat
public static NumberFormat getDecimalFormat()
- Returns:
Settings.getDecimalFormatter()
toClassnameOid
public static String toClassnameOid(Persistent p)
- Parameters:
p - the persistent
- Returns:
StoreUtil.toString(Persistent)
htmlEncode
public static String htmlEncode(Object str)
- Parameters:
str - the string
- Returns:
StringUtil.htmlEncode(Object)
isEmpty
public static boolean isEmpty(String str)
- Parameters:
str - the string
- Returns:
StringUtil.isEmpty(String)
isNotEmpty
public static boolean isNotEmpty(String str)
- Parameters:
str - the string
- Returns:
StringUtil.isNotEmpty(String)
encodeURL
public static String encodeURL(String url)
- Parameters:
url - the url
- Returns:
StringUtil.encodeURL(String)
getDisplayValue
public static String getDisplayValue(DMSForm f,
String field)
- Parameters:
f - the formfield - the fieldname
- Returns:
HTMLUtils.getDisplayValue(DMSForm, String)
@enterprise 8.0.10809 Copyright © 2001-2012 Groiss Informatics GmbH. All Rights Reserved.