01: package com.xoetrope.carousel.testpilot;
02:
03: import net.xoetrope.xui.*;
04: import net.xoetrope.swing.*;
05:
06: /**
07: * Support for ???
08: * <p> Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
09: * the GNU Public License (GPL), please see license.txt for more details. If
10: * you make commercial use of this software you must purchase a commercial
11: * license from Xoetrope.</p>
12: * <p> $Revision: 1.2 $</p>
13: */
14: public class Results extends XPage {
15: XLabel lblPassCount, lblFailCount;
16:
17: public void goBack() {
18: if (wasMouseClicked())
19: pageMgr.showPage("tpwelcome");
20: }
21:
22: public void pageCreated() {
23: lblPassCount = (XLabel) findComponent("lblPassCount");
24: lblFailCount = (XLabel) findComponent("lblFailCount");
25: }
26:
27: public void setPassCount(int passCount) {
28: lblPassCount.setText(String.valueOf(passCount)
29: + " assertions passed");
30: }
31:
32: public void setFailCount(int failCount) {
33: lblFailCount.setText(String.valueOf(failCount)
34: + " assertions failed");
35: }
36: }
|