|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.browser.field2.BrowserFieldConfig
public class BrowserFieldConfig
This class provides a means to configure a BrowserField instance. This can be done as follows:
BrowserFieldConfig config = new BrowserFieldConfig(); config.setProperty(BrowserFieldConfig.USER_AGENT, "MyApplication 1.0"); BrowserField browserField = new BrowserField(config);
Field Summary | ||
---|---|---|
static String |
ALLOW_CS_XHR
Property Type: Boolean Default: Boolean.FALSE |
|
static String |
CONNECTION_FACTORY
Use this property overwrite the default transport connection factory used by the default connection manager to selected which transport to use when opening a connection. |
|
static String |
CONNECTION_MANAGER
Property Type: BrowserFieldConnectionManager Default: Use internal connection management that will find the best available transport service and use that service to open connections. |
|
static String |
CONTROLLER
Property Type: BrowserFieldController Default: ProtocolController |
|
static String |
COOKIE_MANAGER
Property Type: BrowserFieldCookieManager Default: Use internal cookie management that is similar in behaviour to the Browser |
|
static String |
ENABLE_COOKIES
Dictates whether or not cookies are enabled. |
|
static String |
ENABLE_GEARS
Deprecated. Gears will be replaced by HTML5 equivalent features |
|
static String |
ERROR_HANDLER
Property Type: BrowserFieldErrorHandler Default: BrowserFieldErrorHandler |
|
static String |
HTTP_HEADERS
If specified, these HTTP headers will replace the default headers to be used when making HTTP requests. |
|
static String |
INITIAL_SCALE
Property Type: Float Default: None |
|
static String |
JAVASCRIPT_ENABLED
Property Type: Boolean Default: Boolean.TRUE |
|
static String |
JAVASCRIPT_TIMEOUT
Property Type: Integer Default: 5000 (5 seconds) |
|
static String |
MDS_TRANSCODING_ENABLED
Deprecated. MDS transcoding is not supported |
|
static String |
NAVIGATION_MODE
This property determines the navigation type. |
|
static Integer |
NAVIGATION_MODE_CARET
Deprecated. Caret navigation mode is no longer supported. When used it is interpreted as equivalent to NAVIGATION_MODE_NODE |
|
static Integer |
NAVIGATION_MODE_NODE
This is one of the four options for the NAVIGATION_MODE property. |
|
static Integer |
NAVIGATION_MODE_NONE
This is one of the four options for the NAVIGATION_MODE property. |
|
static Integer |
NAVIGATION_MODE_POINTER
This is one of the four options for the NAVIGATION_MODE property. |
|
static String |
USER_AGENT
Property Type: String Default: The BlackBerry Browser's user agent. |
|
static String |
USER_SCALABLE
Property Type: Boolean Default: Boolean.TRUE |
|
static String |
VIEWPORT_WIDTH
Property Type: Integer Default: None |
Constructor Summary | ||
---|---|---|
BrowserFieldConfig()
This method creates a new instance of BrowserFieldConfig with no properties set. |
Method Summary | ||
---|---|---|
Object |
getProperty(String key)
This method retrieves a config property |
|
boolean |
propertyExists(String key)
This checks for the existence of a config property |
|
void |
setProperty(String key,
Object value)
This method sets a config property |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String HTTP_HEADERS
public static final String USER_AGENT
public static final String ENABLE_COOKIES
public static final String COOKIE_MANAGER
public static final String CONTROLLER
public static final String CONNECTION_MANAGER
public static final String ERROR_HANDLER
public static final String ALLOW_CS_XHR
public static final String USER_SCALABLE
public static final String INITIAL_SCALE
public static final String VIEWPORT_WIDTH
public static final String JAVASCRIPT_ENABLED
public static final String JAVASCRIPT_TIMEOUT
public static final String NAVIGATION_MODE
public static final String MDS_TRANSCODING_ENABLED
public static final String ENABLE_GEARS
public static final String CONNECTION_FACTORY
ConnectionFactory
,
Constant Field Valuespublic static final Integer NAVIGATION_MODE_NONE
public static final Integer NAVIGATION_MODE_CARET
NAVIGATION_MODE_NODE
public static final Integer NAVIGATION_MODE_POINTER
public static final Integer NAVIGATION_MODE_NODE
Constructor Detail |
---|
public BrowserFieldConfig()
Method Detail |
---|
public void setProperty(String key, Object value) throws IllegalArgumentException
key
- The identifier for the desired propertyvalue
- The new config property value
IllegalArgumentException
- When the type of the value provided is not valid for the specified key.public Object getProperty(String key)
key
- The identifier for the desired property
public boolean propertyExists(String key)
key
- The identifier for the desired property
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.