com.jniwrapper.win32.ie
Class WebBrowser.Properties

java.lang.Object
  extended by com.jniwrapper.win32.ie.WebBrowser.Properties
Enclosing interface:
WebBrowser

public static class WebBrowser.Properties
extends java.lang.Object

Represents a set of event names that can be handled in the PropertyChangeListener listener.


Field Summary
static java.lang.String HAS_FOCUS
          Represents the focus changing event.
static java.lang.String PROPERTY_ALLOW_CLIENTPULL
           
static java.lang.String PROPERTY_ALLOW_CONTEXT_MENU
           
static java.lang.String PROPERTY_ALLOW_DOWNLOAD_ACTIVEX
           
static java.lang.String PROPERTY_ALLOW_DOWNLOADONLY
           
static java.lang.String PROPERTY_ALLOW_FORCEOFFLINE
           
static java.lang.String PROPERTY_ALLOW_FORCEUNLOAD
           
static java.lang.String PROPERTY_ALLOW_FRAMEDOWNLOAD
           
static java.lang.String PROPERTY_ALLOW_IMAGES
           
static java.lang.String PROPERTY_ALLOW_JAVA_APPLETS
           
static java.lang.String PROPERTY_ALLOW_NEW_WINDOW
           
static java.lang.String PROPERTY_ALLOW_RUN_ACTIVEX
           
static java.lang.String PROPERTY_ALLOW_SCRIPTS
           
static java.lang.String PROPERTY_ALLOW_SOUNDS
           
static java.lang.String PROPERTY_ALLOW_VIDEOS
           
static java.lang.String PROPERTY_SHOW_3DBORDER
          Property that corresponds to visibility of a 3D border around a browser component.
static java.lang.String PROPERTY_SHOW_SCROLLBARS
          Property that corresponds to visibility of browser's shroll bars.
static java.lang.String READY_STATE
          Represents the ready state change event.
 
Method Summary
 boolean isAllowClientPull()
          Checks if no client pull operations will be performed.
 boolean isAllowContextMenu()
           
 boolean isAllowDownloadActiveX()
           
 boolean isAllowDownloadOnly()
          Checks if the page will only be downloaded, not displayed.
 boolean isAllowForceOffline()
          Checks if the WebBrowser Control always operates in offline mode.
 boolean isAllowForceUnload()
          Determines whether WebBrowser control should be disposed or not.
 boolean isAllowFrameDownload()
          Checks if the WebBrowser Control will download and parse a frame set, but not the individual frame objects within the frame set.
 boolean isAllowImages()
           
 boolean isAllowJavaApplets()
           
 boolean isAllowNewWindow()
           
 boolean isAllowRunActiveX()
           
 boolean isAllowScripts()
           
 boolean isAllowSounds()
           
 boolean isAllowVideos()
           
 boolean isRefreshRequired()
          Checks the flag that specify whether refresh of the browser page after changes of browser properties or not.
 boolean isShow3DBorder()
          Checks if 3D border around a browser control is visible or not.
 boolean isShowScrollBars()
          Checks either browser's scroll bars are visible or not.
 void setAllowClientPull(boolean allowClientPull)
          Sets no client pull operations will be performed.
 void setAllowContextMenu(boolean allowContextMenu)
           
 void setAllowDownloadActiveX(boolean allowDownloadActiveX)
           
 void setAllowDownloadOnly(boolean allowDownloadOnly)
          Sets the page will only be downloaded, not displayed.
 void setAllowForceOffline(boolean allowForceOffline)
          Sets the WebBrowser Control always operates in offline mode.
 void setAllowForceUnload(boolean allowForceUnload)
          Determines whether WebBrowser control should be disposed or not.
 void setAllowFrameDownload(boolean allowFrameDownload)
          Sets the WebBrowser Control will download and parse a frame set, but not the individual frame objects within the frame set.
 void setAllowImages(boolean allowImages)
           
 void setAllowJavaApplets(boolean allowJavaApplets)
           
 void setAllowNewWindow(boolean allowNewWindow)
           
 void setAllowRunActiveX(boolean allowRunActiveX)
           
 void setAllowScripts(boolean allowScripts)
           
 void setAllowSounds(boolean allowSounds)
           
 void setAllowVideos(boolean allowVideos)
           
 void setRefreshRequired(boolean refreshRequired)
          Sets the flag that specify whether refresh of the browser page after changes of browser properties or not.
 void setShow3DBorder(boolean show3DBorder)
          Sets the visibility of 3D border around a browser control.
 void setShowScrollBars(boolean showScrollBars)
          Sets the visibility of browser's scroll bars.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

READY_STATE

public static final java.lang.String READY_STATE
Represents the ready state change event.

See Also:
Constant Field Values

HAS_FOCUS

public static final java.lang.String HAS_FOCUS
Represents the focus changing event.

See Also:
Constant Field Values

PROPERTY_SHOW_SCROLLBARS

public static final java.lang.String PROPERTY_SHOW_SCROLLBARS
Property that corresponds to visibility of browser's shroll bars.

See Also:
Constant Field Values

PROPERTY_SHOW_3DBORDER

public static final java.lang.String PROPERTY_SHOW_3DBORDER
Property that corresponds to visibility of a 3D border around a browser component.

See Also:
Constant Field Values

PROPERTY_ALLOW_IMAGES

public static final java.lang.String PROPERTY_ALLOW_IMAGES
See Also:
Constant Field Values

PROPERTY_ALLOW_VIDEOS

public static final java.lang.String PROPERTY_ALLOW_VIDEOS
See Also:
Constant Field Values

PROPERTY_ALLOW_SOUNDS

public static final java.lang.String PROPERTY_ALLOW_SOUNDS
See Also:
Constant Field Values

PROPERTY_ALLOW_SCRIPTS

public static final java.lang.String PROPERTY_ALLOW_SCRIPTS
See Also:
Constant Field Values

PROPERTY_ALLOW_JAVA_APPLETS

public static final java.lang.String PROPERTY_ALLOW_JAVA_APPLETS
See Also:
Constant Field Values

PROPERTY_ALLOW_DOWNLOAD_ACTIVEX

public static final java.lang.String PROPERTY_ALLOW_DOWNLOAD_ACTIVEX
See Also:
Constant Field Values

PROPERTY_ALLOW_RUN_ACTIVEX

public static final java.lang.String PROPERTY_ALLOW_RUN_ACTIVEX
See Also:
Constant Field Values

PROPERTY_ALLOW_NEW_WINDOW

public static final java.lang.String PROPERTY_ALLOW_NEW_WINDOW
See Also:
Constant Field Values

PROPERTY_ALLOW_CONTEXT_MENU

public static final java.lang.String PROPERTY_ALLOW_CONTEXT_MENU
See Also:
Constant Field Values

PROPERTY_ALLOW_DOWNLOADONLY

public static final java.lang.String PROPERTY_ALLOW_DOWNLOADONLY
See Also:
Constant Field Values

PROPERTY_ALLOW_FRAMEDOWNLOAD

public static final java.lang.String PROPERTY_ALLOW_FRAMEDOWNLOAD
See Also:
Constant Field Values

PROPERTY_ALLOW_FORCEOFFLINE

public static final java.lang.String PROPERTY_ALLOW_FORCEOFFLINE
See Also:
Constant Field Values

PROPERTY_ALLOW_CLIENTPULL

public static final java.lang.String PROPERTY_ALLOW_CLIENTPULL
See Also:
Constant Field Values

PROPERTY_ALLOW_FORCEUNLOAD

public static final java.lang.String PROPERTY_ALLOW_FORCEUNLOAD
See Also:
Constant Field Values
Method Detail

isAllowForceUnload

public boolean isAllowForceUnload()
Determines whether WebBrowser control should be disposed or not.

On some web pages the script authors can use the OnBeforeUnload event to ask the user whether they want to leave the page or not. If the user answers no, the WebBrowser should remain activated. In JExplorer it's possible to set the AllowForceUnload flag to allows disposing WebBrowser control even when user answers no.

Returns:
true if WebBrowser should be disposed in any case.

setAllowForceUnload

public void setAllowForceUnload(boolean allowForceUnload)
Determines whether WebBrowser control should be disposed or not.

On some web pages the script authors can use the OnBeforeUnload event to ask the user whether they want to leave the page or not. If the user answers no, the WebBrowser should remain activated. In JExplorer it's possible to set the AllowForceUnload flag to allows disposing WebBrowser control even when user answers no.

Parameters:
allowForceUnload - true if WebBrowser should be disposed in any case.

isRefreshRequired

public boolean isRefreshRequired()
Checks the flag that specify whether refresh of the browser page after changes of browser properties or not.

Returns:
true if refreshing has occur; otherwise - false

setRefreshRequired

public void setRefreshRequired(boolean refreshRequired)
Sets the flag that specify whether refresh of the browser page after changes of browser properties or not.

Parameters:
refreshRequired - true if need refreshing; otherwise - false

isShowScrollBars

public boolean isShowScrollBars()
Checks either browser's scroll bars are visible or not.

Returns:
true if browser's scroll bars are visible; otherwise false

setShowScrollBars

public void setShowScrollBars(boolean showScrollBars)
Sets the visibility of browser's scroll bars.
NOTE: modification of this property is applied automatically and causes the reloading of the currently opened document.

Parameters:
showScrollBars - if true - browser's scroll bars are visible; otherwise false

isShow3DBorder

public boolean isShow3DBorder()
Checks if 3D border around a browser control is visible or not.

Returns:
true if 3D border is visible; otherwise false

setShow3DBorder

public void setShow3DBorder(boolean show3DBorder)
Sets the visibility of 3D border around a browser control.
NOTE: modification of this property is applied automatically and causes the reloading of the currently opened document.

Parameters:
show3DBorder - if true - 3D border is visible; otherwise false

isAllowImages

public boolean isAllowImages()

setAllowImages

public void setAllowImages(boolean allowImages)

isAllowVideos

public boolean isAllowVideos()

setAllowVideos

public void setAllowVideos(boolean allowVideos)

isAllowSounds

public boolean isAllowSounds()

setAllowSounds

public void setAllowSounds(boolean allowSounds)

isAllowScripts

public boolean isAllowScripts()

setAllowScripts

public void setAllowScripts(boolean allowScripts)

isAllowJavaApplets

public boolean isAllowJavaApplets()

setAllowJavaApplets

public void setAllowJavaApplets(boolean allowJavaApplets)

isAllowDownloadActiveX

public boolean isAllowDownloadActiveX()

setAllowDownloadActiveX

public void setAllowDownloadActiveX(boolean allowDownloadActiveX)

isAllowRunActiveX

public boolean isAllowRunActiveX()

setAllowRunActiveX

public void setAllowRunActiveX(boolean allowRunActiveX)

isAllowNewWindow

public boolean isAllowNewWindow()

setAllowNewWindow

public void setAllowNewWindow(boolean allowNewWindow)

isAllowContextMenu

public boolean isAllowContextMenu()

setAllowContextMenu

public void setAllowContextMenu(boolean allowContextMenu)

isAllowDownloadOnly

public boolean isAllowDownloadOnly()
Checks if the page will only be downloaded, not displayed.

Returns:
true if the page will only be downloaded, not displayed; otherwise false

setAllowDownloadOnly

public void setAllowDownloadOnly(boolean allowDownloadOnly)
Sets the page will only be downloaded, not displayed.

Parameters:
allowDownloadOnly - if true - the page will only be downloaded, not displayed; otherwise false

isAllowFrameDownload

public boolean isAllowFrameDownload()
Checks if the WebBrowser Control will download and parse a frame set, but not the individual frame objects within the frame set.

Returns:
true if the WebBrowser Control will download and parse a frame set, but not the individual frame objects within the frame set; otherwise false

setAllowFrameDownload

public void setAllowFrameDownload(boolean allowFrameDownload)
Sets the WebBrowser Control will download and parse a frame set, but not the individual frame objects within the frame set.

Parameters:
allowFrameDownload - if true - the WebBrowser Control will download and parse a frame set, but not the individual frame objects within the frame set; otherwise false

isAllowForceOffline

public boolean isAllowForceOffline()
Checks if the WebBrowser Control always operates in offline mode.

Returns:
true if the WebBrowser Control always operates in offline mode; otherwise false

setAllowForceOffline

public void setAllowForceOffline(boolean allowForceOffline)
Sets the WebBrowser Control always operates in offline mode.

Parameters:
allowForceOffline - if true - the WebBrowser Control always operates in offline mode; otherwise false

isAllowClientPull

public boolean isAllowClientPull()
Checks if no client pull operations will be performed.

Returns:
true if no client pull operations will be performed; otherwise false

setAllowClientPull

public void setAllowClientPull(boolean allowClientPull)
Sets no client pull operations will be performed.

Parameters:
allowClientPull - if true - no client pull operations will be performed; otherwise false