Объявление : Все некоммерческие проекты, зарегистрированные для использования Earth Engine до
15 апреля 2025 года, должны
подтвердить некоммерческое право на сохранение доступа к Earth Engine.
ui.data.ActiveList.set
Оптимизируйте свои подборки
Сохраняйте и классифицируйте контент в соответствии со своими настройками.
Добавляет элемент по указанному индексу. Если индекс превышает индекс последнего элемента списка, элемент будет добавлен в конец списка.
Возвращает этот ui.data.ActiveList.
Использование | Возврат | ActiveList. set (index, el) | ui.data.ActiveList |
Аргумент | Тип | Подробности | это: ui.data.activelist | ui.data.ActiveList | Экземпляр ui.data.ActiveList. |
index | Число | Индекс для перезаписи. |
el | Объект | Элемент для установки. |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-07-24 UTC.
[null,null,["Последнее обновление: 2025-07-24 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eset\u003c/code\u003e method allows modification of an element at a specific index within a \u003ccode\u003eui.data.ActiveList\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIf the given index is beyond the current list's bounds, the provided element is appended to the end.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eset\u003c/code\u003e returns the original \u003ccode\u003eui.data.ActiveList\u003c/code\u003e instance, enabling method chaining.\u003c/p\u003e\n"]]],[],null,["# ui.data.ActiveList.set\n\n\u003cbr /\u003e\n\nSets an element at the specified index. If the index exceeds that of the list's last element, the element will be added to the end of the list.\n\n\u003cbr /\u003e\n\nReturns this ui.data.ActiveList.\n\n| Usage | Returns |\n|-----------------------------|--------------------|\n| ActiveList.set`(index, el)` | ui.data.ActiveList |\n\n| Argument | Type | Details |\n|----------------------------|--------------------|----------------------------------|\n| this: `ui.data.activelist` | ui.data.ActiveList | The ui.data.ActiveList instance. |\n| `index` | Number | The index to overwrite. |\n| `el` | Object | The element to set. |"]]