01: package net.xoetrope.samples.apps;
02:
03: import java.awt.ScrollPane;
04:
05: import net.xoetrope.awt.XButton;
06: import net.xoetrope.awt.XMetaContent;
07: import net.xoetrope.xui.XPage;
08: import net.xoetrope.xui.XProjectManager;
09:
10: /**
11: * <p>Title: Xui</p>
12: * <p>Description: </p>
13: * <p>Copyright: Copyright (c) Xoetrope Ltd., 1998-2003</p>
14: * <p>Company: Xoetrope Ltd.</p>
15: * @author not attributable
16: * @version 1.0
17: */
18:
19: public class StartPage extends XPage {
20: XButton btnContinue;
21:
22: public StartPage() {
23: ScrollPane sp = (ScrollPane) componentFactory.addComponent(
24: XPage.SCROLLPANE, -2, -2, 220, 220);
25: btnContinue = (XButton) componentFactory.addComponent(
26: XPage.BUTTON, 60, 220, 80, 25, "Continue");
27: componentFactory.setParentComponent(sp);
28: XMetaContent meta = (XMetaContent) componentFactory
29: .addComponent(XPage.METACONTENT, 0, 0, 220, 220,
30: "appstart.xml", "Sidebar");
31: meta.setPadding(10);
32: sp.layout();
33: addMouseHandler(btnContinue, "next");
34: }
35:
36: public void next() {
37: if (wasMouseClicked())
38: XProjectManager.getPageManager().showPage("FirstPage");
39: }
40: }
|