Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: BooleanPropertyView

[14:7] extends: CheckBox

Wraps FXGL's BooleanPropertyView, a JavaFX CheckBox subclass bidirectionally bound to an ObservableBooleanValue. Toggling the checkbox updates the property; updates to the property refresh the checkbox. Read-only properties disable the checkbox.

Methods

  • BooleanPropertyView (object Prop)

    Creates a new BooleanPropertyView bound to the given property.

    • @p Prop is an AussomJavaObject around an ObservableBooleanValue.
  • isSelected ()

    Returns whether the checkbox is selected.

    • @r A bool.
  • setSelected (bool Selected)

    Sets the selected state. The bound property updates as well.

    • @p Selected is the new state.
    • @r this object