|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.clients.web.formatter.FormatterSettings
public class FormatterSettings
This is autility class for getting and setting formatter-related settings for the logged in user.
FormatterFactory
Field Summary | |
---|---|
static String |
DEFAULT_DATE_FORMAT
The default date format for a date formatter = @value |
static String |
DEFAULT_DATETIME_FORMAT
The default datetime format for a datetime formatter = @value |
static int |
DEFAULT_NUM_DECIMALS
The default number of decimals to display by a number formatter = @value |
Constructor Summary | |
---|---|
FormatterSettings()
|
Method Summary | |
---|---|
static String |
getDateFormat(SessionControl sc)
Get format string for a date formatter. |
static String |
getDateTimeFormat(SessionControl sc)
Get format string for a datetime formatter. |
static int |
getNumDecimals(SessionControl sc)
Get the number of decimals a number formatter should display. |
static void |
setDateFormat(SessionControl sc,
String dateFormat)
Set the format string for a date formatter. |
static void |
setDateTimeFormat(SessionControl sc,
String dateTimeFormat)
Set the format string for a datetime formatter. |
static void |
setNumDecimals(SessionControl sc,
int numDecimals)
Set the number of decimals a number formatter should display. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_NUM_DECIMALS
public static final String DEFAULT_DATE_FORMAT
public static final String DEFAULT_DATETIME_FORMAT
Constructor Detail |
---|
public FormatterSettings()
Method Detail |
---|
public static int getNumDecimals(SessionControl sc)
sc
- The logged in user's session control
DEFAULT_NUM_DECIMALS
,
FormatterFactory.getNumberFormatter(SessionControl)
public static void setNumDecimals(SessionControl sc, int numDecimals)
sc
- The logged in user's session controlnumDecimals
- The number of decimalsDEFAULT_NUM_DECIMALS
,
FormatterFactory.getNumberFormatter(SessionControl)
public static String getDateFormat(SessionControl sc)
sc
- The logged in user's session control
DEFAULT_DATE_FORMAT
,
FormatterFactory.getDateFormatter(SessionControl)
public static void setDateFormat(SessionControl sc, String dateFormat)
sc
- The logged in user's session controldateFormat
- The format stringDEFAULT_DATE_FORMAT
,
FormatterFactory.getDateFormatter(SessionControl)
,
SimpleDateFormat
public static String getDateTimeFormat(SessionControl sc)
sc
- The logged in user's session control
DEFAULT_DATETIME_FORMAT
,
FormatterFactory.getDateTimeFormatter(SessionControl)
public static void setDateTimeFormat(SessionControl sc, String dateTimeFormat)
sc
- The logged in user's session controldateTimeFormat
- The format stringDEFAULT_DATETIME_FORMAT
,
FormatterFactory.getDateTimeFormatter(SessionControl)
,
SimpleDateFormat
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |