001    package com.sptci.echo2.style;
002    
003    import nextapp.echo2.app.WindowPane;
004    
005    import com.sptci.echo2.Dimensions;
006    
007    /**
008     * A style class for {link com.sptci.echo2.LoginPane}.  This style 
009     * is used to set the position and dimensions of the component.
010     *
011     * <p>Copyright 2006 Sans Pareil Technologies, Inc.</p>
012     * @author Rakesh Vidyadharan 2006-11-06
013     * @version $Id: LoginPane.java 3334 2007-06-08 16:25:49Z rakesh $
014     */
015    public class LoginPane extends com.sptci.echo2.style.WindowPane
016    {
017      /**
018       * Initialise the style properties.
019       */
020      @Override
021      protected void init()
022      {
023        super.init();
024        setProperty( WindowPane.PROPERTY_HEIGHT,
025            Extent.getInstance( Dimensions.getInt( 
026                com.sptci.echo2.LoginPane.class.getName() + ".height" ), Extent.PX ) );
027        setProperty( WindowPane.PROPERTY_POSITION_X,
028            Extent.getInstance( Dimensions.getInt( 
029                com.sptci.echo2.LoginPane.class.getName() + ".positionX" ),
030              Extent.PX ) );
031        setProperty( WindowPane.PROPERTY_POSITION_Y,
032            Extent.getInstance( Dimensions.getInt( 
033                com.sptci.echo2.LoginPane.class.getName() + ".positionY" ),
034              Extent.PX ) );
035        setProperty( WindowPane.PROPERTY_RESIZABLE, new Boolean( false ) );
036        setProperty( WindowPane.PROPERTY_WIDTH,
037            Extent.getInstance( Dimensions.getInt( 
038                com.sptci.echo2.LoginPane.class.getName() + ".width" ), Extent.PX ) );
039      }
040    }