com.atlassian.jira.util
Class BrowserUtils

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

public class BrowserUtils
extends java.lang.Object


Field Summary
static java.lang.String USER_AGENT_HEADER
           
 
Constructor Summary
BrowserUtils()
           
 
Method Summary
static java.lang.String getModifierKey()
          Returns the modifier key appropriate for the user's browser and platform (used for access keys)
static boolean isFilterBasedPngOpacity(java.lang.String userAgent)
          Returns TRUE if the browser requires a Filter style opacity statement for PNGs IE 5 upwards on Windows
static boolean isIe456Or7(java.lang.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 java.lang.String USER_AGENT_HEADER
See Also:
Constant Field Values
Constructor Detail

BrowserUtils

public BrowserUtils()
Method Detail

getModifierKey

public static java.lang.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(java.lang.String userAgent)

isFilterBasedPngOpacity

public static boolean isFilterBasedPngOpacity(java.lang.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-2010 Atlassian. All Rights Reserved.