public class IlxWBrowserInfo
extends java.lang.Object
implements ilog.webui.dhtml.IlxWCSSModelProvider
The browser information object is associated with a port and can be
accessed by the IlxWPort.getBrowserInfo() method.
The level property of this object is used to determine the
capabilities of the web browser.
Existing web browsers have been classified by level: the lowest level is WB_MOZILLA3 (Netscape 3.x, IE3.x). The highest level is WB_IE55 (MS Internet Explorer 5.5). The highest a level, the best its capabilities regarding the web components framework. The levels are classified as follows (from lowest to highest):
IlxWPort.getBrowserInfo()| Modifier and Type | Field and Description |
|---|---|
static int |
VENDOR_MSIE
Vendor: Microsoft.
|
static int |
VENDOR_NN
Vendor: Netscape.
|
static int |
WB_IE50
MS Internet Explorer 5.0x.
|
static int |
WB_IE55
MS Internet Explorer 5.5x.
|
static int |
WB_IE6
MS Internet Explorer 6.x.
|
static int |
WB_IE7
MS Internet Explorer 7.x.
|
static int |
WB_IE8
MS Internet Explorer 8.x.
|
static int |
WB_MOZILLA3
Mozilla3: Netscape Navigator 3.x, MS Internet Explorer 3.x.
|
static int |
WB_MOZILLA4
Mozilla4: Netscape Navigator 4.x, MS Internet Explorer 4.
|
static int |
WB_MOZILLA5
Mozilla5: Netscape Navigator 7.x, Mozilla 1.02 -> 1.4a (19/05/2003)
|
static int |
WB_OTHER
Other browsers considered as Mozilla/3.
|
| Constructor and Description |
|---|
IlxWBrowserInfo(javax.servlet.http.HttpServletRequest request)
Constructs a
BrowserInfo object. |
| Modifier and Type | Method and Description |
|---|---|
int |
getLevel()
Gets the level of the current web browser.
|
int |
getVendor()
Gets the browser type.
|
boolean |
greaterOrEqualsIE50()
Specifies whether the level of the current browser is greater than or equal
to the WB_IE50 level.
|
boolean |
greaterOrEqualsIE55()
Specifies whether the level of the current browser is greater than or equal
to the WB_IE55 level.
|
boolean |
greaterOrEqualsMOZILLA5()
Specifies whether the level of the current browser is greater than or equal
to the WB_MOZILLA5 level.
|
boolean |
isFirefox() |
boolean |
isMSIE()
Specifies whether the browser is Internet Explorer version 5.0 or newer.
|
boolean |
isNN47()
Specifies whether the browser is Netscape 4.7 or not.
|
boolean |
isNN62()
Specifies whether the browser is Netscape 6.2 or not.
|
boolean |
lowerOrEqualsMOZILLA3()
Specifies whether the level of the current browser is less than or equal
to the WB_MOZILLA3 level.
|
public static final int WB_OTHER
public static final int WB_MOZILLA3
public static final int WB_MOZILLA4
public static final int WB_MOZILLA5
public static final int WB_IE50
public static final int WB_IE55
public static final int WB_IE6
public static final int WB_IE7
public static final int WB_IE8
public static final int VENDOR_NN
public static final int VENDOR_MSIE
public IlxWBrowserInfo(javax.servlet.http.HttpServletRequest request)
BrowserInfo object.request - The current request.public boolean isMSIE()
public boolean isNN47()
true if the browser is Netscape Navigator 4.7.public boolean isFirefox()
public boolean isNN62()
true if the browser is Netscape Navigator 6.2.public int getLevel()
public int getVendor()
public boolean greaterOrEqualsIE50()
public boolean greaterOrEqualsMOZILLA5()
public boolean greaterOrEqualsIE55()
public boolean lowerOrEqualsMOZILLA3()
© Copyright IBM Corp. 1987, 2017