001 package echopoint.style.echo;
002
003 import echopoint.style.AbstractStyle;
004 import static echopoint.util.ColorKit.makeColor;
005 import nextapp.echo.app.Border;
006 import static nextapp.echo.app.list.AbstractListComponent.PROPERTY_BACKGROUND;
007 import static nextapp.echo.app.list.AbstractListComponent.PROPERTY_BORDER;
008
009 /**
010 * The default style to associate with list components.
011 *
012 * @author Rakesh Vidyadharan 2009-05-24
013 * @version $Id: AbstractListComponentStyle.java 208 2009-05-25 02:40:35Z sptrakesh $
014 */
015 public class AbstractListComponentStyle extends AbstractStyle
016 {
017 private static final long serialVersionUID = 1l;
018
019 /**
020 * The colour to use for background and border.
021 *
022 * {@value}
023 */
024 public static final String COLOR = "#cfdfff";
025
026 /** {@inheritDoc} */
027 @Override
028 protected void init()
029 {
030 super.init();
031
032 set( PROPERTY_BACKGROUND, makeColor( COLOR ) );
033 set( PROPERTY_BORDER,
034 new Border( 2, makeColor( COLOR ), Border.STYLE_GROOVE ) );
035 }
036 }