Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > Pole > sourceBlock_
Właściwość Field.sourceBlock_
Zablokuj to pole, z którym jest dołączone. Adres zaczyna się od wartości null, a następnie jest ustawiany jako init.
Podpis:
protected sourceBlock_: Block | null;
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.
[[["Ł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: 2025-07-25 UTC."],[[["`sourceBlock_` is a property of the `Field` class in Blockly that stores a reference to the block the field is attached to."],["Initially `null`, it's assigned during the field's initialization (`init`) and holds the parent block instance."],["This property provides a way for the field to interact with its associated block."]]],["The `sourceBlock_` property, found within the `Field` class, represents the block to which a field is connected. Initially, it is set to `null`. During the initialization process, this property is then assigned to the corresponding `Block` instance. It is a protected property, meaning it can be accessed within the class and subclasses, and its type is either a `Block` or `null`.\n"]]