blockly > DeleteArea > updateWouldDelete_
Método DeleteArea.updateRequestedDelete_()
Atualiza o estado interno wouldDelete_.
Signature:
protected updateWouldDelete_(wouldDelete: boolean): void;
Parâmetros
Parâmetro |
Tipo |
Descrição |
wouldDelete |
booleano |
O novo valor para o estado shouldDelete. |
Retorna:
void
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2024-08-22 UTC.
[null,null,["Última atualização 2024-08-22 UTC."],[[["The `updateWouldDelete_` method is a protected method within the `DeleteArea` class used to update the internal `wouldDelete_` state."],["It takes a boolean parameter `wouldDelete` which represents the new value for the internal state and returns void."],["This method is called to signal whether or not a potential block deletion is imminent based on the current drag operation."]]],["The `updateWouldDelete_` method of the `DeleteArea` class updates the internal `wouldDelete_` state. It accepts a boolean parameter, `wouldDelete`, which represents the new value for this state. This method has no return value (void). The method is protected, meaning it is accessible within the class and its subclasses. The primary action is updating the internal state based on the provided boolean input.\n"]]