Drag[en]gine Script Module DragonScript
1.23
|
Model for content of list oriented widgets. More...
Public Member Functions | |
void | addListener (ListModelListener listener) |
Add modifier. More... | |
Object | getAt (int index) |
Element at index. More... | |
int | getCount () |
Number of elements. More... | |
int | getSelected () |
Index of the selected element or -1 if there is no selected element. More... | |
bool | has (Object element) |
Element is present. More... | |
int | indexOf (Object element) |
Index of element or -1 if absent. More... | |
void | notifyContentChanged (int fromIndex, int toIndex) |
Notify all that the content of the model in the given range changed. More... | |
void | removeListener (ListModelListener listener) |
Remove listener. More... | |
void | setSelected (int index) |
Set index of selected element or -1 if none is no selected element. More... | |
Model for content of list oriented widgets.
void Dragengine.Gui.ListModel.addListener | ( | ListModelListener | listener | ) |
Add modifier.
Implemented in Dragengine.Gui.ToggleButtonGroup, Dragengine.Gui.SharedListModel, and Dragengine.Gui.DefaultListModel.
Object Dragengine.Gui.ListModel.getAt | ( | int | index | ) |
Element at index.
EOutOfBounds | index is less than 0 or larger than or equal to getCount(). |
Implemented in Dragengine.Gui.ToggleButtonGroup, Dragengine.Gui.SharedListModel, and Dragengine.Gui.DefaultListModel.
int Dragengine.Gui.ListModel.getCount | ( | ) |
Number of elements.
Implemented in Dragengine.Gui.ToggleButtonGroup, Dragengine.Gui.SharedListModel, and Dragengine.Gui.DefaultListModel.
int Dragengine.Gui.ListModel.getSelected | ( | ) |
Index of the selected element or -1 if there is no selected element.
Implemented in Dragengine.Gui.ToggleButtonGroup, Dragengine.Gui.SharedListModel, and Dragengine.Gui.DefaultListModel.
bool Dragengine.Gui.ListModel.has | ( | Object | element | ) |
Element is present.
Implemented in Dragengine.Gui.ToggleButtonGroup, Dragengine.Gui.SharedListModel, and Dragengine.Gui.DefaultListModel.
int Dragengine.Gui.ListModel.indexOf | ( | Object | element | ) |
Index of element or -1 if absent.
Implemented in Dragengine.Gui.ToggleButtonGroup, and Dragengine.Gui.SharedListModel.
void Dragengine.Gui.ListModel.notifyContentChanged | ( | int | fromIndex, |
int | toIndex | ||
) |
Notify all that the content of the model in the given range changed.
fromIndex | Index of first element that changed |
toIndex | Index of last element that changed |
Implemented in Dragengine.Gui.SharedListModel, Dragengine.Gui.DefaultListModel, and Dragengine.Gui.EditBindingsListModel.
void Dragengine.Gui.ListModel.removeListener | ( | ListModelListener | listener | ) |
Remove listener.
Implemented in Dragengine.Gui.ToggleButtonGroup, Dragengine.Gui.SharedListModel, and Dragengine.Gui.DefaultListModel.
void Dragengine.Gui.ListModel.setSelected | ( | int | index | ) |
Set index of selected element or -1 if none is no selected element.
Implemented in Dragengine.Gui.ToggleButtonGroup, Dragengine.Gui.SharedListModel, and Dragengine.Gui.DefaultListModel.