סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
blockly > סביבת עבודה > getRootWorkspace
שיטת Workspace.getRootWorkspace()
הפונקציה מחזירה את סביבת העבודה הבסיסית לסביבת העבודה הזו אם לסביבת העבודה יש תבניות הורה.
לדוגמה לסביבות עבודה עם רפליקות ולבועות קטנות של סביבת עבודה יש סביבת עבודה הורה.
Signature:
getRootWorkspace(): Workspace | null;
החזרות:
סביבת עבודה | null
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-22 (שעון 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"]],["עדכון אחרון: 2024-08-22 (שעון UTC)."],[[["The `getRootWorkspace()` method retrieves the top-level workspace in a hierarchy of nested workspaces."],["Workspaces embedded within structures like flyouts or bubbles have parent workspaces, and this method helps access the ultimate parent."],["If the current workspace has no parent, meaning it's already the root, the method returns the current workspace itself."],["The return value is either a `Workspace` object representing the root or `null` if no root is found (though this is unlikely in typical scenarios)."]]],[]]