001 package com.sptci.echo2.style;
002
003 import nextapp.echo2.app.Border;
004 import nextapp.echo2.app.Color;
005
006 /**
007 * A general style class for text components. This style does not include
008 * any <code>LayoutData</code> and may be used to embed text in any
009 * container.
010 *
011 * <p>Copyright 2006 Sans Pareil Technologies, Inc.</p>
012 * @author Rakesh Vidyadharan 2006-11-06
013 * @version $Id: TextComponent.java 3098 2007-04-22 02:53:49Z rakesh $
014 */
015 public class TextComponent extends General
016 {
017 /**
018 * Initialise the style properties. Over-ridden to add style property
019 * for border.
020 */
021 @Override
022 protected void init()
023 {
024 super.init();
025 Color color = new Color( 0xd2d7e1 );
026 setProperty( nextapp.echo2.app.text.TextComponent.PROPERTY_BACKGROUND, color );
027 setProperty( nextapp.echo2.app.text.TextComponent.PROPERTY_BORDER,
028 new Border( 2, color, Border.STYLE_RIDGE ) );
029 }
030 }