Drag[en]gine Script Module DragonScript Script API  1.0
ListModelNotifier Interface Reference

List model listener. More...

Inheritance diagram for ListModelNotifier:
DefaultListModelNotifier ListBox

Public Member Functions

void contentChanged (ListModel listModel, int fromIndex, int toIndex)
 Content of the model changed. More...
 
void elementsAdded (ListModel listModel, int fromIndex, int toIndex)
 Elements have been added. More...
 
void elementsRemoved (ListModel listModel, int fromIndex, int toIndex)
 Elements have been removed. More...
 

Detailed Description

List model listener.

Member Function Documentation

§ contentChanged()

void contentChanged ( ListModel  listModel,
int  fromIndex,
int  toIndex 
)

Content of the model changed.

Parameters
listModelListModel sending the notification
fromIndexIndex of first element that changed
toIndexIndex of last element that changed

Implemented in ListBox, and DefaultListModelNotifier.

§ elementsAdded()

void elementsAdded ( ListModel  listModel,
int  fromIndex,
int  toIndex 
)

Elements have been added.

Parameters
listModelListModel sending the notification
fromIndexIndex of first added element.
toIndexIndex of last added element.

Implemented in ListBox, and DefaultListModelNotifier.

§ elementsRemoved()

void elementsRemoved ( ListModel  listModel,
int  fromIndex,
int  toIndex 
)

Elements have been removed.

Parameters
listModelListModel sending the notification
fromIndexIndex of first removed element.
toIndexIndex of last removed element.

Implemented in ListBox, and DefaultListModelNotifier.


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