Drag[en]gine Script Module DragonScript  1.23
Dragengine.Gui.RangeTextModel Class Reference

TextModel synchronized against a RangeModel. More...

Inheritance diagram for Dragengine.Gui.RangeTextModel:
Dragengine.Gui.DefaultTextModel Dragengine.Gui.RangeModelListener Dragengine.Gui.TextModel

Public Member Functions

RangeModel getRangeModel ()
 Range model or null. More...
 
RangeTextModel new (RangeModel rangeModel)
 Create text model linked to range model. More...
 
void rangeChanged (RangeModel rangeModel)
 Minimum, maximum or page size changed. More...
 
void setRangeModel (RangeModel rangeModel)
 Set range model or null. More...
 
void setText (String text)
 Set text. More...
 
void valueChanged (RangeModel rangeModel)
 Value changed. More...
 
- Public Member Functions inherited from Dragengine.Gui.DefaultTextModel
void addListener (TextModelListener listener)
 Add listener. More...
 
String getText ()
 Text. More...
 
DefaultTextModel new ()
 Create text model with empty string. More...
 
DefaultTextModel new (String text)
 Create text model with initial text. More...
 
void removeListener (TextModelListener listener)
 Remove listener. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Dragengine.Gui.DefaultTextModel
void notifyTextChanged ()
 Notify all that the text changed. More...
 

Detailed Description

TextModel synchronized against a RangeModel.

Synchronizes text to a RangeModel. If an invalid text is entered the minimum range value is used. If the range model changes the text model is updated and vice-versa. This model is used by TextField to synchronize against a SpinButton. The range model is the master model controlling the text model.

Member Function Documentation

◆ getRangeModel()

RangeModel Dragengine.Gui.RangeTextModel.getRangeModel ( )

Range model or null.

◆ new()

RangeTextModel Dragengine.Gui.RangeTextModel.new ( RangeModel  rangeModel)

Create text model linked to range model.

◆ rangeChanged()

void Dragengine.Gui.RangeTextModel.rangeChanged ( RangeModel  rangeModel)

Minimum, maximum or page size changed.

Implements Dragengine.Gui.RangeModelListener.

◆ setRangeModel()

void Dragengine.Gui.RangeTextModel.setRangeModel ( RangeModel  rangeModel)

Set range model or null.

◆ setText()

void Dragengine.Gui.RangeTextModel.setText ( String  text)

Set text.

Reimplemented from Dragengine.Gui.DefaultTextModel.

◆ valueChanged()

void Dragengine.Gui.RangeTextModel.valueChanged ( RangeModel  rangeModel)

Value changed.

Implements Dragengine.Gui.RangeModelListener.


The documentation for this class was generated from the following file: