Footer.java :  » XML-UI » xui32 » com » xoetrope » svgscanner » Java Open Source

Java Open Source » XML UI » xui32 
xui32 » com » xoetrope » svgscanner » Footer.java
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 );
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.