Class TypingSelectBox

java.lang.Object
com.badlogic.gdx.scenes.scene2d.Actor
com.badlogic.gdx.scenes.scene2d.ui.Widget
com.github.tommyettinger.textra.TextraSelectBox
com.github.tommyettinger.textra.TypingSelectBox
All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.utils.Disableable, com.badlogic.gdx.scenes.scene2d.utils.Layout

public class TypingSelectBox extends TextraSelectBox
A select box (aka a drop-down list) allows a user to choose one of a number of values from a list. When inactive, the selected value is displayed. When activated, it shows the list of values that may be selected.

ChangeListener.ChangeEvent is fired when the select box selection changes.

The preferred size of the select box is determined by the maximum text bounds of the items and the size of the Styles.SelectBoxStyle.background.

  • Constructor Details

    • TypingSelectBox

      public TypingSelectBox(com.badlogic.gdx.scenes.scene2d.ui.Skin skin)
    • TypingSelectBox

      public TypingSelectBox(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, String styleName)
    • TypingSelectBox

      public TypingSelectBox(Styles.SelectBoxStyle style)
  • Method Details