গবেষণা সমীক্ষা: ব্লকলি
স্টার্ট সার্ভে নিয়ে আপনার অভিজ্ঞতা সম্পর্কে আমাদের বলুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ব্লকলি > ফিল্ড > অ্যাপ্লাই কালার
Field.applyColor() পদ্ধতি
ব্লকের রঙ/স্টাইলের সাথে মেলে ফিল্ড আপডেট করে।
যদি ক্ষেত্রের রঙ ব্লকের রঙের উপর নির্ভর করে তবে অ-বিমূর্ত উপ-শ্রেণীগুলি এটি বাস্তবায়ন করতে ইচ্ছুক হতে পারে। এটি স্বয়ংক্রিয়ভাবে প্রাসঙ্গিক সময়ে কল করা হবে, যেমন যখন প্যারেন্ট ব্লক বা রেন্ডারার পরিবর্তন হয়।
আরও তথ্যের জন্য ফিল্ড ডকুমেন্টেশন দেখুন, বা উদাহরণের জন্য FieldDropdown দেখুন।
স্বাক্ষর:
applyColour(): void;
রিটার্ন:
অকার্যকর
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["The `applyColour()` method updates a field's color to match its parent block."],["Subclasses of `Field` can implement this method to customize how their color is affected by the block's color."],["It's automatically called when the block or renderer's color changes, ensuring the field's color remains consistent."],["Refer to the field documentation or the `FieldDropdown` class for implementation examples."]]],["The `Field.applyColour()` method updates a field to match the color or style of its parent block. Subclasses can implement this method if the field's appearance depends on the block's color. This method is automatically called when the parent block or renderer changes. It takes no arguments and returns nothing (`void`). Detailed information can be found in the field documentation, with `FieldDropdown` as a practical example.\n"]]