ui.Checkbox.getValue
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zwraca informację o tym, czy pole wyboru jest zaznaczone. Wartość null oznacza, że pole wyboru jest w stanie nieokreślonym.
Wykorzystanie | Zwroty |
---|
Checkbox.getValue() | Wartość logiczna |
Argument | Typ | Szczegóły |
---|
to: ui.checkbox | ui.Checkbox | Instancja ui.Checkbox. |
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\u003e\u003ccode\u003eCheckbox.getValue()\u003c/code\u003e returns a Boolean value indicating whether a checkbox is checked or not.\u003c/p\u003e\n"],["\u003cp\u003eA return value of \u003ccode\u003enull\u003c/code\u003e signifies that the checkbox is in an indeterminate state.\u003c/p\u003e\n"],["\u003cp\u003eThe method is used with a \u003ccode\u003eui.Checkbox\u003c/code\u003e instance to retrieve its current checked status.\u003c/p\u003e\n"]]],[],null,["# ui.Checkbox.getValue\n\n\u003cbr /\u003e\n\nReturns whether the checkbox is checked. A null value indicates the checkbox is in an indeterminate state.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------|---------|\n| Checkbox.getValue`()` | Boolean |\n\n| Argument | Type | Details |\n|---------------------|-------------|---------------------------|\n| this: `ui.checkbox` | ui.Checkbox | The ui.Checkbox instance. |"]]