001 package com.sptci.echo2demo;
002
003 import nextapp.echo2.app.ApplicationInstance;
004 import nextapp.echo2.app.Window;
005
006 import com.sptci.echo2.Styles;
007
008 /**
009 * The <code>ApplicationInstance</code> implementation required for
010 * the <b>Echo2</b> event-driven web development framework.
011 *
012 * <p>Copyright 2006 Sans Pareil Technologies, Inc.</p>
013 * @author Rakesh Vidyadharan 2006-01-21
014 * @version $Id: Application.java,v 1.2 2006/02/15 00:47:01 rakesh Exp $
015 */
016 public class Application extends ApplicationInstance
017 {
018 /**
019 * The <code>Window</code> instance that will be controlled by this
020 * application.
021 */
022 private Window window;
023
024 /**
025 * The mandatory initialisation method. Initialises {@link #window}
026 * and returns it.
027 *
028 * @return Window The properly initialised {@link #window}.
029 */
030 public Window init()
031 {
032 setStyleSheet( Styles.DEFAULT_STYLE_SHEET );
033 window = new Window();
034 window.setTitle(
035 Configuration.getString( "Application.Title.Window" ) );
036 window.setContent( new InputForm() );
037 return window;
038 }
039 }