CPListBoxModel
org.cosplay.CPListBoxModel
trait CPListBoxModel
A model for listbox sprite.
Attributes
- Source
- CPListBoxSprite.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Abstract methods
Gets the model element with given index or None
if index is invalid or model is empty..
Gets the model element with given index or None
if index is invalid or model is empty..
Attributes
- Source
- CPListBoxSprite.scala
Gets the index of the currently selected item. Model must always have an element selected unless it is empty.
Gets the index of the currently selected item. Model must always have an element selected unless it is empty.
Attributes
- Source
- CPListBoxSprite.scala
Gets the total number of elements in the model.
Concrete methods
A shortcut getter for the value of the selected element or None
if the model is empty.
A shortcut getter for the value of the selected element or None
if the model is empty.
Attributes
- Source
- CPListBoxSprite.scala
In this article