Drag[en]gine Script Module DragonScript
1.23
|
Option group model. More...
Public Member Functions | |
int | getIndexElement () |
List model element index or -1 if lost. More... | |
ListModel | getListModel () |
List model. More... | |
OptionGroupModel | new (ListModel listModel, int indexElement) |
Create option group model linked to ListModel element at index. More... | |
void | setIndexElement (int indexElement) |
Set list model element index or -1 if lost. More... | |
void | setToggled (bool toggled) |
Set toggled state. More... | |
Public Member Functions inherited from Dragengine.Gui.DefaultToggleModel | |
void | addListener (ToggleModelListener listener) |
Add listener. More... | |
bool | getToggled () |
Get toggled state. More... | |
DefaultToggleModel | new () |
Create toggle model with false toggled state. More... | |
DefaultToggleModel | new (bool toggled) |
Create toggle model. More... | |
void | removeListener (ToggleModelListener listener) |
Remove listener. More... | |
Static Public Member Functions | |
static OptionGroupModel | newFor (ListModel listModel, Object element) |
Create option group model linked to ListModel element. More... | |
Option group model.
Links a ToggleModel to a ListModel entry. If the list model entry is selected the toggle model is toggled otherwise untoggled. If the toggle model is toggled while untoggled the respective element in the list model is selected.
Example of how to use this model:
int Dragengine.Gui.OptionGroupModel.getIndexElement | ( | ) |
List model element index or -1 if lost.
ListModel Dragengine.Gui.OptionGroupModel.getListModel | ( | ) |
List model.
OptionGroupModel Dragengine.Gui.OptionGroupModel.new | ( | ListModel | listModel, |
int | indexElement | ||
) |
Create option group model linked to ListModel element at index.
|
static |
Create option group model linked to ListModel element.
void Dragengine.Gui.OptionGroupModel.setIndexElement | ( | int | indexElement | ) |
Set list model element index or -1 if lost.
void Dragengine.Gui.OptionGroupModel.setToggled | ( | bool | toggled | ) |
Set toggled state.
Reimplemented from Dragengine.Gui.DefaultToggleModel.