تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
blockly > ISelectable
واجهة قابلة للاختيار
واجهة عنصر قابل للاختيار
من المتوقّع بشكل عام أن تستخدِم عمليات التنفيذ وظيفتَي onNodeFocus() وonNodeBlur() للاتّصال بـ setSelected() مع أنفسهم وnull على التوالي، وذلك لضمان تعديل الاختيارات بشكل صحيح وإطلاق حدث تغيير الاختيار.
Signature:
export interface ISelectable extends IFocusableNode
يمتد إلى: IFocusableNode
الخصائص
الطُرق
الطريقة |
الوصف |
select() |
اختَر هذا الخيار. تمييزها بشكل مرئي |
unselect() |
ألغِ اختيار هذا الخيار. أزِل تمييزها بصريًا. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[],["The `ISelectable` interface defines objects that can be selected within a workspace. It mandates the presence of an `id` (string) and a `workspace` property of `Workspace` type. Key actions include `select()`, which visually highlights the object, and `unselect()`, which removes the visual highlight. These methods control the visual state of the selectable object within its designated workspace.\n"],null,[]]