01: package net.xoetrope.samples.advanced;
02:
03: import net.xoetrope.awt.XButton;
04: import net.xoetrope.xui.XPage;
05: import net.xoetrope.xui.XProjectManager;
06:
07: public class NavPage1 extends XPage {
08: XButton btnNext;
09:
10: public NavPage1() {
11: componentFactory
12: .addComponent(
13: XPage.LABEL,
14: 10,
15: 10,
16: 200,
17: 100,
18: "This is the first page, Change the value in the textbox and when you return it will be unchanged",
19: "prompt");
20: componentFactory.addComponent(XPage.EDIT, 50, 120, 120, 20,
21: "Original text 1", "prompt");
22: btnNext = (XButton) componentFactory.addComponent(XPage.BUTTON,
23: 70, 150, 80, 20, "next", "prompt");
24: addMouseHandler(btnNext, "next");
25: }
26:
27: public void next() {
28: if (wasMouseClicked())
29: XProjectManager.getPageManager().showPage("NavPage2");
30: }
31: }
|