Skip to content

Commit 7c36bc3

Browse files
committed
webui : add PopupPanel(String title, Panel panel) to enclose Panel in PopupPanel
1 parent 0d81625 commit 7c36bc3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/javaforce/webui/PopupPanel.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,16 @@ public class PopupPanel extends Panel {
99
private TitleBar titleBar;
1010
private Block block;
1111
private boolean modal;
12+
/** Creates a new PopupPanel. */
1213
public PopupPanel(String title) {
14+
init(title);
15+
}
16+
/** Creates a new Popup panel with another Panel enclosed. */
17+
public PopupPanel(String title, Panel panel) {
18+
init(title);
19+
add(panel);
20+
}
21+
private void init(String title) {
1322
initInvisible();
1423
titleBar = new TitleBar(title, this);
1524
add(titleBar);

0 commit comments

Comments
 (0)