Drag[en]gine Script Module DragonScript Script API  1.0
DefaultTextModel Class Reference
Inheritance diagram for DefaultTextModel:
TextModel

Public Member Functions

void addNotifier (TextModelNotifier notifier)
 
String getText ()
 
DefaultTextModel new ()
 
DefaultTextModel new (String text)
 
void removeNotifier (TextModelNotifier notifier)
 
void setText (String text)
 

Detailed Description

Manages a text string.

Member Function Documentation

◆ addNotifier()

void addNotifier ( TextModelNotifier  notifier)

Adds a text model notifier.

Parameters
notifierNotifier to add

Implements TextModel.

◆ getText()

String getText ( )

Retrieve the text string.

Returns
text string

Implements TextModel.

◆ new() [1/2]

Creates a new DefaultTextModel with the an empty string.

◆ new() [2/2]

DefaultTextModel new ( String  text)

Creates a new DefaultTextModel with the given text string.

Parameters
textText string

◆ removeNotifier()

void removeNotifier ( TextModelNotifier  notifier)

Removes a text model notifier.

Parameters
notifierNotifier to remove

Implements TextModel.

◆ setText()

void setText ( String  text)

Sets the text string.

Parameters
textText string

Implements TextModel.


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