Implementation:SeleniumHQ Selenium Closure UI SelectionModel
| Knowledge Sources | |
|---|---|
| Domains | JavaScript_Atoms, Vendored_Library |
| Last Updated | 2026-02-12 00:00 GMT |
Overview
Vendored Google Closure Library UI module providing a single-selection model implementation, used by Selenium JavaScript atoms.
Description
goog.ui.SelectionModel is a vendored copy of the Google Closure Library module. It extends `goog.events.EventTarget` to provide a single-selection model that manages an array of items and dispatches `goog.events.EventType.SELECT` events when a selection changes. It supports a configurable selection handler function and items that implement the `setSelected(Boolean)` interface. Selenium uses this for its JavaScript atom infrastructure.
Usage
This module is consumed internally by Selenium's JavaScript atoms build system. Not imported directly by end users.
Code Reference
Source Location
- Repository: SeleniumHQ_Selenium
- File: third_party/closure/goog/ui/selectionmodel.js
- Lines: 1-312
Key Exports
goog.provide('goog.ui.SelectionModel');