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

Default implementation of text model. More...

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

Public Member Functions

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...
 
void setText (String text)
 Set text. More...
 

Protected Member Functions

void notifyTextChanged ()
 Notify all that the text changed. More...
 

Detailed Description

Default implementation of text model.

Member Function Documentation

◆ addListener()

void Dragengine.Gui.DefaultTextModel.addListener ( TextModelListener  listener)

Add listener.

Implements Dragengine.Gui.TextModel.

◆ getText()

String Dragengine.Gui.DefaultTextModel.getText ( )

Text.

Implements Dragengine.Gui.TextModel.

◆ new() [1/2]

DefaultTextModel Dragengine.Gui.DefaultTextModel.new ( )

Create text model with empty string.

◆ new() [2/2]

DefaultTextModel Dragengine.Gui.DefaultTextModel.new ( String  text)

Create text model with initial text.

◆ notifyTextChanged()

void Dragengine.Gui.DefaultTextModel.notifyTextChanged ( )
protected

Notify all that the text changed.

◆ removeListener()

void Dragengine.Gui.DefaultTextModel.removeListener ( TextModelListener  listener)

Remove listener.

Implements Dragengine.Gui.TextModel.

◆ setText()

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

Set text.

Implements Dragengine.Gui.TextModel.

Reimplemented in Dragengine.Gui.RangeTextModel.


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