Package com.github.tommyettinger.textra
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
A
The preferred size of the list is determined by the text bounds of the items and the size of the
The main reason to use this instead of a
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, typeToSelectFields inherited from class com.badlogic.gdx.scenes.scene2d.Actor
POOLS -
Constructor Summary
ConstructorsConstructorDescriptionTypingListBox(com.badlogic.gdx.scenes.scene2d.ui.Skin skin) TypingListBox(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, String styleName) TypingListBox(Styles.ListStyle style) -
Method Summary
Methods inherited from class com.github.tommyettinger.textra.TextraListBox
act, clearItems, draw, drawBackground, drawSelection, getAlignment, getCullingArea, getCumulativeHeight, getItemAt, getItemIndexAt, getItems, getKeyListener, getOverItem, getPrefHeight, getPrefWidth, getPressedItem, getSelected, getSelectedIndex, getSelection, getStyle, getTypeToSelect, layout, setAlignment, setCullingArea, setItems, setItems, setSelected, setSelectedIndex, setSelection, setStyle, setTypeToSelectMethods inherited from class com.badlogic.gdx.scenes.scene2d.ui.Widget
getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, invalidate, invalidateHierarchy, needsLayout, pack, setFillParent, setLayoutEnabled, sizeChanged, validateMethods 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-
TypingListBox
-