001    package com.sptci.system;
002    
003    import nextapp.echo2.app.Column;
004    import nextapp.echo2.app.ContentPane;
005    
006    import com.sptci.echo2.Header;
007    import com.sptci.echo2.Utilities;
008    
009    /**
010     * The view component that displays the logic screen.
011     *
012     * <p>Copyright 2007 Sans Pareil Technologies, Inc.</p>
013     * @author Rakesh Vidyadharan 2007-04-21
014     * @version $Id: LoginView.java 3157 2007-04-25 21:59:44Z rakesh $
015     */
016    public class LoginView extends ContentPane 
017    {
018      /**
019       * The controller to use for this view component.
020       */
021      private final LoginController controller;
022    
023      /**
024       * Creates a new <code>LoginScreen</code>.
025       */
026      public LoginView() 
027      {
028        super();
029        setStyleName( getClass().getName() + ".ContentPane" );
030        controller = new LoginController();
031    
032        initView();
033      }
034    
035      /**
036       * Initialise the UI components necessary for this view.
037       */
038      private void initView()
039      {
040        Column column = new Column();
041        column.setStyleName( getClass().getName() + ".Column" );
042        column.add( new Header() );
043    
044        add( column );
045        add( controller.getView() );
046      }
047    }