ui.root.remove
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Usuwa podany widżet z panelu głównego, jeśli w nim występuje.
Zwraca usunięty widżet lub wartość null, jeśli widżet nie był obecny w panelu głównym.
Wykorzystanie | Zwroty |
---|
ui.root.remove(widget) | Obiekt |
Argument | Typ | Szczegóły |
---|
widget | ui.Widget | Widżet do usunięcia. |
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-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003eRemoves the specified widget from the UI's root panel.\u003c/p\u003e\n"],["\u003cp\u003eReturns the removed widget, or null if it wasn't found.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003eui.root.remove(widget)\u003c/code\u003e function where \u003ccode\u003ewidget\u003c/code\u003e is the target ui.Widget.\u003c/p\u003e\n"]]],["The `ui.root.remove(widget)` function removes a specified widget from the root panel. It accepts a single argument, `widget`, of type `ui.Widget`, which represents the widget to be removed. The function returns the removed widget if it was present in the root panel; otherwise, it returns `null`. The return type of this function is Object.\n"],null,["# ui.root.remove\n\n\u003cbr /\u003e\n\nRemoves the given widget from the root panel, if it exists.\n\n\u003cbr /\u003e\n\nReturns the removed widget or null if the widget was not present in the root panel.\n\n| Usage | Returns |\n|--------------------------|---------|\n| `ui.root.remove(widget)` | Object |\n\n| Argument | Type | Details |\n|----------|-----------|-----------------------|\n| `widget` | ui.Widget | The widget to remove. |"]]