Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
blockly > blockRendering > ConstantProvider > setDynamicProperties_
Metodo blockRendering.ConstantProvider.setDynamicProperties_()
Consente di impostare proprietà dinamiche che dipendono da altri valori o da altre proprietà del tema.
Firma:
protected setDynamicProperties_(theme: Theme): void;
Parametri
Parametro |
Tipo |
Descrizione |
tema |
Tema |
Il tema dell'area di lavoro corrente. |
Restituisce:
nullo
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-25 UTC."],[],["The `setDynamicProperties_()` method within the `blockRendering.ConstantProvider` class updates dynamic properties based on other values or theme settings. It accepts a `Theme` object as a parameter, representing the current workspace theme, and modifies internal properties accordingly. The method does not return any value. This process ensures that the rendering constants adapt to changes in the theme.\n"]]