Drag[en]gine Script Module DragonScript Script API  1.0
DefaultSelectionModel Class Reference

Default implementation of SelectionModel. More...

Inheritance diagram for DefaultSelectionModel:
SelectionModel

Public Member Functions

void addNotifier (SelectionModelNotifier notifier)
 Add notifier. More...
 
int getSelection ()
 Selection or -1 if nothing can be selected. More...
 
bool hasSelection ()
 Something is selected. More...
 
DefaultSelectionModel new ()
 Create default selection model. More...
 
DefaultSelectionModel new (int selection)
 Create default selection model. *. More...
 
void removeNotifier (SelectionModelNotifier notifier)
 Remove notifier. More...
 
void setSelection (int selection)
 Set selection or -1 if nothing can be selected. More...
 

Detailed Description

Default implementation of SelectionModel.

Author
Roland Pl├╝ss
Version
1.0
Date
2015

Member Function Documentation

§ addNotifier()

void addNotifier ( SelectionModelNotifier  notifier)

Add notifier.

Implements SelectionModel.

§ getSelection()

int getSelection ( )

Selection or -1 if nothing can be selected.

Implements SelectionModel.

§ hasSelection()

bool hasSelection ( )

Something is selected.

getSelection() returns not -1.

Implements SelectionModel.

§ new() [1/2]

Create default selection model.

§ new() [2/2]

DefaultSelectionModel new ( int  selection)

Create default selection model. *.

Parameters
selectionSelection

§ removeNotifier()

void removeNotifier ( SelectionModelNotifier  notifier)

Remove notifier.

Implements SelectionModel.

§ setSelection()

void setSelection ( int  selection)

Set selection or -1 if nothing can be selected.

Implements SelectionModel.


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