ui.Panel.setLayout
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Legt das Layout des Felds fest.
Gibt diesen Bereich zurück.
Nutzung | Ausgabe |
---|
Panel.setLayout(layout) | ui.Panel |
Argument | Typ | Details |
---|
So gehts: ui.panel | ui.Panel | Die ui.Panel-Instanz. |
layout | ui.Panel.Layout | Das neue Layout. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["\u003cp\u003eThe \u003ccode\u003esetLayout\u003c/code\u003e method is used to define the arrangement of elements within a panel.\u003c/p\u003e\n"],["\u003cp\u003eThis method, when called, returns the \u003ccode\u003eui.Panel\u003c/code\u003e instance itself, allowing for method chaining.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify the new layout using a \u003ccode\u003eui.Panel.Layout\u003c/code\u003e object passed as an argument to the \u003ccode\u003esetLayout\u003c/code\u003e method.\u003c/p\u003e\n"]]],["`Panel.setLayout(layout)` modifies the layout of a `ui.Panel` instance. The method takes a `ui.Panel.Layout` object as an argument, which dictates the new arrangement of the panel's contents. This method returns the modified `ui.Panel` instance itself, allowing for method chaining. The `ui.panel` instance is a required argument.\n"],null,["# ui.Panel.setLayout\n\n\u003cbr /\u003e\n\nSets the panel's layout.\n\n\u003cbr /\u003e\n\nReturns this panel.\n\n| Usage | Returns |\n|---------------------------|----------|\n| Panel.setLayout`(layout)` | ui.Panel |\n\n| Argument | Type | Details |\n|------------------|-----------------|------------------------|\n| this: `ui.panel` | ui.Panel | The ui.Panel instance. |\n| `layout` | ui.Panel.Layout | The new layout. |"]]