Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: StringPropertyView

[14:7] extends: TextField

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

Methods

  • StringPropertyView (object Prop)

    Creates a new StringPropertyView bound to the given property.

    • @p Prop is an AussomJavaObject around an ObservableStringValue.
  • 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