01: /*
02: * Copyright 2000,2006 wingS development team.
03: *
04: * This file is part of wingS (http://wingsframework.org).
05: *
06: * wingS is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU Lesser General Public License
08: * as published by the Free Software Foundation; either version 2.1
09: * of the License, or (at your option) any later version.
10: *
11: * Please see COPYING for the complete licence.
12: */
13:
14: package org.wingx;
15:
16: import org.wings.SComponent;
17: import org.wings.SFrame;
18:
19: public class XPopupFrame extends SComponent {
20:
21: private SFrame frame;
22: private int width;
23: private int height;
24:
25: public int getWidth() {
26: return width;
27: }
28:
29: public void setHeight(int height) {
30: this .height = height;
31: }
32:
33: public void setWidth(int width) {
34: this .width = width;
35: }
36:
37: public int getHeight() {
38: return height;
39: }
40:
41: // TODO
42: public XPopupFrame(String url) {
43:
44: }
45:
46: public XPopupFrame(SFrame frame, int width, int height) {
47: this .frame = frame;
48: this .width = width;
49: this .height = height;
50: }
51:
52: public String getFrameUrl() {
53: this .frame.show();
54: return this .frame.getRequestURL().toString();
55: }
56:
57: public String showScript() {
58: return "function() {popupFrame.show();}";
59: }
60:
61: }
|