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