package com.xoetrope.svgscanner;
import net.xoetrope.optional.annotation.Find;
import net.xoetrope.swing.XButton;
import net.xoetrope.swing.XLabel;
import net.xoetrope.xui.XPage;
/**
*
* <p> Copyright (c) Xoetrope Ltd., 2001-2007, This software is licensed under
* the GNU Public License (GPL), please see license.txt for more details. If
* you make commercial use of this software you must purchase a commercial
* license from Xoetrope.</p>
* <p>$Revision: 1.6 $</p>
*/
public class Footer extends XPage
{
@Find
private XLabel statusLabel;
@Find XButton nextBtn, prevBtn;
private String next;
public Footer()
{
}
/**
* Set the name of the next page
*/
public void setNext( String pn )
{
next = pn;
nextBtn.setEnabled( true );
}
/**
* Go to the next page.
*/
public void next()
{
statusLabel.setText( "" );
XPage cp = (XPage)pageMgr.getCurrentPage( "content" );
if ( cp instanceof ImageViewer )
((ImageViewer)cp).showNext();
else
showPage( next );//ImageViewer" );
prevBtn.setEnabled( true );
}
public void setStatus( String text )
{
statusLabel.setText( text );
}
}
|