ui.SplitPanel.setPanel
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zwraca żądany panel w panelu podzielonym.
Wykorzystanie | Zwroty |
---|
SplitPanel.setPanel(index, panel) | ui.Panel |
Argument | Typ | Szczegóły |
---|
to: ui.splitpanel | ui.SplitPanel | Instancja ui.SplitPanel. |
index | Liczba | 0 – górny lub lewy panel, 1 – dolny lub prawy panel. |
panel | ui.Panel | Panel, który ma zostać dodany do panelu dzielonego. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eSplitPanel.setPanel()\u003c/code\u003e allows you to specify a UI panel to be displayed within a split panel, replacing the existing panel at the specified index.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eindex\u003c/code\u003e parameter designates the target panel (0 for top/left, 1 for bottom/right) within the split panel layout.\u003c/p\u003e\n"],["\u003cp\u003eThis method is used for dynamic modification of content within a split panel UI element.\u003c/p\u003e\n"]]],[],null,["# ui.SplitPanel.setPanel\n\n\u003cbr /\u003e\n\nReturns the requested panel in the split panel.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------------|----------|\n| SplitPanel.setPanel`(index, panel)` | ui.Panel |\n\n| Argument | Type | Details |\n|-----------------------|---------------|-------------------------------------------------------|\n| this: `ui.splitpanel` | ui.SplitPanel | The ui.SplitPanel instance. |\n| `index` | Number | 0 for top or left panel, 1 for bottom or right panel. |\n| `panel` | ui.Panel | The panel to add to the split panel. |"]]