Package com.github.tommyettinger.textra
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
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
.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.tommyettinger.textra.TextraSelectBox
TextraSelectBox.SelectBoxScrollPane
-
Constructor Summary
ConstructorDescriptionTypingSelectBox
(com.badlogic.gdx.scenes.scene2d.ui.Skin skin) TypingSelectBox
(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, String styleName) -
Method Summary
Methods inherited from class com.github.tommyettinger.textra.TextraSelectBox
act, clearItems, draw, drawItem, getBackgroundDrawable, getClickListener, getFontColor, getItems, getList, getMaxListCount, getMaxPrefWidth, getPrefHeight, getPrefWidth, getScrollPane, getSelected, getSelectedIndex, getSelectedPrefWidth, getSelection, getStyle, hideList, hideScrollPane, isDisabled, isOver, layout, newScrollPane, onHide, onShow, setAlignment, setDisabled, setItems, setItems, setItemTexts, setMaxListCount, setScrollingDisabled, setSelected, setSelectedIndex, setSelectedPrefWidth, setStage, setStyle, showList, showScrollPane, toString
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, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront, toString
-
Constructor Details
-
TypingSelectBox
public TypingSelectBox(com.badlogic.gdx.scenes.scene2d.ui.Skin skin) -
TypingSelectBox
-
TypingSelectBox
-
-
Method Details
-
newLabel
- Overrides:
newLabel
in classTextraSelectBox
-