public class

BrowserUtils

extends Object
java.lang.Object
   ↳ com.atlassian.jira.util.BrowserUtils

Summary

Constants
String USER_AGENT_HEADER
Public Constructors
BrowserUtils()
Public Methods
static String getModifierKey()
Returns the modifier key appropriate for the user's browser and platform (used for access keys)
static boolean isFilterBasedPngOpacity(String userAgent)
Returns TRUE if the browser requires a Filter style opacity statement for PNGs

  • IE 5 upwards on Windows
static boolean isIe456Or7(String userAgent)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String USER_AGENT_HEADER

Constant Value: "USER-AGENT"

Public Constructors

public BrowserUtils ()

Public Methods

public static String getModifierKey ()

Returns the modifier key appropriate for the user's browser and platform (used for access keys)

Returns
  • Key or key combinations e.g. "Alt" or "Ctrl"

public static boolean isFilterBasedPngOpacity (String userAgent)

Returns TRUE if the browser requires a Filter style opacity statement for PNGs

  • IE 5 upwards on Windows

Parameters
userAgent the user agent header from the request
Returns
  • true if the browser is IE 5+ on Windows

public static boolean isIe456Or7 (String userAgent)