ui.Label.setValue
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Ustawia wartość etykiety.
Zwraca tę etykietę.
Wykorzystanie | Zwroty |
---|
Label.setValue(value) | ui.Label |
Argument | Typ | Szczegóły |
---|
to: ui.label | ui.Label | Instancja ui.Label. |
value | Ciąg znaków | Wartość etykiety. |
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\u003eSets the value of the label using \u003ccode\u003eLabel.setValue(value)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eReturns the \u003ccode\u003eui.Label\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eAccepts a string \u003ccode\u003evalue\u003c/code\u003e to display on the label.\u003c/p\u003e\n"]]],[],null,["# ui.Label.setValue\n\n\u003cbr /\u003e\n\nSets the value of the label.\n\n\u003cbr /\u003e\n\nReturns this label.\n\n| Usage | Returns |\n|-------------------------|----------|\n| Label.setValue`(value)` | ui.Label |\n\n| Argument | Type | Details |\n|------------------|----------|-------------------------|\n| this: `ui.label` | ui.Label | The ui.Label instance. |\n| `value` | String | The value of the label. |"]]