Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > Marker > setCurNode
Metoda Marker.setCurNode()
Ustaw lokalizację znacznika i wywołaj metodę aktualizacji.
Podpis:
setCurNode(newNode: IFocusableNode | null): void;
Parametry
| Parametr |
Typ |
Opis |
| newNode |
IFocusableNode | null |
Nowa lokalizacja znacznika lub wartość null, aby go usunąć. |
Zwroty:
void
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-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[],["The `setCurNode` method of the `Marker` class updates the marker's location. It accepts an `ASTNode` as `newNode`, which represents the marker's new position. The method also triggers an update of the marker after the location change. If `isStack` is true, the `newNode` must be at the top of an output or previous connection within a stack. This method does not return any value.\n"]]