blockly > Field > doValueUpdate_
Field.doValueUpdate_() method
Used to update the value of a field. Can be overridden by subclasses to do custom storage of values/updating of external things.
Signature:
protected doValueUpdate_(newValue: T): void;
Parameters
Parameter |
Type |
Description |
newValue |
T |
The value to be saved. |
Returns:
void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["`doValueUpdate_` is a protected method within the `Field` class used for updating a field's value."],["Subclasses can override this method to implement custom value storage or update external elements."],["The method takes a single parameter, `newValue`, representing the value to be saved."],["Calling `doValueUpdate_` does not return any value (void)."]]],[]]