com.teamdev.jxbrowser.mozilla
Class MozillaConfigurable

java.lang.Object
  extended by com.teamdev.jxbrowser.mozilla.MozillaConfigurable
All Implemented Interfaces:
Configurable

public class MozillaConfigurable
extends java.lang.Object
implements Configurable

Contains content preferences flags such as enabling/disabling images, plugin's JavaScript etc.


Method Summary
static boolean canAutoEnableOfflineMode()
          Determines whether Mozilla can automatically enable Offline mode when network is down.
 void disableFeature(Feature feature)
          Disable the specified feature.
 void enableFeature(Feature feature)
          Enable the specified feature.
 java.util.Map<Feature,java.lang.Boolean> getFeatures()
          Returns a map of all available browser features where the value determines whether the feature enabled or disabled.
static void setAutoEnableOfflineMode(boolean enable)
          Allows enabling or disabling Mozilla behavior when network is down and Mozilla automatically enable Offline mode.
 void setFeatures(java.util.Map<Feature,java.lang.Boolean> features)
          Updates browser features according to the features collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

canAutoEnableOfflineMode

public static boolean canAutoEnableOfflineMode()
Determines whether Mozilla can automatically enable Offline mode when network is down.

Returns:
true when Mozilla enable Offline mode automatically when network is down.

setAutoEnableOfflineMode

public static void setAutoEnableOfflineMode(boolean enable)
Allows enabling or disabling Mozilla behavior when network is down and Mozilla automatically enable Offline mode.

Parameters:
enable - set to true when Mozilla should enable Offline mode automatically when network is down.

disableFeature

public void disableFeature(Feature feature)
Description copied from interface: Configurable
Disable the specified feature.

Specified by:
disableFeature in interface Configurable
Parameters:
feature - feature to disable.

enableFeature

public void enableFeature(Feature feature)
Description copied from interface: Configurable
Enable the specified feature.

Specified by:
enableFeature in interface Configurable
Parameters:
feature - feature to enable.

getFeatures

public java.util.Map<Feature,java.lang.Boolean> getFeatures()
Description copied from interface: Configurable
Returns a map of all available browser features where the value determines whether the feature enabled or disabled.

Specified by:
getFeatures in interface Configurable
Returns:
the browser features collection.

setFeatures

public void setFeatures(java.util.Map<Feature,java.lang.Boolean> features)
Description copied from interface: Configurable
Updates browser features according to the features collection.

Specified by:
setFeatures in interface Configurable
Parameters:
features - the browser features collection.