Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: DoublePropertyView

[17:7] extends: TextField

Wraps FXGL's DoublePropertyView, a JavaFX TextField subclass bidirectionally bound to an ObservableDoubleValue. Edits in the field update the property; updates to the property refresh the field. Read-only properties disable the field automatically. Pass a JavaFX DoubleProperty (typically from a PropertyMap's doubleProperty(name)) at construction.

Methods

  • DoublePropertyView (object Prop)

    Creates a new DoublePropertyView bound to the given property.

    • @p Prop is an AussomJavaObject around an ObservableDoubleValue (for example fxgl.PropertyMap.doubleProperty result).
  • getText ()

    Returns the current displayed text (the property value as a string).

    • @r A string.
  • setText (string Text)

    Sets the displayed text. The bound property updates as well.

    • @p Text is the new text.
    • @r this object