zk"
From Documentation
(ZK 6) |
|||
Line 2: | Line 2: | ||
= zk - java.util.Map = | = zk - java.util.Map = | ||
− | A map of browser and system information. For example, <code>${zk. | + | A map of browser and system information. For example, <code>${zk.gecko}</code> returns the version of Firefox if the current user is using Firefox. Here is a list of entries that the <code>zk</code> object has: |
{| border='1px' | width="100%" | {| border='1px' | width="100%" | ||
− | ! Name !! Type !! Description | + | ! Name !! Type !! Example !! Description |
|- | |- | ||
− | | ff | + | | <code>browser</code> |
− | | Double | + | | <code>Map</code> |
− | | The version of Firefox if the current user is using Firefox. | + | | <code>{version: 9.0, |
+ | name: "gecko"}</code> | ||
+ | | A two-entries map for the browser's name and version. Example, <code>${zk.browser.name}</code>. Possible browser names: <code>webkit</code>, <code>gecko</code>, <code>ie</code>, <code>opera</code>. | ||
+ | |- | ||
+ | | <code>ff</code> | ||
+ | | <code>Double</code> | ||
+ | | <code>9.0</code> | ||
+ | | The version of Firefox if the current user is using Firefox. Otherwise, it is null. | ||
+ | It is the same as <code>gecko</code>. | ||
+ | |- | ||
+ | | <code>gecko</code> | ||
+ | | <code>Double</code> | ||
+ | | <code>9.0</code> | ||
+ | | The version of Gecko if the current user is using Gecko-based browser, including Firefox. Otherwise, it is null. | ||
+ | It is the same as <code>ff</code>. | ||
+ | |- | ||
+ | | <code>ie</code> | ||
+ | | <code>Double</code> | ||
+ | | <code>9.0</code> | ||
+ | | The version of Internet Explorer if the current user is using Internet Explorer. Otherwise, it is null. | ||
+ | |- | ||
+ | | <code>ipad</code> | ||
+ | | <code>Double</code> | ||
+ | | <code>5.0</code> | ||
+ | | The version of iPad if the current user is using iPad. Otherwise, it is null. | ||
+ | |- | ||
+ | | <code>iphone</code> | ||
+ | | <code>Double</code> | ||
+ | | <code>5.0</code> | ||
+ | | The version of iPhone if the current user is using iPhone. Otherwise, it is null. | ||
+ | |- | ||
+ | | <code>ipod</code> | ||
+ | | <code>Double</code> | ||
+ | | <code>5.0</code> | ||
+ | | The version of iPod if the current user is using iPod. Otherwise, it is null. | ||
+ | |- | ||
+ | | <code>ios</code> | ||
+ | | <code>Double</code> | ||
+ | | <code>5.0</code> | ||
+ | | The version of iOS if the current user is using iOS-based device. Otherwise, it is null. | ||
+ | |- | ||
+ | | <code>opera</code> | ||
+ | | <code>Double</code> | ||
+ | | <code>11.0</code> | ||
+ | | The version of Opera if the current user is using Opera. Otherwise, it is null. | ||
+ | |- | ||
+ | | <code>webkit</code> | ||
+ | | <code>Double</code> | ||
+ | | <code>9.0</code> | ||
+ | | The version of Webkit if the current user is using Webkit-based browser, including Safari and Chrome. Otherwise, it is null. | ||
+ | It is the same as <code>ff</code>. | ||
|} | |} | ||
Revision as of 02:48, 10 February 2012
zk - java.util.Map
A map of browser and system information. For example, ${zk.gecko}
returns the version of Firefox if the current user is using Firefox. Here is a list of entries that the zk
object has:
Name | Type | Example | Description |
---|---|---|---|
browser
|
Map
|
{version: 9.0,
|
A two-entries map for the browser's name and version. Example, ${zk.browser.name} . Possible browser names: webkit , gecko , ie , opera .
|
ff
|
Double
|
9.0
|
The version of Firefox if the current user is using Firefox. Otherwise, it is null.
It is the same as |
gecko
|
Double
|
9.0
|
The version of Gecko if the current user is using Gecko-based browser, including Firefox. Otherwise, it is null.
It is the same as |
ie
|
Double
|
9.0
|
The version of Internet Explorer if the current user is using Internet Explorer. Otherwise, it is null. |
ipad
|
Double
|
5.0
|
The version of iPad if the current user is using iPad. Otherwise, it is null. |
iphone
|
Double
|
5.0
|
The version of iPhone if the current user is using iPhone. Otherwise, it is null. |
ipod
|
Double
|
5.0
|
The version of iPod if the current user is using iPod. Otherwise, it is null. |
ios
|
Double
|
5.0
|
The version of iOS if the current user is using iOS-based device. Otherwise, it is null. |
opera
|
Double
|
11.0
|
The version of Opera if the current user is using Opera. Otherwise, it is null. |
webkit
|
Double
|
9.0
|
The version of Webkit if the current user is using Webkit-based browser, including Safari and Chrome. Otherwise, it is null.
It is the same as |
Version History
Version | Date | Content |
---|---|---|
6.0.0 | February 2012 | The zk object was introduced.
|