|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjap.JAPUtil
public final class JAPUtil
This class contains static utility functions for Jap
| Field Summary | |
|---|---|
private static java.lang.String |
MSG_DATE_UNIT
|
| Constructor Summary | |
|---|---|
JAPUtil()
|
|
| Method Summary | |
|---|---|
static int |
applyJarDiff(java.io.File fileOldJAR,
java.io.File fileNewJAR,
byte[] diffJAR)
|
static JAPDialog.ILinkedInformation |
createDialogBrowserLink(java.lang.String a_strUrl)
|
static java.lang.String |
formatEuroCentValue(long centvalue)
deprecated, since balances are not stored as centvalue |
static java.lang.String |
formatTimestamp(java.sql.Timestamp date,
boolean withTime)
formats a timestamp in an easily readable format. |
static java.lang.String |
formatTimestamp(java.sql.Timestamp date,
boolean withTime,
java.lang.String a_language)
formatTimestamp |
static java.lang.String |
getCurrencyDelimiter(java.lang.String language)
|
static java.lang.String |
getDuration(int duration,
java.lang.String durationUnit)
|
static java.sql.Timestamp |
getEnddate(int duration,
java.lang.String durationUnit)
get the Enddate for a given duration |
static JAPCertificate |
openCertificate(java.awt.Window jf)
Shows a file open dialog and tries to read a certificate. |
static void |
setMnemonic(javax.swing.AbstractButton bt,
java.lang.String mn)
Sets the mnemonic charcter of a component. |
static void |
setPerfectTableSize(javax.swing.JTable table,
java.awt.Dimension maxDimension)
|
static javax.swing.JFileChooser |
showFileDialog(java.awt.Window jf)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String MSG_DATE_UNIT
| Constructor Detail |
|---|
public JAPUtil()
| Method Detail |
|---|
public static JAPDialog.ILinkedInformation createDialogBrowserLink(java.lang.String a_strUrl)
public static java.lang.String formatEuroCentValue(long centvalue)
long -
public static java.lang.String getCurrencyDelimiter(java.lang.String language)
public static int applyJarDiff(java.io.File fileOldJAR,
java.io.File fileNewJAR,
byte[] diffJAR)
public static void setMnemonic(javax.swing.AbstractButton bt,
java.lang.String mn)
public static void setPerfectTableSize(javax.swing.JTable table,
java.awt.Dimension maxDimension)
public static javax.swing.JFileChooser showFileDialog(java.awt.Window jf)
public static JAPCertificate openCertificate(java.awt.Window jf)
throws java.io.IOException
java.io.IOException
public static java.lang.String formatTimestamp(java.sql.Timestamp date,
boolean withTime)
date - TimestampwithTime - boolean if true, the date+time is returned, otherwise date only.
public static java.lang.String formatTimestamp(java.sql.Timestamp date,
boolean withTime,
java.lang.String a_language)
date - TimestampwithTime - booleana_language - String: 2-letter code
public static java.sql.Timestamp getEnddate(int duration,
java.lang.String durationUnit)
duration - int: e.g. 2durationUnit - String: e.g. "months"
public static java.lang.String getDuration(int duration,
java.lang.String durationUnit)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||