01: package com.xoetrope.carousel.testpilot;
02:
03: import java.io.BufferedInputStream;
04: import java.io.FileInputStream;
05: import java.io.IOException;
06: import java.net.URL;
07: import java.net.URLConnection;
08:
09: import java.awt.FileDialog;
10:
11: import net.xoetrope.swing.XButton;
12: import net.xoetrope.swing.XEdit;
13: import net.xoetrope.swing.XPanel;
14: import net.xoetrope.swing.XRadioButton;
15: import net.xoetrope.swing.XScrollableMetaContent;
16: import net.xoetrope.data.XDataSource;
17: import net.xoetrope.xui.XPage;
18: import net.xoetrope.xui.XPageManager;
19: import net.xoetrope.xui.XProjectManager;
20: import net.xoetrope.xui.data.XBaseModel;
21: import net.xoetrope.xui.data.XModel;
22: import netscape.javascript.JSObject;
23:
24: /**
25: * Home page for TestPilot. Allows selection of the application type
26: * <p> Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
27: * the GNU Public License (GPL), please see license.txt for more details. If
28: * you make commercial use of this software you must purchase a commercial
29: * license from Xoetrope.</p>
30: * <p> $Revision: 1.2 $</p>
31: */
32: public class Welcome extends XPage {
33: XButton btnProceed;
34: XRadioButton appletBtn, applictionBtn;
35: private XPageManager pageManager;
36:
37: public Welcome() {
38: pageManager = XProjectManager.getPageManager();
39: }
40:
41: public void nextPage() {
42: if (wasMouseClicked()) {
43: XRadioButton appletBtn = (XRadioButton) findComponent("appletRB");
44: if (appletBtn.isSelected())
45: pageManager.showPage("tpAppletConfig");
46: else
47: pageManager.showPage("tpApplicationConfig");
48: }
49: }
50: }
|