001 package com.sptci.echo2.style;
002
003 import nextapp.echo2.app.Color;
004 import nextapp.echo2.app.FillImageBorder;
005 import nextapp.echo2.app.Insets;
006
007 /**
008 * The base style class for <code>WindowPane</code> components.
009 *
010 * <p>Copyright 2006 Sans Pareil Technologies, Inc.</p>
011 * @author Rakesh Vidyadharan 2006-11-06
012 * @version $Id: WindowPane.java 3334 2007-06-08 16:25:49Z rakesh $
013 */
014 public class WindowPane extends Style
015 {
016 /**
017 * Initialise the style properties.
018 */
019 @Override
020 protected void init()
021 {
022 setProperty( nextapp.echo2.app.WindowPane.PROPERTY_BORDER, new FillImageBorder(
023 new Color( 0xff5c36 ),
024 new Insets( Extent.getInstance( 2, Extent.PX ),
025 Extent.getInstance( 2, Extent.PX ) ),
026 new Insets( Extent.getInstance( 2, Extent.PX ),
027 Extent.getInstance( 2, Extent.PX ) ) ) );
028 setProperty( nextapp.echo2.app.WindowPane.PROPERTY_TITLE_BACKGROUND,
029 Background.getInstance() );
030 setProperty( nextapp.echo2.app.WindowPane.PROPERTY_TITLE_FOREGROUND,
031 new Color( 0xffffff ) );
032 setProperty( nextapp.echo2.app.WindowPane.PROPERTY_TITLE_INSETS,
033 new Insets( Extent.getInstance( 10, Extent.PX ),
034 Extent.getInstance( 5, Extent.PX ) ) );
035 }
036 }