|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.openedit.web.Browser
public class Browser
This interface represents a particular type of browser.
| Field Summary | |
|---|---|
static int |
CHROME_BROWSER
|
static int |
GECKO_BROWSER
|
static int |
IE_EDIT_WIDTH
|
static int |
MOZILLA_EDIT_WIDTH
|
static int |
MSIE_BROWSER
|
static int |
NETSCAPE_BROWSER
|
static int |
OPERA_BROWSER
|
static int |
SAFARI_BROWSER
|
static int |
SAFARI_IPAD_BROWSER
|
static int |
TEXT_BROWSER
|
static int |
UNKNOWN_BROWSER
|
| Constructor Summary | |
|---|---|
Browser(java.lang.String inUserAgent)
|
|
| Method Summary | |
|---|---|
int |
getBrowserType()
Retrieve the browser type. |
java.lang.String |
getCookieListing()
|
int |
getEditWidth()
|
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
|
java.util.Locale |
getLocale()
|
java.lang.String |
getMajorVersion()
Retrieve the major version (if one could be found). |
java.lang.String |
getMinorVersion()
Retrieve the minor version (if one could be found). |
java.lang.String |
getUserAgent()
Retrieve the user agent string that we used to determine the information in this browser. |
java.lang.String |
getVersion()
Retrieve the browser version. |
boolean |
isGecko()
Determine whether the browser is a Mozilla derivative (including Netscape 6 and 7). |
boolean |
isHtml5VideoOnly()
|
boolean |
isMSIE()
Determine if the browser is a Microsoft browser. |
boolean |
isXMLEditorCompatible()
FIXME: This is a temporary method needed because Velocity can't handle static fields (it would seem). |
void |
setHttpServletRequest(javax.servlet.http.HttpServletRequest inHttpServletRequest)
|
void |
setLocale(java.util.Locale inLocale)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UNKNOWN_BROWSER
public static final int MSIE_BROWSER
public static final int GECKO_BROWSER
public static final int NETSCAPE_BROWSER
public static final int CHROME_BROWSER
public static final int SAFARI_BROWSER
public static final int SAFARI_IPAD_BROWSER
public static final int OPERA_BROWSER
public static final int TEXT_BROWSER
public static final int IE_EDIT_WIDTH
public static final int MOZILLA_EDIT_WIDTH
| Constructor Detail |
|---|
public Browser(java.lang.String inUserAgent)
| Method Detail |
|---|
public int getBrowserType()
BROWSER constantspublic boolean isMSIE()
public java.lang.String getMajorVersion()
public java.lang.String getMinorVersion()
public boolean isGecko()
public boolean isHtml5VideoOnly()
public java.lang.String getUserAgent()
public java.lang.String getVersion()
public boolean isXMLEditorCompatible()
public int getEditWidth()
public java.util.Locale getLocale()
public void setLocale(java.util.Locale inLocale)
public java.lang.String getCookieListing()
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
public void setHttpServletRequest(javax.servlet.http.HttpServletRequest inHttpServletRequest)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||