Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: FXGLChoiceBox

[13:7] extends: ChoiceBox

Wraps FXGL's FXGLChoiceBox, a JavaFX ChoiceBox subclass with FXGL theme styling. The underlying ChoiceBox is generic; items are added as raw values.

Methods

  • FXGLChoiceBox (Items = null)

    Creates a new empty FXGLChoiceBox.

  • addItem (Item)

    Adds an item to the choice list.

    • @p Item is the value to add.
    • @r this object
  • getValue ()

    Returns the currently selected value.

    • @r The selected value.
  • setValue (Value)

    Sets the selected value (must already be in the items list).

    • @p Value is the new selection.
    • @r this object