com.teamdev.jxbrowser
Enum BrowserType

java.lang.Object
  extended by java.lang.Enum<BrowserType>
      extended by com.teamdev.jxbrowser.BrowserType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BrowserType>

public enum BrowserType
extends java.lang.Enum<BrowserType>

Enumeration of all browser types supported.


Enum Constant Summary
IE
          Microsoft Internet Explorer browser engine.
Mozilla
          Mozilla Firefox browser engine.
Safari
          Safari WebKit browser engine.
 
Method Summary
static BrowserType getCrossPlatformBrowser()
          Returns default cross-platform browser type.
static BrowserType getPlatformSpecificBrowser()
          Returns default browser type for the current platform.
 boolean isSupported()
          Returns true if the browser engine type is supported under the current OS.
static BrowserType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BrowserType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IE

public static final BrowserType IE
Microsoft Internet Explorer browser engine.


Mozilla

public static final BrowserType Mozilla
Mozilla Firefox browser engine.


Safari

public static final BrowserType Safari
Safari WebKit browser engine.

Method Detail

values

public static BrowserType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (BrowserType c : BrowserType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static BrowserType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getPlatformSpecificBrowser

public static BrowserType getPlatformSpecificBrowser()
Returns default browser type for the current platform.

Returns:
default browser type or getCrossPlatformBrowser() if not defined.

getCrossPlatformBrowser

public static BrowserType getCrossPlatformBrowser()
Returns default cross-platform browser type.

Returns:
default type value.

isSupported

public boolean isSupported()
Returns true if the browser engine type is supported under the current OS.

Returns:
true if the browser is supported, false otherwise.