Drag[en]gine Script Module DragonScript
1.23
|
TextModel synchronized against a RangeModel. More...
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... | |
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.
RangeModel Dragengine.Gui.RangeTextModel.getRangeModel | ( | ) |
Range model or null.
RangeTextModel Dragengine.Gui.RangeTextModel.new | ( | RangeModel | rangeModel | ) |
Create text model linked to range model.
void Dragengine.Gui.RangeTextModel.rangeChanged | ( | RangeModel | rangeModel | ) |
Minimum, maximum or page size changed.
Implements Dragengine.Gui.RangeModelListener.
void Dragengine.Gui.RangeTextModel.setRangeModel | ( | RangeModel | rangeModel | ) |
Set range model or null.
void Dragengine.Gui.RangeTextModel.setText | ( | String | text | ) |
Set text.
Reimplemented from Dragengine.Gui.DefaultTextModel.
void Dragengine.Gui.RangeTextModel.valueChanged | ( | RangeModel | rangeModel | ) |
Value changed.
Implements Dragengine.Gui.RangeModelListener.