Java com.badlogic.gdx.scenes.scene2d.ui SelectBox fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.scenes.scene2d.ui SelectBox fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.scenes.scene2d.ui SelectBox.

The text is from its open source code.

Subclass

com.badlogic.gdx.scenes.scene2d.ui.SelectBox has subclasses.
Click this link to see all its subclasses.

Constructor

Method

voidclearItems()
ArraygetItems()
Retrieve the backing Array that makes up the chocies available in the SelectBox
ListgetList()
Returns the list shown when the select box is open.
TgetSelected()
Returns the first selected item, or null.
intgetSelectedIndex()
voidsetItems(T... newItems)
Set the backing Array that makes up the choices available in the SelectBox
voidsetItems(Array newItems)
Set the backing Array that makes up the choices available in the SelectBox
voidsetSelected(T item)
Sets the selection to only the passed item, if it is a possible choice, else selects the first item.
voidsetSelectedIndex(int index)
Sets the selection to only the selected index.