Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: IntPropertyView

[14:7] extends: TextField

Wraps FXGL's IntPropertyView, a JavaFX TextField subclass bidirectionally bound to an ObservableIntegerValue. Edits in the field update the property; updates to the property refresh the field. Read-only properties disable the field automatically.

Methods

  • IntPropertyView (object Prop)

    Creates a new IntPropertyView bound to the given property.

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

    Returns the current displayed text.

    • @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