Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: PopupControl

[17:7] extends: PopupWindow

The PopupControl class wraps javafx.scene.control.PopupControl, the skinnable base for ContextMenu and Tooltip. It extends PopupWindow and adds the id and inline style, the CSS style class list, the skin, and the min, pref, and max size settings. This wrapper is not constructed directly. ContextMenu and Tooltip extend it, mirroring the JavaFX inheritance model.

Methods

  • PopupControl ()

    Base constructor. PopupControl is abstract and is never instantiated on its own.

  • setId (string Id)

    Sets the id used for CSS and lookup.

    • @p Id is a string with the id.
    • @r this object for chaining
  • getId ()

    Returns the id used for CSS and lookup.

    • @r A string with the id, or null when none is set.
  • idProperty ()

    Returns the StringProperty backing the id.

    • @r An AJO wrapping javafx.beans.property.StringProperty.
  • setStyle (string Style)

    Sets the inline CSS style string.

    • @p Style is a string with the inline style.
    • @r this object for chaining
  • getStyle ()

    Returns the inline CSS style string.

    • @r A string with the inline style, or null when none is set.
  • styleProperty ()

    Returns the StringProperty backing the inline style.

    • @r An AJO wrapping javafx.beans.property.StringProperty.
  • getStyleClass ()

    Returns the modifiable list of CSS style class names.

    • @r An AJO wrapping ObservableList.
  • setSkin (SkinObj)

    Sets the skin that renders this pop-up control.

    • @p SkinObj is a javafx.scene.control.Skin, passed as a wrapper or a raw AJO.
    • @r this object for chaining
  • getSkin ()

    Returns the skin that renders this pop-up control.

    • @r An AJO wrapping javafx.scene.control.Skin, or null when none is set.
  • skinProperty ()

    Returns the ObjectProperty backing the skin.

    • @r An AJO wrapping ObjectProperty.
  • setMinWidth (double W)

    Sets the minimum width of the pop-up in pixels.

    • @p W is a double with the minimum width.
    • @r this object for chaining
  • getMinWidth ()

    Returns the minimum width of the pop-up in pixels.

    • @r A double with the minimum width.
  • minWidthProperty ()

    Returns the DoubleProperty backing the minimum width.

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.
  • setMinHeight (double H)

    Sets the minimum height of the pop-up in pixels.

    • @p H is a double with the minimum height.
    • @r this object for chaining
  • getMinHeight ()

    Returns the minimum height of the pop-up in pixels.

    • @r A double with the minimum height.
  • minHeightProperty ()

    Returns the DoubleProperty backing the minimum height.

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.
  • setMinSize (double W, double H)

    Sets the minimum width and height together.

    • @p W is a double with the minimum width.
    • @p H is a double with the minimum height.
    • @r this object for chaining
  • setPrefWidth (double W)

    Sets the preferred width of the pop-up in pixels.

    • @p W is a double with the preferred width.
    • @r this object for chaining
  • getPrefWidth ()

    Returns the preferred width of the pop-up in pixels.

    • @r A double with the preferred width.
  • prefWidthProperty ()

    Returns the DoubleProperty backing the preferred width.

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.
  • setPrefHeight (double H)

    Sets the preferred height of the pop-up in pixels.

    • @p H is a double with the preferred height.
    • @r this object for chaining
  • getPrefHeight ()

    Returns the preferred height of the pop-up in pixels.

    • @r A double with the preferred height.
  • prefHeightProperty ()

    Returns the DoubleProperty backing the preferred height.

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.
  • setPrefSize (double W, double H)

    Sets the preferred width and height together.

    • @p W is a double with the preferred width.
    • @p H is a double with the preferred height.
    • @r this object for chaining
  • setMaxWidth (double W)

    Sets the maximum width of the pop-up in pixels.

    • @p W is a double with the maximum width.
    • @r this object for chaining
  • getMaxWidth ()

    Returns the maximum width of the pop-up in pixels.

    • @r A double with the maximum width.
  • maxWidthProperty ()

    Returns the DoubleProperty backing the maximum width.

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.
  • setMaxHeight (double H)

    Sets the maximum height of the pop-up in pixels.

    • @p H is a double with the maximum height.
    • @r this object for chaining
  • getMaxHeight ()

    Returns the maximum height of the pop-up in pixels.

    • @r A double with the maximum height.
  • maxHeightProperty ()

    Returns the DoubleProperty backing the maximum height.

    • @r An AJO wrapping javafx.beans.property.DoubleProperty.
  • setMaxSize (double W, double H)

    Sets the maximum width and height together.

    • @p W is a double with the maximum width.
    • @p H is a double with the maximum height.
    • @r this object for chaining
  • minWidth (double Height)

    Computes the minimum width for the given height. This is the layout-negotiation query, distinct from the getMinWidth() setting.

    • @p Height is a double with the available height, or -1 for unbounded.
    • @r A double with the computed minimum width.
  • minHeight (double Width)

    Computes the minimum height for the given width. This is the layout-negotiation query, distinct from the getMinHeight() setting.

    • @p Width is a double with the available width, or -1 for unbounded.
    • @r A double with the computed minimum height.
  • prefWidth (double Height)

    Computes the preferred width for the given height. This is the layout-negotiation query, distinct from the getPrefWidth() setting.

    • @p Height is a double with the available height, or -1 for unbounded.
    • @r A double with the computed preferred width.
  • prefHeight (double Width)

    Computes the preferred height for the given width. This is the layout-negotiation query, distinct from the getPrefHeight() setting.

    • @p Width is a double with the available width, or -1 for unbounded.
    • @r A double with the computed preferred height.
  • maxWidth (double Height)

    Computes the maximum width for the given height. This is the layout-negotiation query, distinct from the getMaxWidth() setting.

    • @p Height is a double with the available height, or -1 for unbounded.
    • @r A double with the computed maximum width.
  • maxHeight (double Width)

    Computes the maximum height for the given width. This is the layout-negotiation query, distinct from the getMaxHeight() setting.

    • @p Width is a double with the available width, or -1 for unbounded.
    • @r A double with the computed maximum height.