Package net.jalbum.browser
Class WebViewBrowser
java.lang.Object
net.jalbum.browser.WebViewBrowser
- All Implemented Interfaces:
WebBrowser
-
Property Summary
TypePropertyDescriptionjavafx.beans.property.ReadOnlyBooleanProperty
javafx.beans.property.ReadOnlyBooleanProperty
javafx.beans.property.ReadOnlyStringProperty
javafx.beans.property.ReadOnlyObjectProperty<javafx.concurrent.Worker.State>
Gets the ReadOnlyObjectProperty representing the current state.javafx.beans.property.ReadOnlyStringProperty
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The following code redirects console.log() to JavaBridge.log(): -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.ReadOnlyBooleanProperty
javafx.beans.property.ReadOnlyBooleanProperty
void
dispose()
void
javafx.scene.web.WebEngine
Gets the value of thelocation
property.getTitle()
Gets the value of thetitle
property.getView()
javafx.scene.web.WebView
void
goBack()
void
void
void
loadContent
(String content) javafx.beans.property.ReadOnlyStringProperty
void
void
Convenience to using stateProperty to execute code when page is loadedvoid
reload()
void
javafx.beans.property.ReadOnlyObjectProperty<javafx.concurrent.Worker.State>
Gets the ReadOnlyObjectProperty representing the current state.void
stop()
javafx.beans.property.ReadOnlyStringProperty
void
-
Property Details
-
location
public javafx.beans.property.ReadOnlyStringProperty locationProperty- Specified by:
locationProperty
in interfaceWebBrowser
- Returns:
- the
location
property - See Also:
-
state
public javafx.beans.property.ReadOnlyObjectProperty<javafx.concurrent.Worker.State> stateProperty- Specified by:
stateProperty
in interfaceWebBrowser
- Returns:
- The property representing the state
- See Also:
-
canGoBack
public javafx.beans.property.ReadOnlyBooleanProperty canGoBackProperty- Specified by:
canGoBackProperty
in interfaceWebBrowser
- Returns:
- the
canGoBack
property - See Also:
-
canGoForward
public javafx.beans.property.ReadOnlyBooleanProperty canGoForwardProperty- Specified by:
canGoForwardProperty
in interfaceWebBrowser
- Returns:
- the
canGoForward
property - See Also:
-
title
public javafx.beans.property.ReadOnlyStringProperty titleProperty- Specified by:
titleProperty
in interfaceWebBrowser
- Returns:
- the
title
property - See Also:
-
-
Field Details
-
webEngine
public static javafx.scene.web.WebEngine webEngine
-
-
Constructor Details
-
WebViewBrowser
public WebViewBrowser()
-
-
Method Details
-
getView
- Specified by:
getView
in interfaceWebBrowser
-
ensureReady
public void ensureReady() -
load
- Specified by:
load
in interfaceWebBrowser
-
loadContent
- Specified by:
loadContent
in interfaceWebBrowser
-
reload
public void reload()- Specified by:
reload
in interfaceWebBrowser
-
reloadIgnoringCache
public void reloadIgnoringCache()- Specified by:
reloadIgnoringCache
in interfaceWebBrowser
-
waitUntilLoaded
- Specified by:
waitUntilLoaded
in interfaceWebBrowser
- Throws:
InterruptedException
-
getLocation
Gets the value of thelocation
property.- Specified by:
getLocation
in interfaceWebBrowser
- Property description:
- Returns:
- the value of the
location
property - See Also:
-
locationProperty
public javafx.beans.property.ReadOnlyStringProperty locationProperty()- Specified by:
locationProperty
in interfaceWebBrowser
- Returns:
- the
location
property - See Also:
-
stop
public void stop()- Specified by:
stop
in interfaceWebBrowser
-
stateProperty
public javafx.beans.property.ReadOnlyObjectProperty<javafx.concurrent.Worker.State> stateProperty()Description copied from interface:WebBrowser
Gets the ReadOnlyObjectProperty representing the current state.- Specified by:
stateProperty
in interfaceWebBrowser
- Returns:
- the
state
property
-
goBack
public void goBack()- Specified by:
goBack
in interfaceWebBrowser
-
goForward
public void goForward()- Specified by:
goForward
in interfaceWebBrowser
-
canGoBackProperty
public javafx.beans.property.ReadOnlyBooleanProperty canGoBackProperty()- Specified by:
canGoBackProperty
in interfaceWebBrowser
- Returns:
- the
canGoBack
property
-
canGoForwardProperty
public javafx.beans.property.ReadOnlyBooleanProperty canGoForwardProperty()- Specified by:
canGoForwardProperty
in interfaceWebBrowser
- Returns:
- the
canGoForward
property
-
getTitle
Gets the value of thetitle
property.- Specified by:
getTitle
in interfaceWebBrowser
- Property description:
- Returns:
- the value of the
title
property - See Also:
-
titleProperty
public javafx.beans.property.ReadOnlyStringProperty titleProperty()- Specified by:
titleProperty
in interfaceWebBrowser
- Returns:
- the
title
property - See Also:
-
onPageLoaded
Description copied from interface:WebBrowser
Convenience to using stateProperty to execute code when page is loaded- Specified by:
onPageLoaded
in interfaceWebBrowser
- Parameters:
r
-
-
onError
- Parameters:
r
-- Since:
- 17.2
-
dispose
public void dispose()- Specified by:
dispose
in interfaceWebBrowser
-
getEngine
public javafx.scene.web.WebEngine getEngine() -
getWebView
public javafx.scene.web.WebView getWebView()- Returns:
- Since:
- 17.2
-
getDocument
- Specified by:
getDocument
in interfaceWebBrowser
-