public class ClientInfoUtil extends Object implements org.zkoss.zk.ui.event.EventListener
| Constructor and Description |
|---|
ClientInfoUtil()
Private constructor to use this class statically only.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
getHeight()
Returns the viewport height.
|
static int |
getScreenHeightPx() |
static int |
getScreenWidthPx() |
static TimeZone |
getTimezone()
Returns the current timezone of the browser.
|
static int |
getWidth()
Returns the viewport width.
|
static boolean |
is64BitBrowser()
Detects if the browser is a 64-bit browser.
|
static boolean |
is64BitBrowser(javax.servlet.http.HttpServletRequest request)
Detects if the browser is a 64-bit browser.
|
static boolean |
isInternetExplorer()
Checks if the client is an Internet Explorer browser by checking if the user-agent header
contains "MSIE".
|
static boolean |
isInternetExplorer(javax.servlet.http.HttpServletRequest request)
Checks if the client is an Internet Explorer browser by checking if the user-agent header
contains "MSIE".
|
static boolean |
isInternetExplorerZk()
Checks if the client is an Internet Explorer browser using the ZK framework's integrated
browser detections method.
|
void |
onEvent(org.zkoss.zk.ui.event.Event event) |
static void |
setHeight(int height)
Sets the viewport height.
|
static void |
setScreenHeightPx(int screenHeightPx)
Sets the height of the client's screen in pixels.
|
static void |
setScreenWidthPx(int screenWidthPx)
Sets the width of the client's screen in pixels.
|
static void |
setTimezone(TimeZone timezone)
Sets the timezone.
|
static void |
setWidth(int width)
Sets the viewport width.
|
public ClientInfoUtil()
public static int getHeight()
public static void setHeight(int height)
height - The viewport height in pixels.public static int getWidth()
public static void setWidth(int width)
width - The viewport width in pixels.public static TimeZone getTimezone()
public static void setTimezone(TimeZone timezone)
timezone - The current set timezone of the browser.public static int getScreenHeightPx()
public static void setScreenHeightPx(int screenHeightPx)
screenHeightPx - the new heightpublic static int getScreenWidthPx()
public static void setScreenWidthPx(int screenWidthPx)
screenWidthPx - the new widthpublic static boolean is64BitBrowser()
true, otherwise falsepublic static boolean is64BitBrowser(javax.servlet.http.HttpServletRequest request)
request - the current requesttrue, otherwise falsepublic void onEvent(org.zkoss.zk.ui.event.Event event)
throws Exception
onEvent in interface org.zkoss.zk.ui.event.EventListenerExceptionpublic static boolean isInternetExplorer()
public static boolean isInternetExplorer(javax.servlet.http.HttpServletRequest request)
request - the current requestpublic static boolean isInternetExplorerZk()
Copyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.