Package com._1c.g5.aef2.standard.events
Class SelectionEvent
java.lang.Object
com._1c.g5.aef2.events.ViewModelEvent
com._1c.g5.aef2.standard.events.SelectionEvent
- All Implemented Interfaces:
IEvent
- Direct Known Subclasses:
TableSelectionEvent,TreeSelectionEvent
Selection event.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSelectionEvent(SelectionEvent.SelectionType type, IViewModel... viewModels) Instantiates a new event with the given type.SelectionEvent(IViewModel... viewModels) Instantiates a new event. -
Method Summary
Modifier and TypeMethodDescriptionReturns the first view mpdel in this selection, ornullif the selection is empty.Returns the event selected view models.getType()Methods inherited from class com._1c.g5.aef2.events.ViewModelEvent
getViewModel
-
Constructor Details
-
SelectionEvent
Instantiates a new event with the given type.- Parameters:
type- the type of the selection event.viewModels- the view models, cannot benull
-
SelectionEvent
Instantiates a new event.- Parameters:
viewModels- the view models, cannot benull
-
-
Method Details
-
getType
- Returns:
- the type of the event.
-
getSelectedViewModels
Returns the event selected view models.- Returns:
- the
IViewModels
-
getFirstSelectedViewModel
Returns the first view mpdel in this selection, ornullif the selection is empty.- Returns:
- an element, or
nullif none
-