ilog.webui.dhtml

Class IlxWBrowserInfo

  • java.lang.Object
    • ilog.webui.dhtml.IlxWBrowserInfo
  • All Implemented Interfaces:
    ilog.webui.dhtml.IlxWCSSModelProvider


    public class IlxWBrowserInfo
    extends java.lang.Object
    implements ilog.webui.dhtml.IlxWCSSModelProvider
    Web browser information.

    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):

    • WB_OTHER
    • WB_MOZILLA3
    • WB_MOZILLA4
    • WB_MOZILLA5
    • WB_IE50
    • WB_IE55
    • WB_IE6
    • WB_IE7
    • WB_IE8
    See Also:
    IlxWPort.getBrowserInfo()
    • Field Summary

      Fields 
      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 Summary

      Constructors 
      Constructor and Description
      IlxWBrowserInfo(javax.servlet.http.HttpServletRequest request)
      Constructs a BrowserInfo object.
    • Method Summary

      Methods 
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • WB_OTHER

        public static final int WB_OTHER
        Other browsers considered as Mozilla/3.
        See Also:
        Constant Field Values
      • WB_MOZILLA3

        public static final int WB_MOZILLA3
        Mozilla3: Netscape Navigator 3.x, MS Internet Explorer 3.x.
        See Also:
        Constant Field Values
      • WB_MOZILLA4

        public static final int WB_MOZILLA4
        Mozilla4: Netscape Navigator 4.x, MS Internet Explorer 4.
        See Also:
        Constant Field Values
      • WB_MOZILLA5

        public static final int WB_MOZILLA5
        Mozilla5: Netscape Navigator 7.x, Mozilla 1.02 -> 1.4a (19/05/2003)
        See Also:
        Constant Field Values
    • Constructor Detail

      • IlxWBrowserInfo

        public IlxWBrowserInfo(javax.servlet.http.HttpServletRequest request)
        Constructs a BrowserInfo object.
        Parameters:
        request - The current request.
    • Method Detail

      • isMSIE

        public boolean isMSIE()
        Specifies whether the browser is Internet Explorer version 5.0 or newer.
      • isNN47

        public boolean isNN47()
        Specifies whether the browser is Netscape 4.7 or not.

        Returns:
        true if the browser is Netscape Navigator 4.7.
      • isFirefox

        public boolean isFirefox()
      • isNN62

        public boolean isNN62()
        Specifies whether the browser is Netscape 6.2 or not.

        Returns:
        true if the browser is Netscape Navigator 6.2.
      • getLevel

        public int getLevel()
        Gets the level of the current web browser.
      • getVendor

        public int getVendor()
        Gets the browser type.

        Returns:
        VENDOR_MSIE or VENDOR_NN.
      • greaterOrEqualsIE50

        public boolean greaterOrEqualsIE50()
        Specifies whether the level of the current browser is greater than or equal to the WB_IE50 level.
      • greaterOrEqualsMOZILLA5

        public boolean greaterOrEqualsMOZILLA5()
        Specifies whether the level of the current browser is greater than or equal to the WB_MOZILLA5 level.
      • greaterOrEqualsIE55

        public boolean greaterOrEqualsIE55()
        Specifies whether the level of the current browser is greater than or equal to the WB_IE55 level.
      • lowerOrEqualsMOZILLA3

        public boolean lowerOrEqualsMOZILLA3()
        Specifies whether the level of the current browser is less than or equal to the WB_MOZILLA3 level.

© Copyright IBM Corp. 1987, 2017