public class GwtUtil extends Object
| 构造器和说明 |
|---|
GwtUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
formatTimestamp(Timestamp time,
boolean longformat)
Format timestamp.
|
static String |
getCurrentPageLoginURL()
Gets the current page login URL.
|
static String |
getCurrentPageURL()
Gets the current page URL.
|
static Date |
getDate(Timestamp establishdate)
Gets the date.
|
static com.google.gwt.i18n.client.DateTimeFormat |
getDateFormat()
Gets the date format.
|
static String |
getDebug()
Gets the debug.
|
static String |
getDecodeURL(String url)
Gets the decode URL.
|
static String |
getDncodeQueryString(String uri)
Gets the dncode query string.
|
static String |
getEncodeQueryString(String uri)
Gets the encode query string.
|
static String |
getEncodeURL(String url)
Gets the encode URL.
|
static String |
getHome()
Gets the home.
|
static String |
getImageUrl(String path,
int id)
Gets the image url.
|
static com.google.gwt.i18n.client.DateTimeFormat |
getLongFormat()
Gets the long format.
|
static Date |
getNow()
Gets the now.
|
static com.google.gwt.i18n.client.DateTimeFormat |
getShortFormat()
Gets the short format.
|
static Timestamp |
getTimestamp(Date value)
Gets the timestamp.
|
static String |
getUserIconURL(int uid,
int size)
Gets the user icon URL.
|
static String |
int2path(int v)
Int 2 path.
|
static void |
nocopy(com.google.gwt.user.client.Element e)
Nocopy.
|
static void |
open(String url)
Open.
|
static String[] |
parsePostImageResult(String json)
Parses the post image result.
|
static String |
RandString(int i)
Rand string.
|
static void |
redirect(String url)
Redirect.
|
static void |
refresh()
Refresh.
|
public static String chars
public static com.google.gwt.i18n.client.DateTimeFormat getDateFormat()
public static void redirect(String url)
url - the urlpublic static void open(String url)
url - the urlpublic static void nocopy(com.google.gwt.user.client.Element e)
e - the epublic static void refresh()
public static String getCurrentPageURL()
public static String getEncodeURL(String url)
url - the urlpublic static String getEncodeQueryString(String uri)
uri - the uripublic static String getDncodeQueryString(String uri)
uri - the uripublic static String getDecodeURL(String url)
url - the urlpublic static String getCurrentPageLoginURL()
public static final String int2path(int v)
v - the vpublic static String getDebug()
public static String getImageUrl(String path, int id)
path - the pathid - the idpublic static String getUserIconURL(int uid, int size)
uid - the uidsize - the sizepublic static String RandString(int i)
i - the ipublic static com.google.gwt.i18n.client.DateTimeFormat getLongFormat()
public static com.google.gwt.i18n.client.DateTimeFormat getShortFormat()
public static String formatTimestamp(Timestamp time, boolean longformat)
time - the timelongformat - the longformatpublic static String getHome()
public static Timestamp getTimestamp(Date value)
value - the valuepublic static Date getNow()
public static Date getDate(Timestamp establishdate)
establishdate - the establishdateCopyright © 2017. All rights reserved.