com.atlassian.jira.util
Class BrowserUtils

java.lang.Object
  extended by com.atlassian.jira.util.BrowserUtils

public class BrowserUtils
extends Object


Field Summary
static String USER_AGENT_HEADER
           
 
Constructor Summary
BrowserUtils()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_AGENT_HEADER

public static final String USER_AGENT_HEADER
See Also:
Constant Field Values
Constructor Detail

BrowserUtils

public BrowserUtils()
Method Detail

getModifierKey

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"

isIe456Or7

public static boolean isIe456Or7(String userAgent)

isFilterBasedPngOpacity

public static boolean isFilterBasedPngOpacity(String userAgent)
Returns TRUE if the browser requires a Filter style opacity statement for PNGs

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


Copyright © 2002-2012 Atlassian. All Rights Reserved.