|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.event.Event org.zkoss.zk.ui.event.ClientInfoEvent
public class ClientInfoEvent
The onClientInfo event is used to notify the client's information, such as time zone and screen resolutions.
This event is sent if and only if it is registered to a root component.
Note: the information returned by this event is not stored in the server.
Thus, you might want to store in the session's attribute
(Session.setAttribute(java.lang.String, java.lang.Object)
).
Clients
,
Serialized FormConstructor Summary | |
---|---|
ClientInfoEvent(java.lang.String name,
int timeZoneOfs,
int scrnwd,
int scrnhgh,
int colorDepth,
int dtwd,
int dthgh,
int dtx,
int dty)
Constructs an event to hold the client-info. |
Method Summary | |
---|---|
static ClientInfoEvent |
getClientInfoEvent(AuRequest request)
Converts an AU request to a client-info event. |
int |
getColorDepth()
Returns the maximum number of colors the client's screen supports. |
int |
getDesktopHeight()
Returns the pixel height of the client's desktop. |
int |
getDesktopWidth()
Returns the pixel width of the client's desktop. |
int |
getDesktopXOffset()
The the current horizontal pixel location of the top-left corner of the document in the window. |
int |
getDesktopYOffset()
The the current vertical pixel location of the top-left corner of the document in the window. |
int |
getScreenHeight()
Returns the pixel height of the client's screen. |
int |
getScreenWidth()
Returns the pixel width of the client's screen. |
java.util.TimeZone |
getTimeZone()
Returns the time zone of the client. |
Methods inherited from class org.zkoss.zk.ui.event.Event |
---|
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClientInfoEvent(java.lang.String name, int timeZoneOfs, int scrnwd, int scrnhgh, int colorDepth, int dtwd, int dthgh, int dtx, int dty)
Note: Event.getTarget()
will return null. It means it is a broadcast
event.
scrnwd
- the screen's widthscrnhgh
- the screen's heightdtwd
- the desktop's widthdthgh
- the desktop's heightdtx
- the desktop's the left offsetdty
- the desktop's the top offsetMethod Detail |
---|
public static final ClientInfoEvent getClientInfoEvent(AuRequest request)
public java.util.TimeZone getTimeZone()
public int getScreenWidth()
public int getScreenHeight()
public int getColorDepth()
public int getDesktopWidth()
public int getDesktopHeight()
public int getDesktopXOffset()
To change it programmingly, use Clients.scrollTo(int, int)
.
public int getDesktopYOffset()
To change it programmingly, use Clients.scrollTo(int, int)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |