Class TypingListBox<T extends TypingLabel>

java.lang.Object
com.badlogic.gdx.scenes.scene2d.Actor
com.badlogic.gdx.scenes.scene2d.ui.Widget
com.github.tommyettinger.textra.TextraListBox<T>
com.github.tommyettinger.textra.TypingListBox<T>
All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.utils.Cullable, com.badlogic.gdx.scenes.scene2d.utils.Layout

public class TypingListBox<T extends TypingLabel> extends TextraListBox<T> implements com.badlogic.gdx.scenes.scene2d.utils.Cullable
A TypingListBox (based on List) displays TypingLabels and highlights the currently selected item.
A ChangeListener.ChangeEvent is fired when the list selection changes.
The preferred size of the list is determined by the text bounds of the items and the size of the Styles.ListStyle.selection.
The main reason to use this instead of a TextraListBox containing TypingLabels is so that you can use the extra APIs available for TypingLabel, instead of having to cast a TextraLabel to TypingLabel from TextraListBox.
  • Constructor Details

    • TypingListBox

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

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

      public TypingListBox(Styles.ListStyle style)