ui.Panel.setLayout
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ตั้งค่าเลย์เอาต์ของแผง
แสดงแผงนี้
การใช้งาน | การคืนสินค้า |
---|
Panel.setLayout(layout) | ui.Panel |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ ui.panel | ui.Panel | อินสแตนซ์ ui.Panel |
layout | ui.Panel.Layout | เลย์เอาต์ใหม่ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 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. |"]]