Drag[en]gine Script Module DragonScript
1.23
|
List model for ListBoxEditBindings. More...
Public Member Functions | |
void | forEachEntry (Block ablock) |
Visit entries with block with parameter EditBindingsListModelEntry. More... | |
BindingManager | getBindingManager () |
Binding manager. More... | |
EditBindingsListModelEntry | getEntryAt (int index) |
Entry at index. More... | |
EditBindingsListModelEntry | getEntryWith (Command command) |
Entry with command or null if not found. More... | |
EditBindingsListModelEntry | getEntryWith (String commandName) |
Entry with command or null if not found. More... | |
EditBindingsListModel | new (BindingManager bindingManager) |
Create empty list model. More... | |
void | notifyContentChanged (int fromIndex, int toIndex) |
Notify all that the content of the model in the given range changed. More... | |
void | notifyElementsAdded (int fromIndex, int toIndex) |
Notify all elements have been added. More... | |
void | notifyElementsRemoved (int fromIndex, int toIndex) |
Notify all elements have been removed. More... | |
Public Member Functions inherited from Dragengine.Gui.DefaultListModel | |
void | add (Object element) |
Add element. More... | |
void | addAll (Array content) |
Add elements from array. More... | |
void | addListener (ListModelListener listener) |
Add listener. More... | |
Array | collect (Block ablock) |
Return array with content for which block returns true. More... | |
Object | find (Block ablock) |
Find first object for which block returns true. More... | |
Object | getAt (int index) |
Element at index. More... | |
bool | getAutoSelect () |
Automatically select items. More... | |
Array | getContent () |
Get content as array. 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... | |
void | insert (int index, Object element) |
Insert element at index. More... | |
void | insertAll (int index, Array content) |
Insert elements from array at index. More... | |
void | move (Object object, int index) |
Move element to new location. More... | |
void | moveIndex (int indexFrom, int indexTo) |
Move element to new location. More... | |
DefaultListModel | new () |
Create default list model. More... | |
DefaultListModel | new (Array content) |
Create default list model with initial content. More... | |
void | remove (Object element) |
Remove element. More... | |
void | removeArray (Array content) |
Remove elements from array. More... | |
void | removeFrom (int index) |
Remove element. More... | |
void | removeListener (ListModelListener listener) |
Remove listener. More... | |
void | removeRange (int firstIndex, int lastIndex) |
Remove elements from range. More... | |
void | setAll (Array elements) |
Replaces all elements. More... | |
void | setAt (int index, Object element) |
Set element at index. More... | |
void | setAutoSelect (bool autoSelect) |
Set to automatically select items. More... | |
void | setContent (Array content) |
Set content from array. More... | |
void | setRange (int firstIndex, int lastIndex, Array elements) |
Replaces elements in range. More... | |
void | setSelected (int index) |
Set index of selected element or -1 if none is no selected element. More... | |
void | setSelectedElement (Object element) |
Set selected element. More... | |
void | sort () |
Sort elements using element compare() method. More... | |
Public Member Functions inherited from Dragengine.Gui.ListModel | |
int | indexOf (Object element) |
Index of element or -1 if absent. More... | |
Protected Member Functions | |
void | updateBindings (int fromIndex, int toIndex) |
Update bindings in range. More... | |
List model for ListBoxEditBindings.
Contains instances of EditBindingsListModelEntry.
void Dragengine.Gui.EditBindingsListModel.forEachEntry | ( | Block | ablock | ) |
Visit entries with block with parameter EditBindingsListModelEntry.
BindingManager Dragengine.Gui.EditBindingsListModel.getBindingManager | ( | ) |
Binding manager.
EditBindingsListModelEntry Dragengine.Gui.EditBindingsListModel.getEntryAt | ( | int | index | ) |
Entry at index.
EditBindingsListModelEntry Dragengine.Gui.EditBindingsListModel.getEntryWith | ( | Command | command | ) |
Entry with command or null if not found.
EditBindingsListModelEntry Dragengine.Gui.EditBindingsListModel.getEntryWith | ( | String | commandName | ) |
Entry with command or null if not found.
EditBindingsListModel Dragengine.Gui.EditBindingsListModel.new | ( | BindingManager | bindingManager | ) |
Create empty list model.
Add commands to edit to the list. Binding manager is used to find the bound bindings for each command in the list.
bindingManager | Binding manager to use. |
void Dragengine.Gui.EditBindingsListModel.notifyContentChanged | ( | int | fromIndex, |
int | toIndex | ||
) |
Notify all that the content of the model in the given range changed.
Reimplemented from Dragengine.Gui.DefaultListModel.
void Dragengine.Gui.EditBindingsListModel.notifyElementsAdded | ( | int | fromIndex, |
int | toIndex | ||
) |
Notify all elements have been added.
void Dragengine.Gui.EditBindingsListModel.notifyElementsRemoved | ( | int | fromIndex, |
int | toIndex | ||
) |
Notify all elements have been removed.
|
protected |
Update bindings in range.