public class Util extends Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static void |
browserChangeCss(String title)
Change on fly the actual css
|
static void |
changeCss(String title)
Change on fly the actual css
|
static void |
createClipboardButton(String divId,
String textToCopy) |
static String |
createHeaderHTML(String imageUrl,
String caption)
Creates an HTML fragment that places an image & caption together, for use
in a group header.
|
static void |
createMediaPlayer(String mediaUrl,
String mediaProvider,
String width,
String height) |
static void |
createPDFViewerFlexPaper(String pdfUrl,
String width,
String height) |
static void |
createPDFViewerZviewer(String pdfUrl,
String width,
String height) |
static com.google.gwt.user.client.ui.HTML |
createSelectable(String html)
Generate selectable widget text
|
static void |
createSwfViewer(String swfUrl,
String width,
String height) |
static void |
downloadCSVFile(String params)
Download CSV file
|
static void |
downloadFile(String path,
String params)
Deprecated.
|
static void |
downloadFileByUUID(String uuid,
String params)
Download file by UUID
|
static void |
downloadFilePdf(String uuid)
Download file
|
static void |
downloadFiles(List<String> path,
String params)
Deprecated.
|
static void |
downloadFilesByUUID(List<String> uuidList,
String params)
downloadFilesByUUID
|
static String |
encodePathElements(String path)
Encode path elements
|
static String |
escape(String text) |
static void |
executeReport(long id,
Map<String,String> params)
executeReport
|
static String |
flagMenuHTML(String flag,
String text)
Return the menu html value
|
static String |
formatSize(double size)
Format file size in Bytes, KBytes or MBytes.
|
static String |
getBrowserLanguage()
Get browser language
|
static String[] |
getJREs() |
static String |
getName(String path)
Get item name from path.
|
static String |
getParent(String path)
Get parent item path from path.
|
static String |
getTextAsBoldHTML(String text,
boolean mark)
markHTMLTextAsBold
|
static String |
getUserAgent()
returns 'opera', 'safari', 'ie6', 'ie7', 'ie8', 'ie9', 'gecko' or 'unknown'.
|
static com.google.gwt.user.client.ui.HTML |
hSpace(String width)
Creates an horizontal spacer
|
static String |
imageHTML(String imageUrl)
Generates HTML image code with style.
|
static String |
imageHTML(String imageUrl,
String alt)
Generates HTML image code with style.
|
static String |
imageHTML(String imageUrl,
String alt,
String style)
Generates HTML image code with style.
|
static String |
imageItemHTML(String imageUrl)
Generates HTML for item with an attached icon.
|
static String |
imageItemHTML(String imageUrl,
String title)
Generates HTML for item with an attached icon.
|
static String |
imageItemHTML(String imageUrl,
String title,
String align)
Generates HTML for item with an attached icon.
|
static boolean |
isJREInstalled()
isJREInstalled
|
static boolean |
isRoot(String fldPath)
isRoot
|
static boolean |
isSearchableKey(com.google.gwt.event.dom.client.KeyUpEvent event)
isSearchableKey
|
static String |
menuHTML(String imageUrl,
String text)
Return the menu html value
|
static String |
mimeImageHTML(String mime)
Generate HTML icon for mime-type document
|
static void |
print(String uuid)
print file
|
static void |
printFile()
printFile
|
static void |
removeMediaPlayer() |
static void |
resizeEmbededPDF(String width,
String height,
String pdfId) |
static void |
resizeMediaPlayer(String width,
String height) |
static void |
resizePDFViewerFlexPaper(String width,
String height) |
static void |
resizePDFViewerZviewer(String width,
String height) |
static void |
resizeSwfViewer(String width,
String height) |
static String |
showMailName(String mail)
Show only mail name
|
static com.google.gwt.user.client.ui.HTML |
space(String width,
String height)
Creates an square spacer
|
static com.google.gwt.user.client.ui.HTML |
vSpace(String height)
Creates an vertical spacer
|
static String |
windowOpen(String text,
String uri)
Creates an HTML to opens a url with text on a new window
|
public static String imageItemHTML(String imageUrl, String title)
imageUrl
- the url of the icon imagetitle
- the title of the itempublic static String imageItemHTML(String imageUrl, String title, String align)
imageUrl
- the url of the icon imagetitle
- the title of the itempublic static String imageItemHTML(String imageUrl)
imageUrl
- the url of the icon imagepublic static String imageHTML(String imageUrl, String alt, String style)
imageUrl
- the url of the icon imagealt
- image altstyle
- the style of the imagepublic static String imageHTML(String imageUrl, String alt)
imageUrl
- the url of the icon imagealt
- the image altpublic static String imageHTML(String imageUrl)
imageUrl
- the url of the icon imagepublic static String mimeImageHTML(String mime)
mime
- The document mime-typepublic static String flagMenuHTML(String flag, String text)
imageUrl
- The image urltext
- The text valuepublic static String menuHTML(String imageUrl, String text)
imageUrl
- The image urltext
- The text valuepublic static String createHeaderHTML(String imageUrl, String caption)
imageUrl
- the url of the icon image to be usedcaption
- the group captionpublic static com.google.gwt.user.client.ui.HTML hSpace(String width)
width
- The desired width spacepublic static com.google.gwt.user.client.ui.HTML vSpace(String height)
height
- The desired height spacepublic static com.google.gwt.user.client.ui.HTML space(String width, String height)
width
- The desired width spaceheight
- The desired height spacepublic static String windowOpen(String text, String uri)
text
- The text url descriptionuri
- The url to openpublic static boolean isJREInstalled()
public static void downloadFileByUUID(String uuid, String params)
@Deprecated public static void downloadFile(String path, String params)
public static void downloadFilesByUUID(List<String> uuidList, String params)
@Deprecated public static void downloadFiles(List<String> path, String params)
public static void downloadFilePdf(String uuid)
public static void print(String uuid)
public static void downloadCSVFile(String params)
public static String getTextAsBoldHTML(String text, boolean mark)
public static String getParent(String path)
path
- The complete item path.public static String getName(String path)
path
- The complete item path.public static com.google.gwt.user.client.ui.HTML createSelectable(String html)
public static boolean isRoot(String fldPath)
public static boolean isSearchableKey(com.google.gwt.event.dom.client.KeyUpEvent event)
public static void changeCss(String title)
title
- The css namepublic static void browserChangeCss(String title)
title
- The css namepublic static void printFile()
public static String formatSize(double size)
size
- The file size in bytes.public static String getBrowserLanguage()
public static String getUserAgent()
public static void removeMediaPlayer()
public static void createMediaPlayer(String mediaUrl, String mediaProvider, String width, String height)
public static void createPDFViewerZviewer(String pdfUrl, String width, String height)
public static void createPDFViewerFlexPaper(String pdfUrl, String width, String height)
public static String[] getJREs()
Copyright © 2016. All rights reserved.