01: package net.xoetrope.samples.travel;
02:
03: import net.xoetrope.awt.XImage;
04: import net.xoetrope.xui.XPage;
05: import net.xoetrope.xui.XProjectManager;
06:
07: /**
08: * <p>Title: Xui</p>
09: * <p>Description: </p>
10: * <p>Copyright: Copyright (c) Xoetrope Ltd., 1998-2003</p>
11: * <p>Company: Xoetrope Ltd.</p>
12: * @author not attributable
13: * @version 1.0
14: */
15:
16: public class SightSeeingTourIntro extends XPage {
17:
18: XImage imgDublin;
19: XImage imgBack;
20:
21: public SightSeeingTourIntro() {
22: imgBack = (XImage) componentFactory.addComponent(XPage.IMAGE,
23: 220, 10, 18, 14, "home.gif");
24: imgDublin = (XImage) componentFactory.addComponent(XPage.IMAGE,
25: 0, 0, 250, 300, "DubHistTourIntro.gif");
26: mapEvents();
27: }
28:
29: public void mapEvents() {
30: addMouseHandler(imgDublin, "startTour");
31: addMouseHandler(imgBack, "goHome");
32: }
33:
34: public void goHome() {
35: if (wasMouseClicked())
36: XProjectManager.getPageManager().showPage("Services");
37: }
38:
39: public void startTour() {
40: if (wasMouseClicked())
41: XProjectManager.getPageManager()
42: .showPage("SightSeeingTour");
43: }
44: }
|