01:package com.xoetrope.svgscanner;
02:
03:import net.xoetrope.optional.annotation.Find;
04:import net.xoetrope.swing.XButton;
05:import net.xoetrope.swing.XLabel;
06:import net.xoetrope.xui.XPage;
07:
08:/**
09: *
10: * <p> Copyright (c) Xoetrope Ltd., 2001-2007, This software is licensed under
11: * the GNU Public License (GPL), please see license.txt for more details. If
12: * you make commercial use of this software you must purchase a commercial
13: * license from Xoetrope.</p>
14: * <p>$Revision: 1.6 $</p>
15: */
16:public class Footer extends XPage
17:{
18: @Find
19: private XLabel statusLabel;
20:
21: @Find XButton nextBtn, prevBtn;
22:
23: private String next;
24:
25: public Footer()
26: {
27: }
28:
29: /**
30: * Set the name of the next page
31: */
32: public void setNext( String pn )
33: {
34: next = pn;
35: nextBtn.setEnabled( true );
36: }
37:
38: /**
39: * Go to the next page.
40: */
41: public void next()
42: {
43: statusLabel.setText( "" );
44:
45: XPage cp = (XPage)pageMgr.getCurrentPage( "content" );
46: if ( cp instanceof ImageViewer )
47: ((ImageViewer)cp).showNext();
48: else
49: showPage( next );//ImageViewer" );
50:
51: prevBtn.setEnabled( true );
52: }
53:
54: public void setStatus( String text )
55: {
56: statusLabel.setText( text );
57: }
58:}
|