WebEngine

scalafx.scene.web.WebEngine
See theWebEngine companion object
class WebEngine(val delegate: WebEngine) extends SFXDelegate[WebEngine]

Value parameters

delegate

A JavaFX WebEngine. Its default value is a new instance.

Attributes

Constructor

Creates a new WebEngine from its JavaFX counterpart.

Companion
object
Graph
Supertypes
trait SFXDelegate[WebEngine]
class Object
trait Matchable
class Any

Members list

Value members

Constructors

def this(url: String)

Creates a new engine and loads a Web page into it.

Creates a new engine and loads a Web page into it.

Attributes

Concrete methods

def confirmHandler: ObjectProperty[Callback[String, Boolean]]

JavaScript confirm handler property.

JavaScript confirm handler property.

Attributes

def createPopupHandler: ObjectProperty[Callback[PopupFeatures, WebEngine]]

JavaScript popup handler property.

JavaScript popup handler property.

Attributes

def createPopupHandler_=(f: PopupFeatures => WebEngine): Unit
def document: Document

Document object for the current Web page.

Document object for the current Web page.

Attributes

JavaScript enabled handler property.

JavaScript enabled handler property.

Attributes

Since

2.2

def load(url: String): Unit

Loads a Web page into this engine.

Loads a Web page into this engine.

Attributes

def loadContent(content: String): Unit

Loads the given HTML content directly.

Loads the given HTML content directly.

Attributes

def loadContent(content: String, contentType: String): Unit

Loads the given content directly.

Loads the given content directly.

Attributes

URL of the current Web page.

URL of the current Web page.

Attributes

def onAlert: ObjectProperty[EventHandler[WebEvent[String]]]

JavaScript alert handler property.

JavaScript alert handler property.

Attributes

def onAlert_=(v: EventHandler[WebEvent[String]]): Unit
def onError: ObjectProperty[EventHandler[WebErrorEvent]]

The event handler called when an error occurs.

The event handler called when an error occurs.

Attributes

Since

8.0

def onError_=(v: EventHandler[WebErrorEvent]): Unit
def onResized: ObjectProperty[EventHandler[WebEvent[Rectangle2D]]]

JavaScript window resize handler property.

JavaScript window resize handler property.

Attributes

def onResized_=(v: EventHandler[WebEvent[Rectangle2D]]): Unit
def onStatusChanged: ObjectProperty[EventHandler[WebEvent[String]]]

JavaScript status handler property.

JavaScript status handler property.

Attributes

def onStatusChanged_=(v: EventHandler[WebEvent[String]]): Unit
def onVisibilityChanged: ObjectProperty[EventHandler[WebEvent[Boolean]]]

JavaScript window visibility handler property.

JavaScript window visibility handler property.

Attributes

def onVisibilityChanged_=(v: EventHandler[WebEvent[Boolean]]): Unit
def promptHandler: ObjectProperty[Callback[PromptData, String]]

JavaScript prompt handler property.

JavaScript prompt handler property.

Attributes

Title of the current Web page.

Title of the current Web page.

Attributes

Specifies user agent ID string.

Specifies user agent ID string.

Attributes

Since

8.0

Specifies the directory to be used by this WebEngine to store local user data.

Specifies the directory to be used by this WebEngine to store local user data.

Attributes

Since

8.0

def userDataDirectory_=(v: File): Unit

JavaScript enabled handler property.

JavaScript enabled handler property.

Attributes

Since

2.2

Inherited methods

override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value parameters

ref

Object to be compared.

Attributes

Returns

if the other object is equals to this delegate or not.

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def hashCode: Int

Attributes

Returns

The delegate hashcode

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def toString: String

Attributes

Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate

Concrete fields

override val delegate: WebEngine

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes