org.wings.session
Class BrowserType

java.lang.Object
  extended by org.wings.session.BrowserType
All Implemented Interfaces:
Serializable

public class BrowserType
extends Object
implements Serializable

Typesafe enumeration class of operating systems on browsers client side.

Example usage of how to get the browser type

SessionManager.getSession().getUserAgent().getBrowserType()

See Also:
Serialized Form

Nested Class Summary
static class BrowserType.BrowserID
           
 
Field Summary
static BrowserType GECKO
          Gecko based browser type.
static BrowserType IE
          Internet Explorere variant.
static BrowserType KONQUEROR
          Konqueror browser type on Linux/KDE.
static BrowserType MOZILLA
          Old mozilla browser type.
static BrowserType OPERA
          Opera browser type on Linux/KDE.
static BrowserType UNKNOWN
          Unknown browser type
 
Method Summary
 String getDescription()
           
 int getId()
           
 String getShortName()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final BrowserType UNKNOWN
Unknown browser type


GECKO

public static final BrowserType GECKO
Gecko based browser type.


MOZILLA

public static final BrowserType MOZILLA
Old mozilla browser type.


IE

public static final BrowserType IE
Internet Explorere variant.


OPERA

public static final BrowserType OPERA
Opera browser type on Linux/KDE.


KONQUEROR

public static final BrowserType KONQUEROR
Konqueror browser type on Linux/KDE.

Method Detail

getId

public int getId()
Returns:
A unique id for this browser type.

getDescription

public String getDescription()
Returns:
Clear-Text browserName of this browser type

getShortName

public String getShortName()
Returns:
Short name, used also to assemble i.e. css. file names

toString

public String toString()
Overrides:
toString in class Object


wingS Swings ;-)