anl.aida.client.util
Class ClientUtils
java.lang.Object
anl.aida.client.util.ClientUtils
public class ClientUtils
- extends java.lang.Object
Utility methods used by the client.
Field Summary |
private static java.text.NumberFormat |
eFormat
|
private static java.text.SimpleDateFormat |
longFormat
|
private static java.text.NumberFormat |
nFormat
|
private static java.text.DateFormat |
overlayFormat
|
private static java.text.SimpleDateFormat |
shortFormat
|
Method Summary |
static java.lang.String |
formatDate(java.util.Date date)
|
static java.lang.String |
formatNumber(double val)
|
static java.lang.String |
formatOverlayDate(java.util.Date date)
|
static java.lang.String |
formatShortDate(java.util.Date date)
|
static javax.swing.Icon |
loadIcon(java.lang.String iconFile)
Attemps to load an icon as resource and if that fails then directly from
the "icons" directory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nFormat
private static java.text.NumberFormat nFormat
eFormat
private static java.text.NumberFormat eFormat
shortFormat
private static java.text.SimpleDateFormat shortFormat
longFormat
private static java.text.SimpleDateFormat longFormat
overlayFormat
private static java.text.DateFormat overlayFormat
ClientUtils
public ClientUtils()
formatDate
public static java.lang.String formatDate(java.util.Date date)
formatShortDate
public static java.lang.String formatShortDate(java.util.Date date)
formatOverlayDate
public static java.lang.String formatOverlayDate(java.util.Date date)
formatNumber
public static java.lang.String formatNumber(double val)
loadIcon
public static javax.swing.Icon loadIcon(java.lang.String iconFile)
- Attemps to load an icon as resource and if that fails then directly from
the "icons" directory.
- Parameters:
iconFile
- the icon file name
- Returns:
- the loaded icon