Class WebView

All Implemented Interfaces:
LayoutMeasurable, LayoutMeasurableMixin, HasBlendModeProperty, HasClipProperty, HasEffectProperty, HasLayoutXProperty, HasLayoutYProperty, HasManagedProperty, HasMouseTransparentProperty, HasOnMouseClickedProperty, HasOpacityProperty, HasParentProperty, HasVisibleProperty, Styleable, EventTarget, INode

public class WebView extends Parent
Author:
Bruno Salmon
  • Property Details

  • Constructor Details

    • WebView

      public WebView()
  • Method Details

    • getWidth

      public final double getWidth()
      Gets the value of the width property.
      Property description:
      Width of this WebView.
      Returns:
      the value of the width property
      See Also:
    • widthProperty

      public DoubleProperty widthProperty()
      Width of this WebView.
      Returns:
      the width property
      See Also:
    • getHeight

      public final double getHeight()
      Gets the value of the height property.
      Property description:
      Height of this WebView.
      Returns:
      the value of the height property
      See Also:
    • heightProperty

      public DoubleProperty heightProperty()
      Height of this WebView.
      Returns:
      the height property
      See Also:
    • setUrl

      public void setUrl(String url)
      Sets the value of the url property.
      Property description:
      Parameters:
      url - the value for the url property
      See Also:
    • getUrl

      public String getUrl()
      Gets the value of the url property.
      Property description:
      Returns:
      the value of the url property
      See Also:
    • urlProperty

      public StringProperty urlProperty()
      Returns:
      the url property
      See Also:
    • setLoadContent

      public void setLoadContent(String loadContent)
      Sets the value of the loadContent property.
      Property description:
      Parameters:
      loadContent - the value for the loadContent property
      See Also:
    • getLoadContent

      public String getLoadContent()
      Gets the value of the loadContent property.
      Property description:
      Returns:
      the value of the loadContent property
      See Also:
    • loadContentProperty

      public StringProperty loadContentProperty()
      Returns:
      the loadContent property
      See Also:
    • getEngine

      public WebEngine getEngine()
    • isResizable

      public boolean isResizable()
    • resize

      public void resize(double width, double height)
    • minWidth

      public final double minWidth(double height)
      Called during layout to determine the minimum width for this node.
      Returns:
      the minimum width that this node should be resized to during layout
    • minHeight

      public final double minHeight(double width)
      Called during layout to determine the minimum height for this node.
      Returns:
      the minimum height that this node should be resized to during layout
    • prefWidth

      public final double prefWidth(double height)
      Called during layout to determine the preferred width for this node.
      Returns:
      the preferred width that this node should be resized to during layout
    • prefHeight

      public final double prefHeight(double width)
      Called during layout to determine the preferred height for this node.
      Returns:
      the preferred height that this node should be resized to during layout
    • maxWidth

      public final double maxWidth(double height)
      Called during layout to determine the maximum width for this node.
      Returns:
      the maximum width that this node should be resized to during layout
    • maxHeight

      public final double maxHeight(double width)
      Called during layout to determine the maximum height for this node.
      Returns:
      the maximum height that this node should be resized to during layout
    • minWidthProperty

      public DoubleProperty minWidthProperty()
      Minimum width property.
      Returns:
      the minWidth property
      See Also:
    • setMinWidth

      public final void setMinWidth(double value)
      Sets the value of the minWidth property.
      Property description:
      Minimum width property.
      Parameters:
      value - the value for the minWidth property
      See Also:
    • getMinWidth

      public final double getMinWidth()
      Gets the value of the minWidth property.
      Property description:
      Minimum width property.
      Returns:
      the value of the minWidth property
      See Also:
    • minHeightProperty

      public DoubleProperty minHeightProperty()
      Minimum height property.
      Returns:
      the minHeight property
      See Also:
    • setMinHeight

      public final void setMinHeight(double value)
      Sets the value of the minHeight property.
      Property description:
      Minimum height property.
      Parameters:
      value - the value for the minHeight property
      See Also:
    • getMinHeight

      public final double getMinHeight()
      Gets the value of the minHeight property.
      Property description:
      Minimum height property.
      Returns:
      the value of the minHeight property
      See Also:
    • setMinSize

      public void setMinSize(double minWidth, double minHeight)
      Convenience method for setting minimum width and height.
      Parameters:
      minWidth - the minimum width
      minHeight - the minimum height
    • prefWidthProperty

      public DoubleProperty prefWidthProperty()
      Preferred width property.
      Returns:
      the prefWidth property
      See Also:
    • setPrefWidth

      public final void setPrefWidth(double value)
      Sets the value of the prefWidth property.
      Property description:
      Preferred width property.
      Parameters:
      value - the value for the prefWidth property
      See Also:
    • getPrefWidth

      public final double getPrefWidth()
      Gets the value of the prefWidth property.
      Property description:
      Preferred width property.
      Returns:
      the value of the prefWidth property
      See Also:
    • prefHeightProperty

      public DoubleProperty prefHeightProperty()
      Preferred height property.
      Returns:
      the prefHeight property
      See Also:
    • setPrefHeight

      public final void setPrefHeight(double value)
      Sets the value of the prefHeight property.
      Property description:
      Preferred height property.
      Parameters:
      value - the value for the prefHeight property
      See Also:
    • getPrefHeight

      public final double getPrefHeight()
      Gets the value of the prefHeight property.
      Property description:
      Preferred height property.
      Returns:
      the value of the prefHeight property
      See Also:
    • setPrefSize

      public void setPrefSize(double prefWidth, double prefHeight)
      Convenience method for setting preferred width and height.
      Parameters:
      prefWidth - the preferred width
      prefHeight - the preferred height
    • maxWidthProperty

      public DoubleProperty maxWidthProperty()
      Maximum width property.
      Returns:
      the maxWidth property
      See Also:
    • setMaxWidth

      public final void setMaxWidth(double value)
      Sets the value of the maxWidth property.
      Property description:
      Maximum width property.
      Parameters:
      value - the value for the maxWidth property
      See Also:
    • getMaxWidth

      public final double getMaxWidth()
      Gets the value of the maxWidth property.
      Property description:
      Maximum width property.
      Returns:
      the value of the maxWidth property
      See Also:
    • maxHeightProperty

      public DoubleProperty maxHeightProperty()
      Maximum height property.
      Returns:
      the maxHeight property
      See Also:
    • setMaxHeight

      public final void setMaxHeight(double value)
      Sets the value of the maxHeight property.
      Property description:
      Maximum height property.
      Parameters:
      value - the value for the maxHeight property
      See Also:
    • getMaxHeight

      public final double getMaxHeight()
      Gets the value of the maxHeight property.
      Property description:
      Maximum height property.
      Returns:
      the value of the maxHeight property
      See Also:
    • setMaxSize

      public void setMaxSize(double maxWidth, double maxHeight)
      Convenience method for setting maximum width and height.
      Parameters:
      maxWidth - the maximum width
      maxHeight - the maximum height
    • impl_computeGeomBounds

      public BaseBounds impl_computeGeomBounds(BaseBounds bounds, BaseTransform tx)
      Description copied from class: Parent
      This set is used to track all of the children of this group which are dirty. It is only used in cases where the number of children is > some value (currently 10). For very wide trees, this can provide a very important speed boost. For the sake of memory consumption, this is null unless the number of children ever crosses the threshold where it will be activated.
      Overrides:
      impl_computeGeomBounds in class Parent
    • setPageFill

      public final void setPageFill(Color value)
      Sets the value of the pageFill property.
      Property description:
      Parameters:
      value - the value for the pageFill property
      See Also:
    • getPageFill

      public final Color getPageFill()
      Gets the value of the pageFill property.
      Property description:
      Returns:
      the value of the pageFill property
      See Also:
    • pageFillProperty

      public final ObjectProperty<Color> pageFillProperty()
      Returns:
      the pageFill property
      See Also: