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.
  • Field Summary

    Fields inherited from class com.github.tommyettinger.textra.TextraListBox

    items, overIndex, pressedIndex, style, typeToSelect
  • Constructor Summary

    Constructors
    Constructor
    Description
    TypingListBox(com.badlogic.gdx.scenes.scene2d.ui.Skin skin)
     
    TypingListBox(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, String styleName)
     
     
  • Method Summary

    Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.Widget

    getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, invalidate, invalidateHierarchy, needsLayout, pack, setFillParent, setLayoutEnabled, sizeChanged, validate

    Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor

    addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clear, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebug, drawDebugBounds, fire, firstAscendant, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getX, getY, getY, getZIndex, hasActions, hasKeyboardFocus, hasParent, hasScrollFocus, hit, isAscendantOf, isDescendantOf, isTouchable, isTouchFocusListener, isTouchFocusTarget, isVisible, localToActorCoordinates, localToAscendantCoordinates, localToParentCoordinates, localToScreenCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, positionChanged, remove, removeAction, removeCaptureListener, removeListener, rotateBy, rotationChanged, scaleBy, scaleBy, scaleChanged, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setParent, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setStage, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.badlogic.gdx.scenes.scene2d.utils.Cullable

    setCullingArea
  • 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)