Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > Zestaw narzędzi > selectItem_
Wybiera dany element, oznacza go jako wybrany i aktualizuje stan aria.
Podpis:
protected selectItem_(oldItem: ISelectableToolboxItem | null, newItem: ISelectableToolboxItem): void;
Parametry
Zwroty:
nieważne
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[],["The `selectItem_` method within the Toolbox class is used to manage the selection of items within a toolbox. It takes two parameters: `oldItem`, representing the previously selected item (or null), and `newItem`, the item now being selected. The method's actions involve marking `newItem` as selected and updating its associated ARIA (Accessible Rich Internet Applications) state. This method returns no values (void).\n"]]