Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > FieldImage > doValueUpdate_
Metoda FieldImage.doValueUpdate_()
Zaktualizuj wartość w tym polu obrazu i zaktualizuj wyświetlany obraz.
Podpis:
protected doValueUpdate_(newValue: string): void;
Parametry
Parametr |
Typ |
Opis |
newValue |
ciąg znaków |
Wartość do zapisania. Domyślny walidator gwarantuje, że jest to ciąg znaków. |
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: 2024-09-12 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2024-09-12 UTC."],[[["The `doValueUpdate_` method updates the value of an image field and refreshes the displayed image accordingly."],["It takes a single argument, `newValue`, which represents the new value for the image field and should be a string."],["This method is used internally by Blockly and is marked as protected."]]],["The `doValueUpdate_` method, part of the `FieldImage` class, updates an image field's value and the displayed image. It accepts a string `newValue` as a parameter, which represents the new value to be saved. The method's default validator ensures the `newValue` is a string. The method's return type is void, meaning it does not return a value after updating.\n"]]