public class ClientInfoUtil extends Object implements org.zkoss.zk.ui.event.EventListener
Constructor and Description |
---|
ClientInfoUtil() |
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() |
static boolean |
isInternetExplorer(javax.servlet.http.HttpServletRequest request) |
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 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 false
public static boolean is64BitBrowser(javax.servlet.http.HttpServletRequest request)
request
- the current requesttrue
, otherwise false
public void onEvent(org.zkoss.zk.ui.event.Event event) throws Exception
onEvent
in interface org.zkoss.zk.ui.event.EventListener
Exception
public static boolean isInternetExplorer()
public static boolean isInternetExplorer(javax.servlet.http.HttpServletRequest request)
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.