public class Clients extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static long |
DAY_MILLION
The Constant DAY_MILLION.
|
| 构造器和说明 |
|---|
Clients() |
| 限定符和类型 | 方法和说明 |
|---|---|
static long |
addDay(long time,
int day)
Adds the day.
|
static void |
confirm(String text,
com.google.gwt.core.client.Callback<Boolean,Boolean> callback)
提供对话框.
|
static String |
formatDate(Date d)
Format date.
|
static String |
formatDate(Date value,
String dATE_TIME_FORMAT)
Format date string.
|
static String |
formatTime(long time,
String format)
Format timestamp.
|
static String |
formatTimestamp(Timestamp t)
Format timestamp.
|
static String |
formatTimestamp(Timestamp t,
String format)
Format timestamp.
|
static com.google.gwt.i18n.client.DateTimeFormat |
getDateFormat()
获取日期时间格式.
|
static com.google.gwt.i18n.client.DateTimeFormat |
getDateTimeFormat()
获取缺省的日期时间格式.
|
static com.google.gwt.i18n.client.DateTimeFormat |
getDateTimeFormat(String format)
获取日期时间格式.
|
static String |
getIconUrlPrefix()
获取图片前缀.
|
static boolean |
isEmpty(String s)
判断字符串是否 null 或者 空字符串
|
static long |
now()
Now.
|
static Date |
nowDate()
Now date date.
|
static Date |
parseDate(String value)
Parses the date.
|
static Date |
parseDate(String value,
String format)
Parses the date.
|
static String |
randomString(int len)
随机字符串.
|
public static final long DAY_MILLION
public static final com.google.gwt.i18n.client.DateTimeFormat getDateTimeFormat()
public static final com.google.gwt.i18n.client.DateTimeFormat getDateTimeFormat(String format)
format - the formatpublic static final com.google.gwt.i18n.client.DateTimeFormat getDateFormat()
public static final String formatTime(long time, String format)
time - the timeformat - the formatpublic static final String formatTimestamp(Timestamp t, String format)
t - the tformat - the formatpublic static final String formatTimestamp(Timestamp t)
t - the tpublic static final String randomString(int len)
len - the lenpublic static Date parseDate(String value, String format)
value - the valueformat - the formatpublic static Date parseDate(String value)
value - the valuepublic static long now()
public static Date nowDate()
public static long addDay(long time,
int day)
time - the timeday - the daypublic static void confirm(String text, com.google.gwt.core.client.Callback<Boolean,Boolean> callback)
text - the textcallback - the callbackpublic static String formatDate(Date value, String dATE_TIME_FORMAT)
value - the valuedATE_TIME_FORMAT - the d ate time formatpublic static final String getIconUrlPrefix()
public static boolean isEmpty(String s)
s - the sCopyright © 2020. All rights reserved.