Class WindowUtils
- java.lang.Object
-
- com.logicaldoc.gui.common.client.util.WindowUtils
-
public class WindowUtils extends Object
Utilities for accessing the javascript Window object- Since:
- 6.0
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description WindowUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
focus()
static String
getAppName()
static RequestInfo
getRequestInfo()
static String
getUserAgent()
static boolean
isChrome()
static boolean
isWindows()
static String
left()
static void
openHtmlInWindow(String title, String html)
Opens a given HTML document in new popup windowsstatic void
openUrl(String url)
static void
openUrl(String url, String window)
static void
openUrl(String url, String window, String specs)
static void
openUrlInNewTab(String url)
static void
reload()
static void
setFavicon(GUIInfo info)
static void
setTitle(GUIInfo info, String prefix)
static void
setTitle(String title)
static String
top()
-
-
-
Method Detail
-
getRequestInfo
public static RequestInfo getRequestInfo()
-
getAppName
public static String getAppName()
-
reload
public static void reload()
-
setTitle
public static void setTitle(String title)
-
setFavicon
public static void setFavicon(GUIInfo info)
-
openUrl
public static void openUrl(String url)
-
openUrlInNewTab
public static void openUrlInNewTab(String url)
-
focus
public static void focus()
-
left
public static String left()
-
top
public static String top()
-
getUserAgent
public static String getUserAgent()
-
openHtmlInWindow
public static void openHtmlInWindow(String title, String html)
Opens a given HTML document in new popup windows- Parameters:
title
- window titlewhtml
- the HTML code to display
-
isChrome
public static boolean isChrome()
-
isWindows
public static boolean isWindows()
-
-